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 2008 Forums
 SSIS and Import/Export (2008)
 bcp error

Author  Topic 

ranjeetsingh_6
Posting Yak Master

125 Posts

Posted - 2010-08-24 : 08:50:54
Hi,

i want to save query output into File.For this i am using below bcp command, this work fine but when i am using a store procedure with bcp command then it give.

--command that execute successfully

EXEC master..xp_cmdshell'bcp " select * from Test_21082010..tbl_ChangesSchema " queryout "c:\text_24082010.txt" -c -T -S CHETUIWK270\SQL2008 '

--command that give error

EXEC master..xp_cmdshell'bcp " exec Test_21082010..sp_CreateDataLoadScript ''1.0'' " queryout "c:\text_24082010.txt" -c -T -S CHETUIWK270\SQL2008 '

--Error is
SQLState = HY010, NativeError = 0
Error = [Microsoft][SQL Native Client]Function sequence error
NULL


Ranjeet Kumar Singh

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2010-08-24 : 12:17:58
works for me. what is the SP doing?
Go to Top of Page
   

- Advertisement -