>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