Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting in batch
Message
 
 
À
03/03/2009 01:15:24
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01385163
Message ID:
01416923
Vues:
50
>The insert is something that takes time on SQL Server. Usually, it takes about 3 1/100 of a second. When I have some insert to do in batch, such as adding 10 records, this will make it up to close to 1/3 of a second. What I do is to issue a INSERT command each time. Is there a way to insert several records in one command?

Just found this link, which answers your question

http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform