Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting in batch
Message
 
 
To
03/03/2009 01:15:24
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01385163
Message ID:
01416923
Views:
52
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform