M
Mark Firth
I get the error on the following line
mvCmd.CommandText = sSql
mvCmd.Connection = mvConn
mvCmd.CommandType = CommandType.Text
Return mvCmd.ExecuteScalar
The sql string is:
sp_TimeSheetAED 'E',86387,'BG004',NULL,13,13,'311',3,'0',0,'25-Mar-2004',2.00,'testing',2..00,2.00000000,72.00,144.00,144.0000,0,0,0.100,0,144.00,NULL,144.00,NULL,0,'','',-1,NULL,NULL,NULL,NULL,NULL
The string work perfectly in Query Analyser.
The same error is produced if I change to a parameterised command
The base message contains Message: "Line 1: Incorrect syntax near 'sp_TimeSheetAED'."
This function is called many times and has been working in multiple apps for 2 years
Ideas will be greatly appreciated...
Mark Firth
mvCmd.CommandText = sSql
mvCmd.Connection = mvConn
mvCmd.CommandType = CommandType.Text
Return mvCmd.ExecuteScalar
The sql string is:
sp_TimeSheetAED 'E',86387,'BG004',NULL,13,13,'311',3,'0',0,'25-Mar-2004',2.00,'testing',2..00,2.00000000,72.00,144.00,144.0000,0,0,0.100,0,144.00,NULL,144.00,NULL,0,'','',-1,NULL,NULL,NULL,NULL,NULL
The string work perfectly in Query Analyser.
The same error is produced if I change to a parameterised command
The base message contains Message: "Line 1: Incorrect syntax near 'sp_TimeSheetAED'."
This function is called many times and has been working in multiple apps for 2 years
Ideas will be greatly appreciated...
Mark Firth