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
Database status.

SQL SERVER – 2005 – Find Database Status Using sys.databases or DATABASEPROPERTYEX

August 31, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server DBCC, SQL System Table, SQL Utility

Find database status such as ONLINE, OFFLINE, RESTORING or SUSPECT using sys.databases or DATABASEPROPERTYEX, and learn what each status means.

Read More
Database properties in AdventureWorks.

SQL SERVER – 2005 – Find Database Collation Using T-SQL and SSMS

August 30, 2007
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Scripts

Two ways to check database collation using T-SQL and SSMS in SQL Server 2005, and why DATABASEPROPERTYEX in T-SQL is the one I recommend.

Read More
SQL SERVER - Difference and Explanation among DECIMAL, FLOAT and NUMERIC

SQL SERVER – Difference and Explanation among DECIMAL, FLOAT and NUMERIC

August 29, 2007
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Scripts

What is the difference between Decimal and Numeric? None, they are the same. Float is different: it is approximate, while Decimal keeps exact precision.

Read More
SQL SERVER - 2005 - Use Always Outer Join Clause instead of (*= and =*)

SQL SERVER – 2005 – Use Always Outer Join Clause instead of (*= and =*)

August 27, 2007
Pinal Dave
SQL Tips and Tricks
SQL Deprecated Feature, SQL Joins, SQL Scripts

My friend’s queries failed in SQL Server 2005 because they used *= and =* for joins. Always use the LEFT or RIGHT outer join clause instead.

Read More
Two small terracotta bowls and one large pale bowl holding blue pebbles, with one vermilion pebble in the large bowl.

GROUPING_ID: Separate Stored NULL Values From ROLLUP Totals

August 26, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Reports, SQL Scripts, SQL Server

GROUPING_ID helps me distinguish a stored NULL from a subtotal created by ROLLUP. Both can appear in the same column. I keep the grouping bits beside the numbers before adding presentation labels.

Read More
SQL SERVER - FIX : Error : msg 2540 - The system cannot self repair this error

SQL SERVER – FIX : Error : msg 2540 – The system cannot self repair this error

August 25, 2007
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Error Messages, SQL Scripts

Msg 2540 means the system cannot self repair this error, usually corrupt metadata or system files. My fix order: restore the backup, DBCC repair, check hardware.

Read More
A gouache instrument room shows a fitted mechanism tray lifted from one case beside a prepared matching case.

SQL SERVER – T-SQL Script to Attach and Detach Database

August 24, 2007
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Scripts, SQL Server

Detach Database operations remove a database from its instance without deleting its files. I preserve a recoverable backup before moving them.

Read More
Previous 1 … 538 539 540 541 542 543 544 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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