Thursday, April 6, 2023
Difference between Data and Log file
Tuesday, April 4, 2023
What is Distribution database? What are use of Distribution database?
Distribution database:-
The distribution database is another system database in SQL
Server.
It is very useful in the replication of objects.
The utilization of this database is to store metadata of
replication & information of distribution agents & subscribers.
This database contains details of the article, meta-data of
replication, and data.
Monday, April 3, 2023
What is Resource database? What are use of Resource database?
Resource database:-
The 5th system database in SQL Server is the resource database. This database is hidden from users and is read-only.
Resource databases, which are used to offer a collection of system objects that are consistent across all editions of SQL Server, were first introduced with SQL Server 2005.
Here are some important points about it:
Purpose: The read-only Resource database serves as a storage space for the system objects and metadata that the SQL Server instance needs. It keeps track of system objects like functions, stored procedures, and system catalog views.
Hidden Database: Resource databases are concealed and not immediately accessible by users or administrators, in contrast to user databases. The SQL Server engine is intended to be used internally.
Single Instance: Each SQL Server instance only has one Resource database, which is shared by all the databases that are hosted by that instance.
Patches and Upgrades: The Resource database is modified to update system objects during the installation of a service pack or a SQL Server upgrade. This aids in maintaining compatibility between the installed version and the system catalog.
Version-specific: The Resource database only supports that particular version. A new Resource database is built to correspond with the system objects of the new version whenever an SQL Server instance is updated.
Recovery Model: Because the Resource database is designed to be read-only and does not require transaction log backups, it employs the Simple recovery model.
Security: The Resource database includes stringent security controls since it is necessary for the SQL Server instance to run. It is only accessible to the SQL Server service account and highly privileged administrators.
Avoid Modifications: Playing around with the Resource database might cause serious problems and possibly ruin the database. Any direct modifications to this database must be avoided.
System Object Access: When resolving system object references in queries, the SQL Server engine checks the Resource database. It aids in effectively retrieving data about system items.
File Location: The Resource database files (MDF and LDF) are kept in the 'MSSQLBinn' folder of the SQL Server installation directory.
By default, the location of resource database files are <drive>:\Program Files\Microsoft SQL Server\MSSQL1.<instance_name>\Binn\
The resource database's ID is 32767.
The T-SQL command cannot be used to back up and restore this database.
Featured Post
Use DBCC SQLPerf (logspace)
Use DBCC SQLPerf (logspace) to monitor and optimize database performance in SQL Server. Let's Explore: Let's Explore: https://mades...
Popular Posts
-
Outline of the Article: 1. Introduction 2. Understanding DBCC CHECKALLOC 2.1 What is DBCC CHECKALLOC? 2.2 How Does DBCC CHECKALLOC Work? 3. ...
-
Introduction Optimizing performance is critical in the changing world of database administration to ensure smooth operations and effective d...
-
The SQL Server replication feature enhances availability, scalability, and reliability by facilitating data distribution and synchronization...
-
Outline of the Article: 1. Introduction : a. Definition of Spatial Index b. Importance of Spatial Index in spatial data management 2. Advant...