Código SQL:
Ver originalDECLARE @PATH VARCHAR(255)
DECLARE @SQLSTRING NVARCHAR(255)
SET @PATH = 'C:\daily\papercut-print-log-' + CONVERT(CHAR(10),Getdate(),120) + '.csv'
SET @SQLSTRING = N'
BULK INSERT tcsv
FROM ''' + @PATH + '''
WITH
(
FIELDTERMINATOR = '','',
ROWTERMINATOR = ''\n''
)'
-- SELECT @SQLSTRING
EXEC SP_EXECUTE @SQLSTRING