The last time we were together, I discussed DCL and TCL. That post ended with a quick paragraph on transactions and how they can help with data integrity. Today, I want to go more in-depth on this very important topic. Transactions always – and I do mean always – start with the phrase BEGIN TRAN.…… Continue reading Setting up a Friendly TRANSACTION
Month: April 2022
Accessing and Transacting Languages in SQL Server
Over the last few posts, we’ve discussed DDL and DML. This week I want to actually discuss the other 2 types of languages with SQL Server – DCL and TCL. DCL is the Data Control language. These are the commands that give security permission to a person – or group – to get things done.…… Continue reading Accessing and Transacting Languages in SQL Server
How to Define objects
In my last post, I discussed some of the DML commands in SQL Server. This week I want to discuss another category of commands – Data Definition Language, or DDL. DDL is used to define or redefine the structure of the database. The commands that are used for DDL are as follows: CREATEDROP ALTERRENAMETRUNCATE So…… Continue reading How to Define objects
Unique Categories of Commands within SQL
For a while now, I’ve been talking about specific functions used within SQL Server. For example, I’ve talked about DATALENGTH, REPLICATE, and STUFF, along with many others. And all that is great and should be known if you work with SQL Server on a regular basis. But today, I want to talk about the different…… Continue reading Unique Categories of Commands within SQL