[PHP-WIN] @mssql_connect() versus mssql_connect()

2006-10-12 Thread Alf Stockton
What is the difference between @mssql_connect() and mssql_connect()? i.e. What is the relevance of the prefixed @? -- Regards, Alf Stocktonwww.stockton.co.za You may my glories and my state dispose, But not my griefs; still am I king of those. -- William Shakespeare,

Re: [PHP-WIN] Checking for result of call to mssql_query()

2006-10-12 Thread Frank M. Kromann
Hi Alf, As far as I can tell it's working just fine. Hre is a sample: and here is the output: bool(true) Warning: mssql_query(): message: Syntax error converting the varchar value 'aa' to a column of data type int. (severity 16) in C:\php5\test\mssql_error.php on line 10 Warning: mssql_query

Re: [PHP-WIN] Checking for result of call to mssql_query()

2006-10-12 Thread Niel Archer
Hi Alf You'd be better off asking this type of question in the database list. I'm not familiar with MS-SQL, the syntax doesn't look much different to the MySQL flavour. When you say " whether the query works or not" do you mean the query is failing with an error, or it simply returns no data?

[PHP-WIN] re: SPAM-LOW: [PHP-WIN] PDO ODBC & MSSQL Stored Procedures that return record sets

2006-10-12 Thread Aspen Olmsted
I just realised the problem was the SP was not setting set nocount on so the first record set was the number of records returned From: "Aspen Olmsted" <[EMAIL PROTECTED]> Sent: Thursday, October 12, 2006 6:21 AM To: php-

[PHP-WIN] PDO ODBC & MSSQL Stored Procedures that return record sets

2006-10-12 Thread Aspen Olmsted
Hello, I am having trouble with pdo_odbc and calling a stored procedure that returns a record set. I have tried with out using parameters: $stmt = $dbh->prepare("EXEC ASC_GridData @StartRecordIndex=0,@PageSize=15,@SortColumn='',@SortDirection='ASC',@Filter ='lscShowCode=14 and lscType=2',@Primary

[PHP-WIN] Checking for result of call to mssql_query()

2006-10-12 Thread Alf Stockton
Am I misunderstanding the PHP Manual, where it says:- mixed *mssql_query* ( string query [, resource link_identifier [, int batch_size]] ) Returns: A MS SQL result resource on success, *TRUE* if no rows were returned, or *FALSE* on error. and my code reads:- $Reply = mssql_query($insert, $link)