jeffwest21
IS-IT--Management
I have an export that is ouputtying some data from SQL using bcp, I need to add quotes around it but everytime it output i miss a double quote at the start and get and extra one at the end.
I am using this
Can anyone see what I am missing to get this working?
'Clever boy...'
I am using this
Code:
select @sql = 'bcp "select * from Database.dbo.table " queryout '+ @file +' /c -t \",\" -r \n\" -T -S' + @@servername
Can anyone see what I am missing to get this working?
'Clever boy...'