Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 incorrect syntax near

Author  Topic 

BendJoe
Posting Yak Master

128 Posts

Posted - 2010-03-19 : 18:34:46
Incorrect syntax near ','.
exec UpdateCategory 'F',1,1,8,'',,'','','','',,3

Need help to fix this syntax error.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-19 : 18:42:43
Perhaps this: exec UpdateCategory 'F',1,1,8,'',NULL,'','','','',NULL,3

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-03-20 : 01:03:26
or dont pass like this, pass explicitly with param names to ones having value alone like

exec UpdateCategory @Param1='F',@param2=1,@param3=1,@param4=8,@param5='',@param7='',@param8='',@param9='',@param10='',@param12=3

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -