-
Granting SELECT Permissions on a View
25 May 2023Introduction In SQL Server, views provide a convenient way to encapsulate complex queries and present a simplified and abstracted representation of data to users. However, there may be situations where…
-
Compatibility Level of the Master DB Remains Same After Upgrades
23 May 2023Scenario During an upgrade from SQL Server 2008 R2 to SQL Server 2016 SP2, we have noticed that all system databases, except for the master database, are automatically assigned the…
-
Monitoring SQL Server Jobs & its Schedules
22 May 2023Introduction SQL Server jobs are essential for automating tasks and maintaining the stability and efficiency of a SQL Server system. These jobs can be scheduled to run at specific times…
-
TSQL to find list of all index not used for last 30 days
16 May 2023This code is designed to provide information about the indexes in the database, including their creation dates, last usage dates, and whether they have been used recently. TSQL — Create…
-
Use ProcDump to capture sql server unexpected crash dump
11 May 2023To use ProcDump to capture a SQL Server unexpected crash dump, follow these steps: Download and extract ProcDump: Navigate to the directory where ProcDump is located: Capture the SQL Server…
-
SQL Server (MSSQLSERVER) service terminated unexpectedly
One day, we suddenly discovered that the SQL Server was not running and was in a stopped state. In a rush, we quickly enabled the SQL Server and Agent services…
-
TSQL to find index fragmentation in SQL Server
10 May 2023To determine index fragmentation in SQL Server, you can use the following steps: SELECT OBJECT_NAME(DMV.object_id) AS TABLE_NAME , SI.NAME AS INDEX_NAME , avg_fragmentation_in_percent AS FRAGMENT_PERCENT , DMV.record_count FROM sys.dm_db_index_physical_stats(DB_ID(), NULL,…
-
SQL Server DBA Daily Routine Tasks
8 May 2023As a SQL DBA, there are various essential tasks to perform every day to ensure the smooth operation and security of the database system. These responsibilities include:
-
All About DBCC and DMV Interview QuestionÂ
What is the use of DBCC commands? DBCC stands for Database Console Commands, a few of us also call it database consistency checker. There are many DBCC commands in SQL Server. We…
-
List all Login, User & DB Role in SQL Server
11 April 2023Description This script generates a list of Logins, Users and the Database Roles that the user belongs to in all the databases in A SQL Server; with a couple of…
Last comments from OTI
Thanks for your valuable feedback. We will try to add the same.
Thanks !!
Thanks, keep visiting and sharing !!
sure
ok