Hi!
Need to develop an SP to Bulk Insert 3 CSV files in Similar Formatted Tables from different file locations. However, am unaware in respect of how to break/end a process if any of the three files does not exist. In simple words a process like:
CREATE PROCEDURE [dbo].[FAQSP_PD_Work] @DataOne NVARCHAR(MAX), @DataTwo NVARCHAR(MAX), @DataThree NVARCHAR(MAX)
-- @DataOne, @DataTwo & @DataThree representing the three files' complete paths;
-- If any of the three files do not exist then simply end with an error message declaring the name of the file absent and end the procedure;
-- Otherwise Drop (If already exist) and Re-Create the 3 similar tables and BulkInsert &
-- Finally carry out rem