Setting up Pass Chapter

I had been a member of PASS for sometime now and had been contemplating the idea of setting up a PASS Chapter around my place. The nearest Pass chapter or a SQL Server user group I have known is at Philadelphia, PA which is 90 miles from my place. Due to this I wanted to setup a local PASS chapter at Harrisburg, PA.

Few weeks back I contacted PASS about the same and got a reply this week. Currently I am going through the documentation provided by PASS official. I need to work on the plan of how is the Chapter going to be setup, need to gather more resources to turn this into a reality. All I need now is to get in touch with people working on SQL Server (In any area Developer, DBA, BI Developer) in and around Harrisburg, PA.

If you are a SQL Server user in any capacity (in and around Harrisburg, PA), I would be glad to hear from you being a part of this chapter or contributing to this chapter.

For more information about PASS, visit the PASS website

–Bru Medishetty

SQL Server Backup File info using T-SQL Query

Few days back, I was asked this question. Using T-SQL is there a way to find the backup details about a database? Including physical location of the database where the backup of a particular database was performed. I did recollect that I wrote such a T-SQL query sometime back to find the backup locations of database backup. I came up with the below query that helped finds the backup information of a particular database.

Find the T- SQL Script at the end of the post. Remember to change the value of the local variable @DBNAME when running in your system. The query has been tested in SQL Server 2008.

The output of the query was wide enough not to fit in the image, hence it has been broken into 2 and displayed. The query displays the details in the reverse chronology, i.e the most recent backup first.

T-SQL Query used in the article

DECLARE @DBNAME VARCHAR(128)

SET @DBNAME = 'DATABASENAME'

SELECT A.database_name, B.physical_device_name
,A.media_set_id,A.backup_size,
A.backup_start_date,A.backup_finish_date
FROM msdb.dbo.backupset A
INNER JOIN msdb.dbo.backupmediafamily B
ON A.media_set_id = B.media_set_id
WHERE A.Database_Name= @DBNAME
ORDER BY A.backup_finish_date DESC

Do you like this site? Like our FB page @ Facebook.com\LearnSQLWithBru so that, you know when there is a new blog post.

— Bru Medishetty

SQL Server Books Online

Every day in my work I refer Books Online. It is the online documentation on Microsoft SQL Server, which is updated periodically. One of the good things about SQL Server Books Online is that it can downloaded and installed locally on a client machine so as not to go online every time you need to refer the official SQL Server documentation.

Follow this link to download SQL Server 2008 Books Online >> Microsoft SQL Server 2008 Books Online (October 2009)

— Bru Medishetty