Answer the question
In order to leave comments, you need to log in
How to convert received file address in stored procedure for BULK INSERT?
I am writing a stored procedure that takes the address of a data file and the address of the corresponding .fmt file.
CREATE PROCEDURE InsertCitiesFromFile
@importDataFilePath NVARCHAR(MAX),
@formatFilePath NVARCHAR(MAX) AS
BULK INSERT City
FROM @importDataFilePath
-- дальше уже не важно
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question