0% found this document useful (0 votes)
23 views

SQL Server Resource Database (System Database)

The Resource database contains all system objects included with SQL Server. It has a fixed ID of 32767 and is read-only and hidden. Upgrading SQL Server is easier by simply copying the single Resource database file which contains all system objects rather than dropping and recreating them. The Resource database files are located in the SQL Server Binn folder and while its files can be backed up, SQL Server cannot back up or restore the Resource database directly.

Uploaded by

sudheerp.sqldba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

SQL Server Resource Database (System Database)

The Resource database contains all system objects included with SQL Server. It has a fixed ID of 32767 and is read-only and hidden. Upgrading SQL Server is easier by simply copying the single Resource database file which contains all system objects rather than dropping and recreating them. The Resource database files are located in the SQL Server Binn folder and while its files can be backed up, SQL Server cannot back up or restore the Resource database directly.

Uploaded by

sudheerp.sqldba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Resource Database

Contents of Resource Database


• The ID of the Resource database is always 32767.
• The Resource database is a read-only and hidden database.

• Resource database contains all the system objects that are included with SQL Server.
• The Resource database does not contain user data or user metadata.

Uses of Resource Database


• The Resource database makes upgrading to a new version of SQL Server an easier
and faster procedure.
• In earlier versions of SQL Server, upgrading required dropping and creating system
objects. Because the Resource database file contains all system objects, an upgrade is
now accomplished simply by copying the single Resource database file to the local
server.

Path of Resource Database


• C:\Program Files\Microsoft SQL
Server\MSSQL<version>.<instance_name>\MSSQL\Binn\mssqlsystemresource.mdf
• C:\Program Files\Microsoft SQL
Server\MSSQL<version>.<instance_name>\MSSQL\Binn\mssqlsystemresource.ldf

Backup and Restore of Resource Database


• SQL Server cannot back up the Resource database. You can perform your own file-
based or a disk-based backup
• but you cannot use SQL Server to restore your backups. Restoring a backup copy of
mssqlsystemresource.mdf can only be done manually

You might also like