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 - Change Compatibility Level - T-SQL Procedure

SQL SERVER – 2005 – Change Compatibility Level – T-SQL Procedure

January 12, 2008
Pinal Dave
SQL Tips and Tricks
Compatibility Level, SQL Scripts

The safe way to change compatibility level in SQL Server 2005: single user mode, sp_dbcmptlevel, then multi user again, and how to check it.

Read More
SQL SERVER - Reclaim Space After Dropping Variable - Length Columns Using DBCC CLEANTABLE

SQL SERVER – Reclaim Space After Dropping Variable – Length Columns Using DBCC CLEANTABLE

January 11, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server DBCC, SQL System Table

Dropping a variable length column does not shrink the table. DBCC CLEANTABLE reclaims that space without an index rebuild. Example on AdventureWorks.

Read More
SQL SERVER - 2005 - Display Fragmentation Information of Data and Indexes of Database Table

SQL SERVER – 2005 – Display Fragmentation Information of Data and Indexes of Database Table

January 10, 2008
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Scripts, SQL Server DBCC, SQL System Table

How do you find Fragmentation Information for a table in SQL Server 2005? DBCC SHOWCONTIG has limits, so I use sys.dm_db_index_physical_stats instead.

Read More
SQL SERVER - Execute Same Query and Statement Multiple Times Using Command GO

SQL SERVER – Execute Same Query and Statement Multiple Times Using Command GO

January 9, 2008
Pinal Dave
SQL Performance
SQL DateTime, SQL Scripts

Need to run the same statement several times without copy and paste? Put a number after the command GO, like GO 5, and SQL Server runs the batch that many times.

Read More
Convert from SQL Server to CSV.

SQL SERVER – Export Data From SQL Server to Microsoft Excel Datasheet

January 8, 2008
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Utility

How to export data from SQL Server to Microsoft Excel? Enable Ad Hoc Distributed Queries, create the Excel file, and run a short query to fill it.

Read More
SYNONYM' SQL Server Tool Window.

SQL SERVER – 2005 – Introduction and Explanation to SYNONYM – Helpful T-SQL Feature for Developer

January 7, 2008
Pinal Dave
SQL Performance
SQL Scripts

SQL Server 2005 added SYNONYM, a single-part name that replaces a long four part object name. I explain how it saves typing and shields code from changes.

Read More
SQL SERVER - Download Frequently Asked Generic Interview Questions

SQL SERVER – Download Frequently Asked Generic Interview Questions

January 6, 2008
Pinal Dave
SQL Interview Questions and Answers
Database, DBA, SQL Download

Readers wanted more on Frequently Asked Generic Interview Questions, so the list is now a download. There is no right answer, just answer what feels right.

Read More
Previous 1 … 774 775 776 777 778 779 780 … 840 Next
  • Books
  • Testimonials
  • Privacy Policy

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