Hello,
Does anyone know how to pass values from a table as parameters to a stored procedure? For instance I have a stored procedure:
sp_Test_data(@db_name, @clientcode)
Then I have a table called Values that looks like the following:
DB Client
DB1 Client1
When I execute the stored procedure can I get it to look in the table and essentially say:
exec sp_Test_data 'DB1', 'Client1'
Does anyone know how to pass values from a table as parameters to a stored procedure? For instance I have a stored procedure:
sp_Test_data(@db_name, @clientcode)
Then I have a table called Values that looks like the following:
DB Client
DB1 Client1
When I execute the stored procedure can I get it to look in the table and essentially say:
exec sp_Test_data 'DB1', 'Client1'