dbTalk Databases Forums  

is there a way using sqlexpress to review the most recent set of sql commands submitted to a database?

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss is there a way using sqlexpress to review the most recent set of sql commands submitted to a database? in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff Kish
 
Posts: n/a

Default is there a way using sqlexpress to review the most recent set of sql commands submitted to a database? - 05-18-2007 , 03:23 PM






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.
thanks
Jeff Kish

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: is there a way using sqlexpress to review the most recent set of sql commands submitted to a database? - 05-18-2007 , 03:45 PM






Jeff Kish (jeff.kish (AT) mro (DOT) com) writes:
Quote:
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.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #3  
Old   
Jeff Kish
 
Posts: n/a

Default Re: is there a way using sqlexpress to review the most recent set of sql commands submitted to a database? - 05-20-2007 , 05:50 PM



On Fri, 18 May 2007 20:45:24 +0000 (UTC), Erland Sommarskog
<esquel (AT) sommarskog (DOT) se> wrote:

Quote:
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.
I have sql server 2000 also on the machine, however I'm trying not to use it
as 2005 is the preferred microsoft platform for db's.
i'll check out the online books.
thanks much
Jeff Kish


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.