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 - 2005 - A Simple Way To Defragment All Indexes In A Database That Is Fragmented Above A Declared Threshold

SQL SERVER – 2005 – A Simple Way To Defragment All Indexes In A Database That Is Fragmented Above A Declared Threshold

March 4, 2008
Pinal Dave
SQL Performance
SQL Error Messages, SQL Index, SQL Scripts, SQL Server DBCC

The BOL script to defragment all indexes in a database above a declared threshold failed with Msg 2501. I fixed the missing schema prefix so it runs on SQL Server 2005.

Read More
SQL SERVER - Sharpen Your Basic SQL Server Skills - Learn the distinctions between unique constraint and primary key constraint and the easiest way to get random rows from a table

SQL SERVER – Sharpen Your Basic SQL Server Skills – Learn the distinctions between unique constraint and primary key constraint and the easiest way to get random rows from a table

March 3, 2008
Pinal Dave
SQL Tips and Tricks
Database, DBA, SQL Constraint and Keys

My March 2007 SQL Server Magazine article explains the distinctions between unique constraint and primary key constraint, and an easy way to get random rows.

Read More
SQL SERVER - How to Retrieve TOP and BOTTOM Rows Together using T-SQL

SQL SERVER – How to Retrieve TOP and BOTTOM Rows Together using T-SQL

March 2, 2008
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Function, SQL Joins, SQL Scripts, SQL Server

Need TOP 1 and BOTTOM 1 in one result? UNION fails with two ORDER BY clauses. Here is a simple T-SQL way to retrieve TOP and BOTTOM Rows together.

Read More
SQL SERVER - Transfer The Logins and The Passwords Between Instances of SQL Server 2005

SQL SERVER – Transfer The Logins and The Passwords Between Instances of SQL Server 2005

March 1, 2008
Pinal Dave
SQL Tips and Tricks
SQL Download, SQL Scripts, SQL Server Security, SQL Utility

How do you transfer the logins and passwords between instances of SQL Server 2005 after a hardware upgrade? I summarize Microsoft KB 918992 and its script.

Read More
SQL SERVER - Introduction to SQL Server Encryption and Symmetric Key Encryption Tutorial

SQL SERVER – Introduction to SQL Server Encryption and Symmetric Key Encryption Tutorial

February 29, 2008
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server Security

SQL Server 2005 added encryption to protect data from hackers. My article introduces SQL Server encryption and walks through a symmetric key encryption tutorial.

Read More
SQL SERVER - Dynamic Case Statement - FIX : ERROR 156 : Incorrect syntax near the keyword

SQL SERVER – Dynamic Case Statement – FIX : ERROR 156 : Incorrect syntax near the keyword

February 28, 2008
Pinal Dave
SQL Performance
SQL Error Messages, SQL Scripts

Using CASE in ORDER BY to switch between ASC and DESC gives Error 156: Incorrect syntax near the keyword. I show two ways to write a dynamic case that works.

Read More
Hands lifting a root-bound plant from a cracked clay pot, a larger new pot with fresh soil waiting beside it

Planning a Move Off an Old SQL Server Version

February 27, 2008
Pinal Dave
SQL Tips and Tricks
DBA, SQL Migration, SQL Server, SQL Upgrade

Plan a move off an old SQL Server version with a complete inventory, compatibility testing, a supported target, and a dated exit plan.

Read More
SQL SERVER - SELECT 1 vs SELECT * - An Interesting Observation

SQL SERVER – SELECT 1 vs SELECT * – An Interesting Observation

February 26, 2008
Pinal Dave
SQL Performance
SQL Scripts, SQL Server

SELECT 1 vs SELECT * inside IF EXISTS: I ran 4 tests and both gave the same result and the same execution plan cost. Can you find a case where they differ?

Read More
A leaf stencil taped to a plaster wall beside three identical painted sage leaves, a paint sponge on a saucer.

Templates and Snippets in SSMS

February 25, 2008
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Scripts, SQL Server Management Studio, SQL Shortcut

Templates and snippets in SSMS turn repeated SQL patterns into editable starting points while keeping environment assumptions visible.

Read More
Database product features comparison chart.

SQL SERVER – 2005 – Licensing Model Compared to Other Database Products

February 24, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Data Warehousing, Database, DBA, Software Development, SQL Download, SQL Licensing

How does the SQL Server 2005 Licensing Model compare with other database products? I share a chart and table showing it is feature rich and far cheaper.

Read More
Previous 1 … 536 537 538 539 540 541 542 … 588 Next
  • Books
  • Testimonials
  • Privacy Policy

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