Connecting Tech Pros Worldwide Forums | Help | Site Map

how to see the data of variables in SQL Profiler

Newbie
 
Join Date: Aug 2007
Posts: 1
#1: Aug 1 '07
hi everyone...

i am having problem debugging my sql scripts. if i run the application, the stored procedure fails, but if i run the stored procedure in SQL Analyzer, it is successful... i used the SQL profiler to trace the sequence of events in the stored procedure and triggers, however, i cannot see the data of the declared variables.. my question is, is there a way to know or see the contents of the variables in SQL Profiler?

any help would be appreciated...
thanks in advance....

DonlonP's Avatar
Newbie
 
Join Date: Jul 2007
Posts: 26
#2: Aug 1 '07

re: how to see the data of variables in SQL Profiler


Quote:

Originally Posted by lynxrufus03

hi everyone...

i am having problem debugging my sql scripts. if i run the application, the stored procedure fails, but if i run the stored procedure in SQL Analyzer, it is successful... i used the SQL profiler to trace the sequence of events in the stored procedure and triggers, however, i cannot see the data of the declared variables.. my question is, is there a way to know or see the contents of the variables in SQL Profiler?

any help would be appreciated...
thanks in advance....


To display the value of varaible on the messages screen do:

PRINT (@myVar)
Reply


Similar Microsoft SQL Server bytes