"Ambiguous column name" error on one particular server
Posted
by jazbit
on Stack Overflow
See other posts from Stack Overflow
or by jazbit
Published on 2010-05-07T12:02:46Z
Indexed on
2010/05/07
12:08 UTC
Read the original article
Hit count: 132
sql-server
|sql
This simple query throws the "Ambiguous column name TaskID" error on one db-server only. This is ridiculous. We tested this with the same database structure on different servers and different versions of ms sql (2005/2008), and it's only THIS particular client's server that throws the error. I'm actually frustrated.
SELECT Tasks.TaskID
FROM Tasks
INNER JOIN TaskHelpers ON TaskHelpers.TaskID = Tasks.TaskID
order by TaskID
Yes, I know I can put "Tasks.TaskID" into the order by clause, but for some reasons I can't.
© Stack Overflow or respective owner