4

I am trying to get executed stored procedure input parameters and their values by using mda tables. I have used monProcessProcedures and monProcessSQLText but both tables are only returning proc name and not parameter names and values.

Please suggest.

Shishir
  • 89
  • 3

1 Answers1

0

The database hides the parameters from procedure calls and SQL queries in many situations. You can try the following approaches:

  • if you can modify the procedure code - run the procedure using statics parameters (like 'exec proc 1,2' - not using prepareStatement/PrepareCall)
  • run dbcc traceon(11202) - this would log all the ASE sql commands to the ASE errorlog - you may check if tour procedure parameters have also been logged
  • add addition comment to your procedure execution code with your parameters - they may be logged in monProcessSQLText
Adam Leszczyński
  • 1,079
  • 7
  • 13