“Ambiguous column name” error on one particular server

前端 未结 6 684
隐瞒了意图╮
隐瞒了意图╮ 2020-12-18 03:18

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 structu

6条回答
  •  离开以前
    2020-12-18 03:48

    Wow. The problem was with the database compatibility mode. It was set to "80" (sql 2000). I've set it to 90 and the query works fine now.

    More info on compatibility levels can be found here: http://msdn.microsoft.com/en-US/library/ms178653(SQL.90).aspx

提交回复
热议问题