BUG: SQL Server Enterprise Manager Design View May Change the T-SQL Syntax of a View (288527)
The information in this article applies to:
- Microsoft SQL Server 7.0
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q288527
BUG #: 101230 (SQLBUG_70)
BUG #: 352015 (SHILOH)
SYMPTOMS
When creating a view from the SQL Server Enterprise Manager (SEM) Design View tool, the T-SQL syntax appears normal. However, if the view is saved, Design View is closed, and then Design View is reopened to examine the view, the syntax may change.
This problem occurs in both SQL Server 2000 and SQL Server 7.0, although the alterations to the T-SQL are slightly different between the two versions. This behavior is present in only a very few and unique set of circumstances. See the "More Information" section for further details.
When you right-click the view and then select Properties, the view's syntax appears normal; it can be run in Query Analyzer (QA) and will return the correct results every time. However, the altered syntax from Design View does not return the correct results.
CAUSE
This behavior has nothing to do with outer joins as such; rather it is due to autoaliasing when it should not be happening in these particular situations. The consequence is that an unbound column is created, which gets rebound to the wrong table.
WORKAROUND
After a view is created with Design View, avoid editing and then resaving the view with the Design View tool in SQL Enterprise Manager. Use Query Analyzer and T-SQL coding instead.
STATUS
Microsoft has confirmed this to be a problem in SQL Server 7.0.
Microsoft has confirmed this to be a problem in SQL Server 2000.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | kbbug kbpending KB288527 |
---|
|