sql - SP Quotation Error -


can me following line of code. keep getting incorrect syntax near '\' error:

 set @filename =   ''bulk insert dbo.tmp_table    ''\\sql-300\convertedfiles\london\figures\'    + @year + '_' + @client+ '_' + @policyid + '.csv''    (fieldterminator = '','', rowterminator = ''\n'', keepnulls)'' 

try this

set @filename ='bulk insert dbo.tmp_table    ''\\sql-300\convertedfiles\london\figures\'    + @year + '_' + @client+ '_' + @policyid + '.csv''    (fieldterminator = '','', rowterminator = ''\n'', keepnulls)' 

Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -