all groups > sql server programming > august 2003 >
You're in the

sql server programming

group:

Unexpected SQL syntax error!


Re: Unexpected SQL syntax error! raydan
8/22/2003 8:40:57 AM
sql server programming:
I don't know why but that's the way it works.

Let's call it standard Microsoft SQL behavior.

[quoted text, click to view]

Unexpected SQL syntax error! Edward Yang
8/22/2003 8:17:27 PM
I found that if you do not include any effective SQL statement (excluding
comment), SQL Server 2000 Query Analyzer will think it is an error:

Server: Msg 156, Level 15, State 1, Line 6
Incorrect syntax near the keyword 'end'.

if 1=1
select getdate()
else
begin
--select 'ok'
end

Is this behavior a SQL standard?

Unexpected SQL syntax error! Edward Yang
8/31/2003 7:57:19 PM
Oops! It seems there is no SQL guru to answer my simple
Re: Unexpected SQL syntax error! Jens Süßmeyer
9/1/2003 8:08:00 AM
No post, no answer..

WHen did you post your question ?

Jens SÜßmeyer.


"Edward Yang" <neo_in_matrix@msn.com> schrieb im Newsbeitrag
news:046e01c37034$c1f84730$a101280a@phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button