Quantcast
Channel: bcp syntanx issue?
Viewing all articles
Browse latest Browse all 8

bcp syntanx issue?

$
0
0

hi all - i am trying to figure out why second script below isn't working where as the first script works fine. the bcp folder does exist. can anyone please assist?

execute xp_cmdshell 'bcp "select top 1 * from dbo.Table_Name" queryout x:\TextFile.txt –Ssqlserver1  -T -b1000000 -n', no_output
execute xp_cmdshell 'bcp "select top 1 * from dbo.Table_Name" queryout x:\bcp\TextFile.txt –Ssqlserver1  -T -b1000000 -n', no_output


Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles





Latest Images