SQL: Storing the names of objects in SQL Server tables and variables

added by DotNetKicks
6/20/2019 1:39:11 PM

1 Kicks, 153 Views

When I'm writing SQL Server scripts, I often need to store the name of SQL Server objects (like databases, schemas, tables, procedures, etc.) in variables. That can also happen when I'm creating tables. I might need to store a SQL Server object name (like a login name or a user name) in a column of ...