Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 pass a table to stored procedure
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

241 Posts

Posted - 11/07/2006 :  16:16:01  Show Profile  Reply with Quote
Can I pass a table to Stored Procedure. I want to upload 2000 records to database at one shot. So I am trying to find if I can pass 2000 records to stored proc at one time and do a bulk insert

Is this Possible????

Flowing Fount of Yak Knowledge

6065 Posts

Posted - 11/07/2006 :  16:53:05  Show Profile  Reply with Quote
To answer your question, no you can't pass a table to a stored procedure. Usually you would use BCP or DTS to "upload" data to your database.

Be One with the Optimizer
Go to Top of Page

Cybernetic Yak Master

11752 Posts

Posted - 11/07/2006 :  16:54:50  Show Profile  Visit spirit1's Homepage  Reply with Quote
It is if you use xml to pass the data
then you can use
sp_xml_* stored procedures to import the data

how do you get your data before it enters the stored procedure?

you can use bulk insert if you're importing from a file.

Go with the flow & have fun! Else fight the flow
blog thingie:
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000