Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another SQL Server 2000 Query Conundrum
Message
 
 
To
01/08/2007 21:11:00
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01243142
Message ID:
01245348
Views:
31
>Any idea why this query would work fine on one server but return the error:
>
>Ambiguous column name 'vehi_id' on another? One server is SQLServer 2000 and the other is SQLServer 2005, but the query should work on both versions...
>
>Why in SQLServer2005 know which column I'm trying to retrieve but in SQLServer2000 it appears that it doesn't know which column I'm trying to retrieve. I'm know I'm joining on more than one table but I'm not sure how to do the same thing another way and achieve the same results for SQLServer2000.

Are you using the second variation? If yes, then instead of * you may want to specify alll the fields you want to select.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform