We use WHERE clause to filter when reading, updating, and deleting data from a table. If we run select, Update, or delete statements without …
Read More »MSSQL
Ambiguous column name Error and SQL Server Alias(TSQL)
When reading data from tables, we may need to give different names to tables and columns. We can do this by defining alias to …
Read More »Merge Statement in SQL Server(TSQL)
With the Merge Statement, we can run INSERT, UPDATE, and DELETE commands at one time to synchronize two tables of the same structure. First, …
Read More »The EXECUTE permission was denied on the object ‘sp_sqlagent_update_agent_xps’, database ‘msdb’, schema ‘dbo’.
ERROR: [298] SQLServer Error: 229, The EXECUTE permission was denied on the object ‘sp_sqlagent_update_agent_xps’, database ‘msdb’, schema ‘dbo’. [SQLSTATE 42000] (DisableAgentXPs) EXPLANATION: You may experience …
Read More »How To Create Full Backup Using SQL Server Maintenance Plan
We perform maintenance operations in SQL Server using Maintenance Plan. In this article we will create a maintenance plan for full backup. I will share …
Read More »Truncate Table Statement in SQL Server and Difference Between Delete and Truncate Table(TSQL)
If we want to delete all records in the Table, we can do this with the Truncate Table command. You can use the truncate …
Read More »SQL Server 2016: Dynamic Data Masking
I tested the Dynamic Data Masking feature in my SQL Server 2016 test environment, and I want to share the result with you. I …
Read More »Rebuilding Indexes Using SQL Server Maintenance Plan
We perform maintenance operations on SQL Server using Maintenance Plan. In this article I will describe the process of rebuilding indexes. I will share links …
Read More »How To Drop a Table in SQL Server
To create a table in SQL Server, you can read the article “How to Create a Table in SQL Server“. In this article, we …
Read More »How To Drop a Database in SQL Server
In this article, we will talk about two methods to drop a database. First Method (With SSMS): When you connect to SQL Server Instance …
Read More »