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

Your name:

Reply:


Posted by Erland Sommarskog on 05/18/07 20:45

Jeff Kish (jeff.kish@mro.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.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация