I am trying to right click a stored procedure in SQL Server Management Studio 2012 and trying to execute a stored procedure which accepts a single parameter of type tblType_XXX
which is a User Defined Table Type. But when I try to pass a single value I get this error
Msg 206, Level 16, State 2, Procedure uspGetXXXXXXXX, Line 0
Operand type clash: int is incompatible with tblType_XXX
How can I specify a parameter of type tblType_XXX
in the SQL Server Management Studio -> Execute Stored Procedure from the UI?
tblType_XXX
only contains one column of type int
You need to declare table variable, insert data into it if needed, call your stored procedure not using @parameter = 1
format:
DECLARE @return_value int,
@tblParameter tblType_XXX
INSERT INTO @tblParameter VALUES (1)
EXEC @return_value = [dbo].[uspGetXXXXXXXX]
@tblParameter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With