![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm using SQL Server 2005 express and the adventureworks sample database to try and refresh my memory with SQL Server (It's been about 5 years since I last used it a lot). Can anyone help with a basic question...? I've written two queries now - one works - one doesn't and I'm not sure why. The syntax in both is identical (select * from HumanResources.Shift) but one gives me an "invalid syntax near ." but the other works fine. The only difference in how I've written them is the one that worked I wrote by right clkicking on the adventureworks icon on the object explorer. The other one I just did "File, New, Query with Current Connection". Must be something fundamental I'm doing wrong. |
#3
| |||
| |||
|
|
Copy and paste both queries in a reply to this post. |
#4
| |||
| |||
|
|
"Erland Sommarskog" <esquel (AT) sommarskog (DOT) se> wrote in message news:Xns9DA38092825DEYazorman (AT) 127 (DOT) 0.0.1... Copy and paste both queries in a reply to this post. select * from HumanResources.Shift |
#5
| |||
| |||
|
|
lk (gofyself (AT) wrong (DOT) address.com) writes: "Erland Sommarskog" <esquel (AT) sommarskog (DOT) se> wrote in message news:Xns9DA38092825DEYazorman (AT) 127 (DOT) 0.0.1... Copy and paste both queries in a reply to this post. select * from HumanResources.Shift So this was the query that compiled. At least in runs on my machine. I think the query with the syntax error is more interesting. Verify that it gives any error before you post. No - you misunderstand. |
#6
| |||
| |||
|
|
Therefore I had already verified that it gave me an error (invalid object) before I posted. |
![]() |
| Thread Tools | |
| Display Modes | |
| |