Tag Archives: database

Passing Database and Table names as Variables in SQL Server

I often want to apply the same SQL to one or more tables in one or more databases. ┬áThis requires passing the ┬ádatabase and table as a variable (or copying and pasting the code multiple times). Below are three ways … Continue reading

Posted in Programming | Tagged , , , | 2 Comments