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

Ain’t Nothing Like Saying STUFF this & Moving On

Previously, we talked about the REPLACE and TRANSLATE functions and how similar, but not quite the same they are. Today, I want to talk about yet another function that does something similar but not quite the same. Today, I want to discuss the STUFF function and how it can add or even replace parts of…… Continue reading Ain’t Nothing Like Saying STUFF this & Moving On

Doing Something with the REPLACE function

Most of us have used the REPLACE function several times in our daily lives. This function, as you may remember, takes one string and replaces it with another, as seen below: Please don’t do this change in Production There is another function within SQL Server that many people think does the same thing, but with…… Continue reading Doing Something with the REPLACE function