... Variables and Functions in T-SQL I understand that I can use parameters in my stored procedures, but how do I use variables and functions within T-SQL? Technique It is time to expand the coding ... initialize them before you can use them. Initialing Local Variables in T-SQL To initialize the variables, you will use the SET command, shown in these two lines of code: SET @Cust_Id = 'ANTON' ... setting the initial values, you are then ready to use the variables within the rest of your procedure, any way that you need them, again, by using the @varname syntax. Utilizing Built -In Functions...