SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 pass a table to stored procedure
 New Topic  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

6062 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: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.05 seconds. Powered By: Snitz Forums 2000