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
Theaters with rows of red seats.

SQL SERVER – Disabling Indexes – Non Clustered Indexes

February 19, 2009
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Server, SQL Stored Procedure, SQL Utility

I came across a fantastic T-SQL script that offers an additional feature for changing the recovery mode while enabling and disabling indexes.

Read More
Movers measuring a narrow doorway before carrying a red sofa through

Reviewing a Table Change Script Before It Locks Production

February 18, 2009
Pinal Dave
SQL Tips and Tricks
DBA, SQL Lock, SQL Server, SQL Table Operation

Review a table change script for schema locks, data rewrites, supported online options, backfill batches, and a tested rollback.

Read More
SQLOutlook, SQL Server, database, file locations.

SQL SERVER – Find Current Location of Data and Log File of All the Database

February 17, 2009
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server Security, SQL System Table

A one line query on sys.master_files that shows the current data and log file location for all databases, handy when cleaning up old .mdf and .ldf files.

Read More
SQL SERVER - List All Server Wide Configurations Values

SQL SERVER – List All Server Wide Configurations Values

February 16, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, SQL System Table

I forgot the syntax to check the two digit year cutoff, so I listed all Server Wide Configurations with sys.configurations. A small script worth saving.

Read More
SQL SERVER - Reasons to Backup Master Database - Why Should Master Database Backedup

SQL SERVER – Reasons to Backup Master Database – Why Should Master Database Backedup

February 15, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Backup and Restore, SQL Data Storage, SQL Server Security, SQL Utility

Why should you backup master database? It holds all logins, system configuration and the details SQL Server needs to reach every other database.

Read More
SQLCMD command window with a query.

SQL SERVER – Restore Master Database – An Easy Solution

February 14, 2009
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server Security, SQL Utility

A two step easy way to restore master database: start SQL Server in single user mode, then restore from a full backup of master. No full backup, no restore.

Read More
XML Query results.

SQL SERVER – Simple Example of Reading XML File Using T-SQL

February 13, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL XML

A simple example of reading XML file content using T-SQL: load the XML into a variable and pull out elements and attributes with value() in a SELECT.

Read More
Previous 1 … 45 46 47 48 49 50 51 … 55 Next
  • Books
  • Testimonials
  • Privacy Policy

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