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
Three rolled paper sheets rest beside a plain closed notebook on a warm wooden table.

Reading the SQL Server Error Log Properly

February 21, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Read the SQL Server error log for startup details and incident context, filter it with T-SQL, and cycle files without losing needed history.

Read More
SQL SERVER - UDF to Return a Calendar for Any Date for Any Year.

SQL SERVER – UDF to Return a Calendar for Any Date for Any Year

February 20, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts

Reader Dan Golden built on my weekly calendar function to create a UDF to return a calendar for any date for any year. I fixed a small first and last week bug.

Read More
A damaged clay bowl and its separate fragment sit beside an intact empty bowl

Checking XACT_STATE Before COMMIT or ROLLBACK in a CATCH Block

February 19, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

XACT_STATE separates transaction validity from the decision to retain work. Two isolated examples show a doomed transaction and a committable one, both with deliberate errors. Clean up on the same connection and respect the caller’s transaction ownership.

Read More
A distant climber on a rocky ledge beside a red rope already anchored and coiled for the descent.

Rolling Back a Cumulative Update Safely

February 18, 2008
Pinal Dave
SQL Tips and Tricks
Cumulative Update, DBA, SQL Backup and Restore, SQL Patch, SQL Server

Rolling Back a Cumulative Update needs backups, setup evidence, a tested uninstall path, and special care for databases changed after patching.

Read More
SQL SERVER - Msg: 2593 : There are ROWCOUNT rows in PAGECOUNT pages for object 'OBJECT'.

SQL SERVER – Msg: 2593 : There are ROWCOUNT rows in PAGECOUNT pages for object ‘OBJECT’.

February 16, 2008
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server DBCC

DBCC shows Msg 2593: There are ROWCOUNT rows in PAGECOUNT pages for object. It is harmless and for information only. Here is what it means.

Read More
Gouache painting: on a calm river, three rows of flat stepping stones cross from the near bank to the same vermilion post on the far bank

LOG With a Base: Make the Calculation Explicit

February 15, 2008
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

LOG with a base makes logarithm meaning explicit. Compare base two, base ten and the natural default using typed, positive inputs.

Read More
SQL Server Management Studio Query Window.

SQL SERVER – Get Current Database Name

February 12, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts

Need the current database name in a script? SELECT DB_NAME() returns the name of the database you are running the query in. It is a one line answer.

Read More
Previous 1 … 516 517 518 519 520 521 522 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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