Is there a way to determine (from within a stored procedure) which parameters were passed into a stored procedure (vs. those which just took the default value)?
Sql-server – Determine Which Parameters Passed Into Stored Procedure
sql serversql-server-2008stored-procedures
Related Question
- Sql-server – In SQL Server, is there a way to determine the values of the parameters passed to an executing stored procedure
- Sql-server – stored procedure update retain values
- How to Recover Parameters for Stored Procedure from System Logs in SQL Server
- SQL Server – How to Add OPTION(RECOMPILE) in a Stored Procedure
- SQL Server – Insert Stored Procedure Results into Table
- SQL Server – How to Get Parameter Values of a Stored Procedure in Execution
Best Answer
You can run a Profiler Trace using the default template. It will include the RPC:Completed Event. When you review the trace log you will see the values of the parameters passed and you can determine which were left out, therefore using the default values.