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 - Difference between DISTINCT and GROUP BY - Distinct vs Group By

SQL SERVER – Difference between DISTINCT and GROUP BY – Distinct vs Group By

March 29, 2007
Pinal Dave
SQL Performance
SQL Function, SQL Joins, SQL Scripts

What is the difference between DISTINCT and GROUP BY? They usually produce the same plan. Use GROUP BY for aggregates and DISTINCT to remove duplicates.

Read More
SQL SERVER - SQL Commandments - Suggestions, Tips, Tricks

SQL SERVER – SQL Commandments – Suggestions, Tips, Tricks

March 20, 2007
Pinal Dave
SQL Performance
Best Practices, Database, Software Development, SQL Backup and Restore, SQL Constraint and Keys, SQL DateTime, SQL Download, SQL Error Messages, SQL Function, SQL Index, SQL Joins, SQL Server DBCC, SQL Server Security, SQL Stored Procedure

My 20 SQL Commandments for SQL Server, rewritten from an Oracle article: know your data, test with realistic data, write identical statements, and more tips.

Read More
SQL SERVER - SQL Server 2005 Samples and Sample Databases (February 2007)

SQL SERVER – SQL Server 2005 Samples and Sample Databases (February 2007)

February 24, 2007
Pinal Dave
SQL Performance
SQL Coding Standards, SQL Download, SQL Error Messages, SQL Joins, SQL Scripts, SQL Server Security

SQL Server 2005 Samples gave learners AdventureWorks and the smaller AdventureWorksLT. Why they mattered and where to find sample databases today.

Read More
SQL SERVER - FIX : Error 15023: User already exists in current database.

SQL SERVER – FIX : Error 15023: User already exists in current database.

February 15, 2007
Pinal Dave
SQL Performance
DBA, SQL Cursor, SQL Download, SQL Error Messages, SQL Joins, SQL Scripts, SQL Server DBCC, SQL Server Security, SQL Stored Procedure

Error 15023: User already exists in current database. I fix it with sp_change_users_login, using Report, Auto_Fix or Update_One to link the user to a login.

Read More
SQL SERVER - Primary Key Constraints and Unique Key Constraints

SQL SERVER – Primary Key Constraints and Unique Key Constraints

February 5, 2007
Pinal Dave
SQL Performance
Database, Software Development, SQL Coding Standards, SQL Constraint and Keys, SQL Download, SQL Error Messages, SQL Index, SQL Joins, SQL Scripts, SQL Server Security

Primary Key and Unique Key both enforce uniqueness, but they differ in the index they create and in NULL handling. Here are the differences and the scripts.

Read More
How to Reindex Database Tables.

SQL SERVER – ReIndexing Database Tables and Update Statistics on Tables

January 31, 2007
Pinal Dave
SQL Performance
Best Practices, SQL Constraint and Keys, SQL Cursor, SQL Index, SQL Joins, SQL Scripts, SQL Server DBCC, SQL Stored Procedure

ReIndexing Database tables with DBCC DBREINDEX and sp_MSforeachtable, then sp_updatestats to refresh statistics. Two scripts, including the one I prefer.

Read More
Previous 1 … 14 15 16 17
  • Books
  • Testimonials
  • Privacy Policy

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