• SQL Server
  • Log Shipping Tricks Demo
  • SQLCruise Alaska 2012 Pics
SQLSoldier News From the Frontlines

Tag Archives: T-sql

T-SQL

Day 30 of 31 Days of Disaster Recovery (T-SQL Tuesday #40): Using Partial Availability and Initialize from Backup to Replicate a Partial Database

March 11, 2013 11:18 pm / 2 Comments / SQLSoldier

It’s been a tough and long road to 31 Days of Disaster Recovery. It’s been very difficult coming up with quality topic ideas for the series as we near the end. For day 30 of the series, I am combining a post on performing piecemeal restores with a post on filegroups for T-SQL Tuesday #40 … Read More →

Posted in: SQL Server / Tagged: 31 Days of Disaster Recovery, Disaster Recovery, Replication, T-SQL, T-SQL Tuesday, Undocumented Stuff

Day 18 of 31 Days of Disaster Recovery: How to CHECKDB Like a Boss

January 23, 2013 12:55 am / 6 Comments / SQLSoldier
31 Days of Disaster Recovery

Day 18 of my 31 Days of Disaster Recovery series is drawing to a close. It’s 11:22 PM here, and I’ve been working feverishly to finish today’s post before the calendar flips over to tomorrow. This started out as sharing a simple script I use for running DBCC CHECKDB against all databases on a server, … Read More →

Posted in: SQL Server / Tagged: 31 Days of Disaster Recovery, Automation, DBCC, Disaster Recovery, T-SQL

Day 13 of 31 Days of Disaster Recovery: Standard Backup Scripts

January 14, 2013 8:02 pm / 11 Comments / SQLSoldier
31 Days of Disaster Recovery

Today’s post took longer to prepare than I had anticipated which is why day 13 is being published on day 14. This won’t derail the 31 Days of Disaster Recovery series, even if it runs over into February. Day 13′s topic is standard backup scripts. I’ve said on numerous occasions that the first thing a … Read More →

Posted in: SQL Server / Tagged: 31 Days of Disaster Recovery, Automation, Disaster Recovery, T-SQL

Day 11 of 31 Days of Disaster: Converting LSN Formats

January 12, 2013 1:08 am / 5 Comments / SQLSoldier
31 Days of Disaster Recovery

Welcome back to my series 31 Days of Disaster Recovery. Today is day 11, and today I want to talk about converting LSN formats. I had intended to write this blog post a long time ago, but I never seemed to get around to it. This started out as a question posted on Twitter’s #sqlhelp … Read More →

Posted in: SQL Server / Tagged: 31 Days of Disaster Recovery, Disaster Recovery, Internals, T-SQL

Day 3 of 31 Days of Disaster Recovery: Determining Files to Restore Database

January 3, 2013 11:43 pm / 28 Comments / SQLSoldier
31 Days of Disaster Recovery

Day 3 of 31 Days of Disaster Recovery: Determining Files to Restore Database Welcome back for day 3 of my month-long series on Disaster Recovery. For today’s post, I want to address something that, in my experience, has really flummoxed a lot of people who find themselves unprepared to handle a disaster scenario. Determining exactly … Read More →

Posted in: SQL Server / Tagged: 31 Days of Disaster Recovery, Disaster Recovery, T-SQL

Cross-database Queries by Contained Users

December 13, 2012 8:38 pm / Leave a Comment / SQLSoldier

Cross-database Queries by Contained Users I presented to the Pacific Northwest SQL Server User Group / PASS Chapter (PNWSQL) last night on the subject of contained databases. The slide deck and demo code from my presentation, Implementing Contained Databases, can be downloaded below or will be uploaded to the User Group site in the near … Read More →

Posted in: SQL Server / Tagged: Security, T-SQL, Tips & Tricks

T-SQL Tuesday #36 – SQL Community

November 13, 2012 10:09 am / 1 Comment / SQLSoldier

T-SQL Tuesday #36 – SQL Community This blog entry is participating in T-SQL Tuesday #36, hosted this month by Chris Yates(Blog|@YatesSQL). You are invited to visit his blog to join the blog party. You are welcome to write your own participating blog post for the party or just to read more blogs participating in this … Read More →

Posted in: SQL Server / Tagged: SQL PASS, SQL PASS Summit, T-SQL, T-SQL Tuesday

Man Vs Machine

August 23, 2012 1:00 pm / Leave a Comment / SQLSoldier

Man Vs Machine Are you a fan of the television show Man Vs Food starring foodie Adam Richman? In this show, host and title subject “Man” Adam Richman travels the United States taking on food challenges where he finds them. Sometimes these challenges entail eating more food than is generally humanly possible. Other times it … Read More →

Posted in: SQL Server / Tagged: SQL PASS, SQL PASS Summit, T-SQL

Performing Fast Searches of Query Plans

July 12, 2012 8:54 am / 1 Comment / SQLSoldier

Performing Fast Searches of Query Plans I’ve made blog posts in the past on using the exist() method to search for query plans with specific attributes (e.g., Find Cached Query Plans By Index Name). Another good aspect of the exist() method is that it is a much faster way to search for a specific string … Read More →

Posted in: SQL Server / Tagged: T-SQL, Tips & Tricks, XML in SQL

Is SELECT Identity() … INTO Minimally Logged in Simple Recovery?

June 30, 2012 2:30 pm / 3 Comments / SQLSoldier

Is SELECT Identity() … INTO Minimally Logged in Simple Recovery? I was having a discussion with Idera (@idera_software) dev lead Vicky Harp (blog|@vickyharp) about minimizing log impact when performing schema changes on really large tables. One option discussed was using SELECT INTO to create a new table and populate it in a minimally logged operation. … Read More →

Posted in: SQL Server / Tagged: Internals, Performance & Optimization, T-SQL

Post Navigation

← Older Posts
 
<

Remote DBA Services
- serious SQL Server expertise for less than a full-time DBA
My Articles
 
My Book
Check out my interview on

Extreme Data Recovery (with Argenis Fernandez)
10 Things all BI System Administrators Should Know
Upcoming Events
    All events shown in Pacific Time

    No events to show

RSS My SQL Server Magazine Articles

  • Database Mirroring for Disaster Recovery September 16, 2011
  • Comparative Review: Database Schema Comparison Tools August 24, 2011
  • 3 Log Shipping Techniques June 22, 2011
  • Hardening SQL Server June 20, 2011
  • Review: ScriptLogic Security Explorer for SQL Server February 8, 2011

Tags

31 Days of Disaster Recovery Architecture Automation CDC & Change Tracking Data Architecture VC Database Mirroring DBCC Denali Disaster Recovery Dynamic Management Views Extended Events Gamers & Geeks General Discussion High Availability How do I ... ? Humor Idera ACE Program Internals MCM Meme Monday Performance & Optimization PowerShell Professional Development Replication Security SQLBits SQL PASS SQL PASS Summit SQLRally SQL Saturday SQL Server Magazine SQL University SSAS & BI SSIS SSMS SSRS T-SQL T-SQL Tuesday tempDB Tips & Tricks Travel Troubleshooting Undocumented Stuff Whitepapers XML in SQL

News

Download my Powershell Scripts

The following scripts can be downloaded as text files. You will need to change the file extension to .ps1 in order to execute them.

Backup a database
Restore a database
Scan a server to find a free port
Query DNS to get the FQDN of a server


To see some examples of my other forms of writing, please visit my page on WritersCafe.org. It is almost exclusively horror fiction, but I sometimes throw other things in there too from time to time. There's one science fiction story, a couple of poems, and quite a few humor pieces as well.


Look for me in the SQL Q&A section of the August, 2007 issue of TechNet Magazine.
August issue of TechNet Magazine's SQL Q&A column

Protect our Heroes

© Copyright 2012 - Robert L Davis
Infinity Theme by DesignCoral / WordPress

Twitter Twitter 
LinkedIn LinkedIn 
TLF TLF RSS RSS 
WritersCafe WritersCafe 
SQLPASS SQLPASS 
Facebook Facebook
grab this