Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting for batch insert
Message
From
03/03/2011 19:24:12
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Setting for batch insert
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01502577
Message ID:
01502577
Views:
106
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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform