Popular Posts

SQLblog.com - The SQL Server blog spot on the web

Sunday, July 16, 2017

BULK Insert + create temperory table at the time of insert

SQLServerCentral » Latest topics
BULK Insert + create temperory table at the time of insert
How to Create temp table at  the time of insert?

DECLARE @sql AS NVARCHAR(1000)
SET @sql = 'BULK INSERT ' + #tableName + ' FROM ''' + @filename + ''' WITH (CODEPAGE=''ACP'', FIELDTERMINATOR=''|'')

No comments: