dbTalk Databases Forums  

SP that will insert multiple rows

microsoft.public.sqlserver.programming microsoft.public.sqlserver.programming


Discuss SP that will insert multiple rows in the microsoft.public.sqlserver.programming forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jon
 
Posts: n/a

Default SP that will insert multiple rows - 12-22-2004 , 07:13 AM






Hello,

Does anyone have an example of a SP that will take a comma separated list of
parameters and for each one insert into a table?

Basically I need to pass in multiple users and the item they need to be
associated with.

Thanks,

Jon

Reply With Quote
  #2  
Old   
Dan Guzman
 
Posts: n/a

Default Re: SP that will insert multiple rows - 12-22-2004 , 08:00 AM






Check out http://www.sommarskog.se/arrays-in-sql.html for techniques to pass
arrays.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"Jon" <Jon (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello,

Does anyone have an example of a SP that will take a comma separated list
of
parameters and for each one insert into a table?

Basically I need to pass in multiple users and the item they need to be
associated with.

Thanks,

Jon



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.