SQL Soundings

sounding - noun. 1. the act of taking a measure of depth
          2. a probe of an environment

▼
Thursday, January 28, 2016

Don't Use BETWEEN with DATETIME

›
I'm not going to try to convince you in English not to use BETWEEN with dates. Run the code below to see why it's not a good idea. (...
1 comment:
Monday, January 18, 2016

OPENQUERY - Linked Server error "Deferred prepare could not be completed"

›
If you're using OPENQUERY and get this error: OLE DB provider "SQLNCLI10" for linked server "MYREMOTESERVER" returne...
Wednesday, October 7, 2015

Finding All Databases Where User is not in Role

›
This script will find all the databases (matching a certain pattern) on the server where a given user is not a member of a given role. Beca...
Monday, August 17, 2015

Load all TRC Trace Files in a Folder into a Single Trace Table

›
This script will load all the trace (*.TRC) files in a given folder into a single trace table. You have to specify the database to create th...
Monday, April 20, 2015

Find Orphaned MDF, NDF and LDF Files on All Drives

›
Sometimes you run across a server that for one reason or another is full of MDF, NDF, and LDF files that look to be months or years old. Of ...
2 comments:
›
Home
View web version
My photo
Larry Leonard
Lawrenceville, Georgia, United States
Before making the move to SQL Server, Larry specialized in Windows programming in C/Win32, C++/MFC, and C#/.NET. His blog focuses on query tuning, database optimization, and system performance, and features handy scripts, practical tips, and occasional dispatches from the many dark corners of SQL Server.
View my complete profile
Powered by Blogger.