INFO: Object Names Cannot be Variables in TRANSACT-SQL (65466)
The information in this article applies to:
- Microsoft SQL Server 4.2x
This article was previously published under Q65466 SUMMARY
Because object resolution occurs at compile time, TRANSACT-SQL
variables (@variable) cannot be used in place of object names.
For example, TRANSACT-SQL does not allow variable database names.
Modification Type: | Minor | Last Reviewed: | 2/14/2005 |
---|
Keywords: | kbinfo kbProgramming KB65466 |
---|
|