Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
gpc44
Starting Member
35 Posts |
Posted - 2013-08-17 : 01:26:10
|
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....RegardsNicole ----------------------------------------Create PROCEDURE [dbo].[sp_Proceed]ASBEGIN -- i want to read @Filename from Table DECLARE @sql NVARCHAR(4000) = 'BULK INSERT TblValues FROM ''' + @FileName + ''' WITH ( FIELDTERMINATOR ='','', ROWTERMINATOR =''\n'' )' ; EXEC(@sql) ;END |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
|
|