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
Post a Comment