This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
A hand moving a magnifying glass along a shelf of plain matching books, one book pulled halfway out.

Searching Every Stored Procedure for a Word

June 1, 2007
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Scripts, SQL Server, SQL Stored Procedure, SQL System Table

Searching every stored procedure through sys.sql_modules finds text quickly, but comments, case, dynamic SQL, and other databases need care.

Read More
SQL SERVER - Retrieve Information of SQL Server Agent Jobs

SQL SERVER – Retrieve Information of SQL Server Agent Jobs

May 31, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Agent, SQL Stored Procedure

sp_help_job returns information about SQL Server Agent jobs in msdb. Run it with no parameters to list every job, plus a few related Agent posts.

Read More
SQL SERVER - 2005 Change Database Compatible Level - Backward Compatibility

SQL SERVER – 2005 Change Database Compatible Level – Backward Compatibility

May 29, 2007
Pinal Dave
SQL Tips and Tricks
Compatibility Level, SQL Scripts, SQL Stored Procedure

Use sp_dbcmptlevel to change the database compatible level, like 80 for SQL Server 2000 or 90 for 2005, plus the three step best practice to do it.

Read More
SQL SERVER - Stored Procedure to display code (text) of Stored Procedure, Trigger, View or Object

SQL SERVER – Stored Procedure to display code (text) of Stored Procedure, Trigger, View or Object

May 25, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure, SQL Trigger, SQL View

Need to display code of a stored procedure, trigger, view or function? The system stored procedure sp_helptext prints the text of any unencrypted object.

Read More
A swinging trapeze in an empty circus tent above a safety net holding one red ball

Replacing @@ERROR Checks With TRY CATCH in Old Procedures

May 20, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Error Messages, SQL Server, SQL Stored Procedure, SQL Transactions

Replace fragile @@ERROR checks with TRY CATCH, transaction state checks, and THROW while preserving clear failure information for callers.

Read More
SQL SERVER - 2005 Understanding Trigger Recursion and Nesting with examples

SQL SERVER – 2005 Understanding Trigger Recursion and Nesting with examples

May 18, 2007
Pinal Dave
SQL Performance
SQL Scripts, SQL Server Security, SQL Stored Procedure, SQL Trigger

How trigger recursion and nesting work in SQL Server 2005: triggers nest up to 32 levels, recursive triggers fire themselves, and both can be turned off.

Read More
SQL SERVER - 2005 - List all the database

SQL SERVER – 2005 – List all the database

May 12, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure, Undocumented SQL

Several ways to list all the database names on a server, from sp_databases and sp_helpdb to sys.databases and sp_msForEachDB. I use sp_databases myself.

Read More
Previous 1 … 28 29 30 31 32 33 34 35 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com