Browsing Category
Database Administration
How to Add logfile to suspect database when full log size?
Adds a log file to a file group when recovery cannot complete on a database due to insufficient log space (error 9002). After the file is added, sp_add_log_file_recover_suspect_db turns off the suspect setting and completes the recovery of…
How to Adds a data file to a filegroup when recovery cannot complete on a database
Adds a data file to a filegroup when recovery cannot complete on a database due to insufficient space on the file group (error 1105). After the file is added, this stored procedure turns off the suspect setting and completes the recovery of…
SQLSERVER 2017 CU3 and later: Query Store notice
Query Store notice
If you use the Query Store feature, and you have previously installed Cumulative Update 2 (CU2) (14.0.3008.27), the following requirement applies to you:
After you install Cumulative Update 3 (CU3) (14.0.3015.40) or a…
Resource Governor
SQL Server Resource Governor is a feature than you can use to manage SQL Server workload and system resource consumption. Resource Governor enables you to specify limits on the amount of CPU, physical IO, and memory that incoming…
Features are restricted to specific editions of SQL Server
sys.dm_db_persisted_sku_features :
dynamic management view to list edition-specific features that are enabled in the current database.
If no features that may be restricted by a specific edition are used by the database, the view…
Space usage information for the transaction log
sys.dm_db_log_space_usage Returns space usage information for the transaction log.
Column name
Data type
Description
database_id
smallint
Database ID.
total_log_size_in_bytes
bigint
The size of the log…
Accessing Oracle database via Linked Server through 64bit SQL Server
Installing Oracle 11g 32bit & 64bit clients would be a resolution of the famous 64bit OraOLEDB issue.
Accessing an Oracle DB over a 64 bit system was a pain for many SQL Server DBAs. The purpose of this document is to explain how to…
Execute The Distributed Transaction in SQL SERVER
Implementing a distributed transaction across multiple instances of databases is one of the most commonly used items which are less known by developers and DBAs.
Here we intend to outline a method for executing distributed transactions…
How to Monitor TempDB usage
Running out of disk space in TempDB can cause significant disruptions in the SQL Server production environment and can prevent applications that are running from completing operations. You can use the sys.dm_db_file_space_usage dynamic…