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

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Alternative to Bulk Insert

Author  Topic 

srivatsahg
Yak Posting Veteran

71 Posts

Posted - 2011-01-24 : 09:42:04
Hello

I need to pass a bulk of data contents of a CSV File to my stored procedure. Is there any way (apart from using Bulk Insert file option)
to directly get the in memory data and drop it in the stored procedure for INSERT. ?

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-01-24 : 09:45:08
Use import/export wizard or bcp

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

srivatsahg
Yak Posting Veteran

71 Posts

Posted - 2011-01-24 : 09:53:53
But i need to do this programmatically...!!

Is this possible or should i run the bcp command line utility programmatically ??

Go to Top of Page

Ifor
Aged Yak Warrior

700 Posts

Posted - 2011-01-24 : 11:20:18
If you are using .Net, there are a number of options here:

http://www.sqlservercentral.com/articles/SQL+Server+2008/66554/
Go to Top of Page
   

- Advertisement -