News

SQL, too, maintains this distinction and does not confuse data as if it were commands. Most programs that work with databases, however, are not written in SQL directly.
Making Your T-SQL Work Smarter: sp_MSforeachdb. Last time, we showed how to take advantage of a built-in stored to run a command against multiple tables.