Groups | Blog | Home
all groups > sql server programming > july 2003 >

sql server programming : Batch Inserts


Rajesh Peddireddy
7/30/2003 7:42:42 PM

Hi

The following VYAS Site can be useful for ur scenerio.

http://vyaskn.tripod.com/passing_arrays_to_stored_procedure
s.htm

The information will give an overall idea so that u can
change according to ur requirement.

Hey ..Vyas,

Sorry for postring ur article with out your
permission..

HTH
Rajesh Peddireddy


[quoted text, click to view]
Dan Guzman
7/30/2003 9:55:44 PM
In addition to the article by Vyas, Erland also has an article on this:
http://www.algonet.se/~sommar/arrays-in-sql.html

--
Hope this helps.

Dan Guzman
SQL Server MVP

-----------------------
SQL FAQ links (courtesy Neil Pike):

http://www.ntfaq.com/Articles/Index.cfm?DepartmentID=800
http://www.sqlserverfaq.com
http://www.mssqlserver.com/faq
-----------------------

[quoted text, click to view]

Ron Vecchi
7/30/2003 10:13:22 PM
Is there a way to implement a batch INSERT.

Currently in my asp.net code I perform a loop. As each loop runs through I
construct my Insert command and execute it through ado.net.

I was just wondering if you can construct some sort of a batch INSERT
command. Mabey pass an array or hash of information as a parameter to a
stored proc. Then in SQL (if possible) loop through and perform querys.

Any Ideas?


Thanks,

Ron Vecchi

Narayana Vyas Kondreddi
7/31/2003 8:48:08 PM
Hey Rajesh, that's no problem at all. Feel free to post links to my
articles.
--
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
What hardware is your SQL Server running on?
http://vyaskn.tripod.com/poll.htm




[quoted text, click to view]

Hi

The following VYAS Site can be useful for ur scenerio.

http://vyaskn.tripod.com/passing_arrays_to_stored_procedure
s.htm

The information will give an overall idea so that u can
change according to ur requirement.

Hey ..Vyas,

Sorry for postring ur article with out your
permission..

HTH
Rajesh Peddireddy


[quoted text, click to view]

AddThis Social Bookmark Button