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

 

posted @ 2017-05-31 10:50  芈璐  阅读(159)  评论(0编辑  收藏  举报