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 2000 Forums
 SQL Server Development (2000)
 SQL bcp from SQL fie

Author  Topic 

Ali.M.Habib
Yak Posting Veteran

54 Posts

Posted - 2012-05-07 : 04:24:43
I save query in .sql file

I need to call this query using bcp and execute it . any idea how to do that

robvolk
Most Valuable Yak

15732 Posts

Posted - 2012-05-07 : 07:40:46
You wouldn't use bcp to execute a SQL script, you'd use sqlcmd. Details are here: http://msdn.microsoft.com/en-us/library/ms162773.aspx
Go to Top of Page
   

- Advertisement -