![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
is there a way using sqlexpress to review the most recent set of sql commands submitted to a database? I remember something about setting up logging in sql server 2000, but don't see much about this on google or the news group for 2005. |
#3
| |||
| |||
|
|
Jeff Kish (jeff.kish (AT) mro (DOT) com) writes: is there a way using sqlexpress to review the most recent set of sql commands submitted to a database? I remember something about setting up logging in sql server 2000, but don't see much about this on google or the news group for 2005. You could set up a server-side trace for this, look up the sp_trace_xxx functions in Books Online. The lazy way to run a trace is to use Profiler, but Profiler does not ship with SQL Express. Then again, longer tracing in production systems is best done with server-side traces as they take less resources. Yet then again, it's convenient to have Profiler, as you can define the trace in Profiler and then export the trace definition as an SQL script. Oh thanks. |
![]() |
| Thread Tools | |
| Display Modes | |
| |