SQL SERVER – Location of Resource Database in SQL Server Editions

SQL
10 Comments

While working on a project of database backup and recovery, I found out that my client was not aware of the resource database at all. The Resource database is a read-only database that contains all the system objects that are included with SQL Server. Let us learn more about the Location of the Resource.

SQL SERVER - Location of Resource Database in SQL Server Editions resources-800x222

The location of this database is at different places in the different versions of SQL Server.

In SQL Server 2008:

<drive>:\Program Files\Microsoft SQL Server\MSSQL10.<instance_name>\Binn\.
The Resource database cannot be moved.

SQL SERVER - Location of Resource Database in SQL Server Editions resourcedb
ResourceDB location in SQL Server 2008

In SQL Server 2005:

The same place where a master database is located.
The Resource database has to move with the master database.

You can run the following commands to know resourcedb version and last updated time.

SELECT SERVERPROPERTY('ResourceVersion') ResourceVersion,
SERVERPROPERTY('ResourceLastUpdateDateTime') ResourceLastUpdateDateTime
GO

SQL SERVER - Location of Resource Database in SQL Server Editions resourcedbver

Here are a few recent blog posts on the same topic which you may find interesting:

Let me know what you think of this blog post and if you want me to create a SQL in Sixty Seconds post for this video. If you have a similar script that you may find will be helpful to users, please do share it with me and I will post it on the blog with due credit to you. You can always reach out to me via Twitter here. I hope this blog post helps you to find the Location of resource.

Reference: Pinal Dave (https://blog.sqlauthority.com)

SQL Scripts, SQL Server, SQL System Table
Previous Post
SQL SERVER – Several Readers Questions and Readers Answers
Next Post
SQL SERVER – Question – How to Convert Hex to Decimal

Related Posts

Leave a Reply