The syntax for BULK INSERT IS..
BULK INSERT server.dbo.table FROM 'data_file'
WITH (FIELDTERMINATOR = '"',.....)
Can I replace 'data_file' with a variable (varchar type)?
I want to create a stored procedure for bulk insert but the 'data_file' should be varying depending on user input. Is there another way to import text files to SQL 7 if bulk insert doesnt work?
Thanks.
BULK INSERT server.dbo.table FROM 'data_file'
WITH (FIELDTERMINATOR = '"',.....)
Can I replace 'data_file' with a variable (varchar type)?
I want to create a stored procedure for bulk insert but the 'data_file' should be varying depending on user input. Is there another way to import text files to SQL 7 if bulk insert doesnt work?
Thanks.