SQL Server

SQL Server Community

SQL Server Blogs

Larry Leonard
Follow /15 Sep 2014 at 7:30pm / SQL Server

Display ETA and Percent Completed for BACKUP or RESTORE Commands

This code will show you the estimated time of completion and percent completed for currently running BACKUP or RESTORE commands. -- Shows both backups and restores. select session_id as 'spid' , command as 'Command' , start_time as...
21 0 /
Kenneth Fisher
Follow /15 Sep 2014 at 1:00pm / SQL Server

I SCHEMABOUND my scalar UDF and you won’t believe what happened next.

Sorry for the click bait but I just couldn’t resist, and to be fair I was pretty impressed with this little trick. The other week I did a post on SCHEMABINDING and Diana sent me this great link on SCHEMABINDING UDFs . In it TomErv discribes SCHEMABINDING...
39 0 /
Rohit Garg
Follow /15 Sep 2014 at 10:15am / SQL Server

Creation & Deletion of Database Snapshot by SQL Agent Job

Some days back, I received one query on my facebook page that user want to create Database Snapshot frequently & want to delete the oldest with same frequency. Quite interesting scenario. I did not go in deep why he has such requirement but I am clear...
45 0 /
Nakul Vachhrajani
Follow /15 Sep 2014 at 4:30am / SQL Server

#0346 – SQL Server – Using CASE with a PRINT statement

Informational and alert messages during execution of a T-SQL script are the most preferred method to update the user on the progress of the task being executed. These messages are generated by the various PRINT statements embedded in the script. Often...
73 0 /
Jen Stirrup
Follow /13 Sep 2014 at 3:37pm / SQL Server

Counting is Easy, Measuring is Hard! Dashboard Design

Counting is easy, Measuring is Hard! Dashboard Design from Jennifer Stirrup
790 0 /
Jason Strate
Follow /12 Sep 2014 at 5:00pm / SQL Server

Reblog: September 5 to September 11

Photo credit – JStove Old posts are like unicorns. You might see them just once, but it’d sure be nice to have them come back around every not and then. This connection might not make that much sense, but face it… there’s no...
47 0 /
David Dye
Follow /12 Sep 2014 at 3:46pm / SQL Server

What are The Different Types of Database Backups?

If you are just beginning SQL Server database administration then you might not be familiar with the different types of database backups that are available and exactly what they backup.  This post is going to outline the different types of backups and...
54 0 /
Tracy McKibben
Follow /12 Sep 2014 at 1:00pm / SQL Server

Friday Followup For September 12, 2014

It’s Friday, time to look back at the most popular RealSQLGuy posts of the week. Because it’s Friday and you’re not doing any real work anyway. Posts That Were Popular This Week Don’t Get Slimed By Bad Parameter Sniffing...
131 0 /
Chris Webb
Follow /12 Sep 2014 at 9:30am / SQL Server

Counting Customers Who Have Bought All Selected Products

Market basket analysis is a fairly well understood problem for SSAS – it’s best handled using many-to-many relationships, as shown in the excellent The Many-to-Many Revolution   white paper. However the other week I was asked a question that was...
59 0 /
Basit A. Farooq
Follow /11 Sep 2014 at 7:51pm / SQL Server

SQL Server: Converting binary data to a hexadecimal string

Problem I have a requirement to convert the binary data inside a table column or variable to a hexadecimal string. Is it possible to directly convert the binary data to a hexadecimal string characters? Solution Before SQL Server 2005, it was not...
62 0 /
Mike Walsh
Follow /11 Sep 2014 at 3:00pm / SQL Server

Four Things We Wish We Knew

A couple weeks ago I posted 4 Attitudes I Wish I Had When I Started – it was 4 pieces of advice I’d love to give to my old self that I’ve either learned the hard way or am still learning. I also asked others to contribute. I specifically...
84 0 /
John Pertell
Follow /11 Sep 2014 at 2:00pm / SQL Server

Working with FileTable in SQL – Wrapup

I’m in the process of reviewing my notes and demos for my upcoming session, Introduction to FileTables , at SQL Saturday Orlando . There’s a few things I’ve been meaning to write about, so this post will be on some of the topics I’ve skipped. Some have...
52 0 /
Kenneth Fisher
Follow /11 Sep 2014 at 1:00pm / SQL Server

What are trace flags?

Trace flags are one of those things that I’ve heard about more and more over the last five or six years. But only in the past year or so have I started to understand what they are and how to use them. I want to start out by saying that they are...
62 0 /
DBAFromTheCold
Follow /11 Sep 2014 at 9:12am / SQL Server

Identifying large queries using Server Side Traces

Who are your worst offenders? By offenders I mean, queries that are consuming the most resources on your server(s). I know Extended Events have a lower impact but I like server side traces. Not only because once you’ve set one up, setting up others...
47 0 /
prashanthjayaram
Follow /10 Sep 2014 at 9:05pm / SQL Server

SQL – List Primary key and Concatenate composite Keys into a single row separed by comma

The following query lists all the Primary keys of all the table.  OP has requested to list all PK and composite PKs and concatenate all it’s composite PK column values into a single row separated by comma hence this post.   SELECT TAB...
95 0 /