What can be done to have a trigger return the SqlCommand or sql statements responsible for the change?
I am using app_name() and host_name() and am hoping to learn of a similar function that will give the T-SQL code/statements/commands.
I have checked all of the stored procedures, but they aren't the source of the problem. The application code must have a glitch. I am assuming that SQL Server 2000 has the T-SQL being run stored while it's running. I want to learn how to access it.
Where does SQL store the “Last TSQL command batch” or the “Process Details” or the command that is displayed by EM, Management, Current Activity, Process Information, Command?
I am using app_name() and host_name() and am hoping to learn of a similar function that will give the T-SQL code/statements/commands.
I have checked all of the stored procedures, but they aren't the source of the problem. The application code must have a glitch. I am assuming that SQL Server 2000 has the T-SQL being run stored while it's running. I want to learn how to access it.
Where does SQL store the “Last TSQL command batch” or the “Process Details” or the command that is displayed by EM, Management, Current Activity, Process Information, Command?