INFO: Table Alias Syntax Checking in SQL 6.0 and Later is ANSI-Compliant (139528)
The information in this article applies to:
- Microsoft SQL Server 6.0
- Microsoft SQL Server 6.5
- Microsoft SQL Server 7.0
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q139528 SUMMARY
When working with a table alias (a "correlation name" in ANSI terminology,)
the syntax checking in Microsoft SQL Server version 6.0 and later has changed to comply with the ANSI specification. ANSI states,
A <table name> ... is exposed ... if and only if the <table reference>
does not specify a <correlation name>.
In previous versions of Microsoft SQL Server, you could qualify columns of
a table by using either the table name or a table alias. In SQL Server version 6.0 and later, if an alias has been provided for a table name in the FROM clause, you can only use the alias to qualify columns from the table; the table name cannot be used elsewhere in the statement because they are flagged as syntax errors.
Modification Type: | Minor | Last Reviewed: | 3/14/2005 |
---|
Keywords: | kbinfo kbusage KB139528 |
---|
|