i created table valued parameter like this:
CREATE TYPE dbo.ss AS TABLE(ss1 NVARCHAR(5));
then i wrote my stored procedure like this:
ALTER PROCEDURE [dbo].[T_TransactionSummary]
@locations dbo.ss readonly
as
begin
...............
.............
AND (Location_tbl.Locid IN (@locations))
while executing this i am getting error:
Must declare the scalar variable "@locations".
What is wrong with my stored procedure