Viewing 3 posts - 16 through 19 (of 19 total)
Also, users should not be an invalid object name...as it is created as a table already.
February 14, 2012 at 3:07 am
Sorry
declare @path varchar(2000)
set @path = 'C:\BMW\tsqloutput'
EXEC master.dbo.xp_create_subdir @Path
The directory creates successfully.
EXEC xp_cmdshell 'bcp "SELECT * FROM USERS" queryout "C:\bcptest.txt" -T -c -t,'
To extract all from table users produces the...
February 14, 2012 at 3:07 am
declare @path varchar(2000)
set @path = 'C:\'
EXEC master.dbo.xp_create_subdir @Path
I have created a directory first and foremost.
EXEC xp_cmdshell 'bcp "SELECT * FROM USERS" queryout "C:\gradfive.txt" -T -c -t,'
I want the above...
February 14, 2012 at 2:56 am
Viewing 3 posts - 16 through 19 (of 19 total)