Gone are the days of traditional file-based systems. With the advent of new technologies, particularly, in the database and database-related avenues, the demand for professionals adept with… Read More
Question: How can I find tables in a SQL Server database that have a Primary Key ?
Answer: To identify if a table has a Primary Key - you can use the OBJECTPROPERTY method with the pro… Read More
This article focus on suspect SQL database, a problem encountered sometimes by Database Administrators - DBAs. It is uncommon, but high chance of appearing suddenly. Database administrators… Read More
According to expert Koen Verbeeck, comprehending whatever you need from SQL Server is perhaps the most important step in successful usage in commercial applications.
Successful deploymen… Read More
We have a database here that stores information about Azure SQLDB health issues; it was chugging along fine for months, then earlier this week it started to struggle. You can see the large i… Read More
SQL - Structured Query language is used to communicate with DataBase , it is the standard language for relational database management systems.As part of this course you will learn below topi… Read More
This script will list all indexes and their types (clustered/nonclustered).
SELECT so.name AS TableName
, si.name AS IndexName
, si.type_desc AS IndexType
FROM… Read More
When you need to check the health or status of all INDEXs and need to REBUILD the required INDEXs depends on the Fragmentation level (%), you can get help from below SQL queries.In my exampl… Read More
SAP released the report MSS_CS_CREATE a few months ago. Using this report, customers can create an additional Nonclustered Columnstore Index (NCCI) on any SAP ERP table. This has already bee… Read More
In the last post, I have discussed 10 ways to prevent SQL database corruption and now, I am going to discuss query optimization in SQL Server database.Microsoft SQL Server performs most of t… Read More
SQL Server, DBA interview questionsQuestions are categorized under the following sections, for your convenience:Database design (8 questions)SQL Server architecture (12 questions)Database ad… Read More
Often while working with T-SQL we create copies of tables as a backup of the original/base table so that we can make changes to the data in the original/base table for testing purposes, and… Read More
1. What’s the difference between a primary key and a unique key?Both primary key and unique enforce uniqueness of the column on which they are defined. But by default primary key creat… Read More