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
A kitchen cupboard crammed with unmatched container lids, a red one at the front.

Finding Orphaned Data and Log Files Nobody Attached

February 23, 2013
Pinal Dave
SQL Tips and Tricks
DBA, Disk, SQL Data Storage, SQL Server

Inventory orphaned data and log files by comparing data-folder contents with sys.master_files, then review candidates before cleanup.

Read More
CPU task manager snapshot.

SQL SERVER – T-SQL Script to Keep CPU Busy

February 22, 2013
Pinal Dave
SQL Tips and Tricks

Need to keep CPU busy for capacity planning or stress testing on a development server? I share an improved script, but never run it on production.

Read More
Top 1 star from.

SQL SERVER – Shortcut to SELECT only 1 Row from Table

February 21, 2013
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio

Developers often select only 1 row to peek at what a table holds, but typing SELECT TOP 1 again and again is slow. I share a quicker shortcut for it.

Read More
Gouache painting of a jar of saved seeds beside a small red pot with a new green sprout on a garden bench

Restore a Database in SSMS: Step by Step

February 20, 2013
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server Management Studio

To restore a database in SSMS, right-click Databases, choose Restore Database, pick the backup file, name the destination and choose the recovery state. This post covers each page of the dialog, the tail-log error that stops overwrites, and the T-SQL for a full, differential and log restore chain.

Read More
A netted fruit cage over blackcurrant bushes, a blackbird perched outside unable to get in.

Safe Dynamic SQL With sp_executesql and QUOTENAME

February 19, 2013
Pinal Dave
SQL Tips and Tricks
Dynamic SQL, SQL Server, SQL Server Security, SQL Stored Procedure

Write safe dynamic SQL with typed value parameters, validated object names, and allowed sort columns, then test hostile input.

Read More
Two identical windmills on hills across a valley, sails turning in step

Geo-Replication for Azure SQL

February 18, 2013
Pinal Dave
SQL Tips and Tricks
Cloud Computing, SQL Azure, SQL High Availability, SQL Replication

Geo-replication for Azure SQL protects against regional failure through readable replicas or failover groups; learn lag, routing, and drills.

Read More
SQL SERVER - Fix : Error - sqljdbc_auth.dll Issue - com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost, port 1433 has failed

SQL SERVER – Fix : Error – sqljdbc_auth.dll Issue – com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost, port 1433 has failed

February 17, 2013
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server

A JDBC user got ‘The TCP/IP connection to the host localhost, port 1433 has failed’ even after checking the firewall. Here is the sqljdbc_auth.dll fix.

Read More
Previous 1 … 497 498 499 500 501 502 503 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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