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
SQL SERVER - SQL SERVER - Simple Example of Recursive CTE - Part 2 - MAXRECURSION - Prevent CTE Infinite Loop

SQL SERVER – SQL SERVER – Simple Example of Recursive CTE – Part 2 – MAXRECURSION – Prevent CTE Infinite Loop

July 29, 2008
Pinal Dave
SQL Tips and Tricks
CTE, SQL Joins, SQL Scripts

Can you stop a recursive CTE from running forever? Yes. Use the MAXRECURSION option to limit it, and see what happens when the limit is too low.

Read More
SQL SERVER - Simple Example of Recursive CTE

SQL SERVER – Simple Example of Recursive CTE

July 28, 2008
Pinal Dave
SQL Tips and Tricks
CTE, SQL Joins, SQL Scripts

A simple example of Recursive CTE in SQL Server, using AdventureWorks to walk the hierarchy of managers and employees, with each part explained.

Read More
SQL Object Explorer results window.

SQL SERVER – mssqlsystemresource – Resource Database

July 27, 2008
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL System Table

What is mssqlsystemresource? It is the Resource Database, a read only database of system objects that makes upgrading SQL Server much easier.

Read More
A long pale wooden plank over a triangular support, beside a red wooden cube.

NULLIF Denominators: Keep Zero and Missing Values Visible

July 25, 2008
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL NULL, SQL Server

NULLIF denominators turn zero into NULL for a deliberate division policy. This complete example keeps zero, missing inputs and integer truncation visible beside the decimal result.

Read More
SQL SERVER - 2005 -Track Down Active Transactions Using T-SQL

SQL SERVER – 2005 -Track Down Active Transactions Using T-SQL

July 24, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL System Table, SQL Transactions

Want to track down active transactions in your database? One simple DMV query on sys.dm_tran_session_transactions returns them in SQL Server 2005.

Read More
Log File Viewer - SQL.

SQL SERVER – Introduction to Log Viewer

July 23, 2008
Pinal Dave
SQL Tips and Tricks
SQL Server Security, SQL Utility

The SQL Server 2005 Log Viewer shows SQL Server error logs, Agent logs, Database Mail and Windows event logs in one place, ready to filter and export.

Read More
SQL SERVER - FIX - ERROR : 9004 An error occurred while processing the log for database. If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.

SQL SERVER – FIX – ERROR : 9004 An error occurred while processing the log for database. If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.

July 21, 2008
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Error Messages, SQL Scripts

Error 9004 means an error occurred while processing the log for database, so it will not attach. Here are the steps that worked for me, starting with emergency mode.

Read More
Previous 1 … 500 501 502 503 504 505 506 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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