The DECLARE section is for variables that will be used within the T-SQL process, including those that store database columns that are referenced in SELECT statements. It's probably too complex to describe in this setting. Have you looked at samples of code both here at tek-tips and on the internet?
==================================
advanced cognitive capabilities and other marketing buzzwords explained with sarcastic simplicity
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.