If a specific condition occurs, you can use the GOTO statement to run the code in a given label. The use is as follows. [crayon-674128660a573905197147/]
Read More »dbtut
Break and Continue Statements in SQL Server(TSQL)
BREAK Statement: You may want to terminate while loop by using the BREAK statement. You can use it as follows. [crayon-674128660aa1b188711133/] Continue Statement: Usually …
Read More »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 Export Tables to csv in Oracle
It is possible to export the data in tables in the database in csv format depending on a specific condition. We can use the …
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 List RMAN Jobs
It is often time consuming job to gather detailed information about the backups of Oracle databases with RMAN. You need to collect information from …
Read More »