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

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

php - facebook and github login HWIOAuthBundle and FOSUserBundle in Symfony2.1 -

hadoop - Sqoop installation export and import from postgresql -