Hi everyone,
I'm trying to create a test for a stored procedure that returns 2 result sets and Im only interested on the 2nd one.
This SP takes some parameters and one of them is a table value parameter .
Do you have any idea on how can I make it work?
Something like this:
CREATE TYPE countryList AS TABLE(
countryID smallint
)
DECLARE @countryList as
countryList ;
insert into @countryList VALUES(1),(2)
EXEC tsqlt.ResultSetFilter 2, 'exec myprocedure @countries = @countryList"
Error : " System.Data.SQLClient.SQLException: Must declare the scalar variable "@countryList" "
Thanks all,
Tiago