BUG: Msg 170 While Creating View with * and an Expression

ID: Q164169


The information in this article applies to:

BUG #: 16594 (NT: 6.50)

SYMPTOMS

A CREATE VIEW statement fails with the following error message:

Msg 170, Level 15, State 1
Line%d: Incorrect syntax near ','.

This problem occurs if the select statement is something similar to either of the following:
where <expression> can be a column name, constant, function, or any combination of column names, constants, and functions connected by one or more operators, a CASE expression, or a subquery that returns one row.


WORKAROUND

To work around this problem, do either of the following


STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION

This problem is only occurs with the CREATE VIEW statement. The same select statement works fine inside a stored procedure, a trigger, or when run alone.


Keywords          : kbusage SSrvTran_SQL kbbug6.50 
Version           : 6.5
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: April 8, 1999