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

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

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