BREAK Statement: You may want to terminate while loop by using the BREAK statement. You can use it as follows. [crayon-6745cf367f0cc298368638/] Continue Statement: Usually …
Read More »MSSQL
IF…ELSE Statement in SQL Server(TSQL)
If the condition in the IF block is provided, operations between the BEGIN and END blocks are performed. If the condition in the IF block …
Read More »IF Statement in SQL Server(TSQL)
If the condition in the “IF” block is provided, we perform operations between the “BEGIN” and “END” blocks. You can use it as follows. …
Read More »String or binary data would be truncated
When we want to add data to a table, we get this error if the size of the column in the table is smaller …
Read More »How To Hide Database Names From Unauthorized Logins in SQL Server Management Studio
If you are using a consolidated SQL Server environment, there is more than one database and login on an instance. When the logins connect to …
Read More »Must declare the scalar variable “@variable”
If there is a variable in the script we run and we have not declared this variable, we will get this error. For example, …
Read More »How To Find and Change Owner of All Databases in an Instance in SQL SERVER
Sometimes, we can receive the below error. SSPI handshake failed with error code 0x8009030c, state 14 while establishing a connection with integrated security; the …
Read More »How To Solve Errors in DPM Backup(Failed Backups in DPM)
DPM (Data Protection Manager) is Microsoft’s software for backup. Before reading this article, I recommend you to read other articles related to DPM on …
Read More »UNION and UNION ALL Operators in SQL Server(TSQL)
With UNION and UNION ALL Opertors, we can merge multiple sql statement’s result in a single result set. When we merge two SQL statements …
Read More »Testing SQL Server Database Connection
Sometimes the application owners can come to you because the application cannot connect to the database. In this case, a DBA must first test …
Read More »