BULK语句 将TXT数据塞入数据库表格
SET @iSQL=N'BULK INSERT [TEST].[dbo].[TEST_Interim]'+' FROM '+quotename(@fullFileName,'''')+' WITH (BATCHSIZE=1000,FIELDTERMINATOR=''\t'',DATAFILETYPE=''widechar'',FIRSTROW=1,ROWTERMINATOR=''\n'',TABLOCK)' EXEC SP_EXECUTESQL @iSQL