Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Msg 156, Level 15, State 1, Line 5

Author  Topic 

tosmith1
Starting Member

1 Post

Posted - 2011-02-03 : 13:07:49
I am a NOOB and keep getting incorrect syntax error near the word FROM in the following:
use Hospital
go

select fname,
lname,
zip,
from Patient
order by zip

I do NOT want someone else to do it for me, I need some help with error messages in SQL2005.
It there a directory of error messages somewhere?

Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-02-03 : 13:14:36
The error means that you simply have a coding error, and it won't compile. No directory of error messages is going to help you with this one as it's just a syntax error. You've got one character too many in that query. Let us know if you want us to point it out to you.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -