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