BUG: Msg 170 While Creating View with * and an ExpressionID: Q164169
|
A CREATE VIEW statement fails with the following error message:
Msg 170, Level 15, State 1
Line%d: Incorrect syntax near ','.
To work around this problem, do either of the following
create view testview as
select authors.*, today_date = getdate() from authors
-or-
create view testview as
select au_id, au_lname, au_fname, phone, address, city, state, zip,
contract, today_date = getdate() from authors
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.
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