I have written this stored procedure that accepts the clientId as parameter. As you can see in the SQL Server trace, I have passed the client id while calling from .NET, but still its showing the error that clientId parameter is not supplied. What am I doing wrong ?
Stored procedure:
SQL Server trace when calling from .NET:
I'm still getting the error:
Procedure or function 'USP_LoadPerformaceTemplate' expects parameter '@clientId', which was not supplied.


sp_executesqlpasses it, but that statement it runs does nothing with said parameter; it just runs the SQLdbo.USP_LoadPerformaceTemplate. we need the application code here.