Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting for batch insert
Message
 
 
To
03/03/2011 19:24:12
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01502577
Message ID:
01502578
Views:
49
This message has been marked as the solution to the initial question of the thread.
>I am trying to figure out why I can't insert in a batch on a specific server. For example, on the Universal Thread, I can do something like this:
>
>
>INSERT INTO Search (AddUser,NoThread) VALUES (1,1502575), (1,1502572), (1,1502569), (1,1502568)
>
>
>This will insert four records into Search from one command.
>
>But, on another server, I am doing something very simple:
>
>
>INSERT INTO HitReportActivity (NoEntity) VALUES (1), (1)
>
>
>And, I get:
>
>"Msg 102, Level 15, State 1, Line 1
>Incorrect syntax near ','."
>
>Is there a setting that enables that support? Or, is it that SQL Server 2005 doesn't support it.

SQL Server 2005 does not support this syntax. It's SQL 2008 new syntax.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform