How to use the new function fn_get_sql()

By Bill Graziano on 16 October 2003 | 0 Comments | Tags: Administration


Narayana Vyas Kondreddi submitted "This article shows you how to use the new function fn_get_sql() and the 3 new columns of master.dbo.sysprocesses. These changes were introduced in SQL Server 2000 SP3/SP3A. In this article, you will find a general purpose stored procedure called ShowCodeLine. It makes use of these new features, to inspect a given spid, and display the currently executing line/query." Follow the link to How to use the new function fn_get_sql()...

Discuss this article: 0 Comments so far. Print this Article.

If you like this article you can sign up for our weekly newsletter. There's an opt-out link at the bottom of each newsletter so it's easy to unsubscribe at any time.

Email Address:

Related Articles

Advanced SQL Server 2008 Extended Events with Examples (25 May 2009)

Introduction to SQL Server 2008 Extended Events (19 May 2009)

Monitoring SQL Server Agent with Powershell (24 March 2009)

SQL Server Version (29 January 2009)

Scheduling Jobs in SQL Server Express - Part 2 (1 December 2008)

Alerts for when Login Failures Strike (14 July 2008)

Using xp_ReadErrorLog in SQL Server 2005 (12 May 2008)

Moving the tempdb database (5 November 2007)

Other Recent Forum Posts

odbc driver manager data source not found and no d (1 Reply)

RANK get previous record but not always (8 Replies)

how to get the value before hyphen from left side (2 Replies)

Any legend for colors in SQL Code? (1 Reply)

COUNT and SUM in same Query (4 Replies)

t-sql call stored procedure with 3 parameters (1 Reply)

Stock Valuation using FILO (9 Replies)

Need to generate a custom footer by sqlcmd utility (2 Replies)

Subscribe to SQLTeam.com

Weekly SQL Server newsletter with articles, forum posts, and blog posts via email. Subscribers receive our white paper with performance tips for developers.

SQLTeam.com Articles via RSS

SQLTeam.com Weblog via RSS

- Advertisement -