Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting for batch insert
Message
De
03/03/2011 19:24:12
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Setting for batch insert
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01502577
Message ID:
01502577
Vues:
107
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform