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
Gouache painting: in a rehearsal room, a vermilion rug strip marks the center

DATEPART tzoffset: Read the Signed Offset in Minutes

March 31, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server

DATEPART tzoffset extracts an offset in minutes. Preserve its sign, test sub-hour values and retain the source temporal type.

Read More
Person icon in information card.

SQL SERVER – 2005 – List All Column With Identity Key In Specific Database

March 29, 2008
Pinal Dave
SQL Tips and Tricks
SQL Identity, SQL Index, SQL Scripts, SQL Server, SQL System Table

Question I received in Email : How to list all the columns in the database which are used as identity key in my database?

Read More
SQL Server query execution plan.

SQL SERVER – Introduction to sys.dm_exec_query_optimizer_info

March 28, 2008
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, SQL System Table

While browsing Books Online I found sys.dm_exec_query_optimizer_info, which returns statistics about the query optimizer to help you tune a workload.

Read More
A muddy boot print on a clean stone doorstep with a brass magnifying glass resting beside it.

Reading SQL Server Error Messages Carefully

March 26, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Error Messages, SQL Server, SQL Transactions

Reading SQL Server error messages carefully means using number, severity, state, and line to narrow the cause before searching.

Read More
Socks sorted into matched pairs on a quilt, a small pile of odd socks set apart, a hand holding up one sock.

Solving SQL Puzzles With Set-Based Thinking

March 20, 2008
Pinal Dave
SQL Puzzle
Ranking Functions, SQL Joins, SQL Scripts, SQL Server

Set-based thinking solves three SQL puzzles with grouping, anti-joins, and windows, then turns each solution into a repeatable query habit.

Read More
SQL SERVER - Add Column With Default Column Constraint to Table

SQL SERVER – Add Column With Default Column Constraint to Table

March 19, 2008
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Constraint and Keys, SQL Scripts, SQL Server

Add a NOT NULL column with a named default Column Constraint in one ALTER TABLE statement. I always name constraints instead of letting SQL Server pick one.

Read More
A pressure cooker on a stove releasing a thin plume of steam from its safety valve, a hand resting nearby

Porting Stored Procedures Between Platforms

March 17, 2008
Pinal Dave
SQL Tips and Tricks
SQL Migration, SQL Server, SQL Stored Procedure, Temp Table

Porting stored procedures means preserving error, transaction, temporary-table, sequence, and date behavior instead of translating tokens.

Read More
Previous 1 … 387 388 389 390 391 392 393 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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