Hi,
Is there a way to call a SP for each row in a table, and to specify the value as a parameter? Like this....
Regards
Nicole
--------------------------------------------------
Is there a way to call a SP for each row in a table, and to specify the value as a parameter? Like this....
Regards
Nicole
--------------------------------------------------
Create PROCEDURE [dbo].[sp_Proceed]
AS
BEGIN
-- i want to read @Filename from Table
DECLARE @sql NVARCHAR(4000) = 'BULK INSERT TblValues FROM ''' + @FileName
+ ''' WITH ( FIELDTERMINATOR ='','', ROWTERMINATOR =''\n'' )' ;
EXEC(@sql) ;
END