Skip to main content
March 26, 2008
Question

Problem after upgrading ms sql db

  • March 26, 2008
  • 1 reply
  • 444 views
I have a coldfusion 7mx website that is attached to a ms SQL 2000 DB and all works fine, I copied the DB to sql 2005 and now in order to use the same queries I have to add the schema name to the query (was) database.tablename or just tablename and (now) it needs to be database.schema.tablename. I really do not want to find update a few hundred queries what is the best way to fix this?
thanks
-d
This topic has been closed for replies.

1 reply

Participating Frequently
March 26, 2008
I think you can solve your problem by changing your 2005 database compatibility level as backward compatible.

Here is a nice blog entry:

http://blog.sqlauthority.com/2007/05/29/sql-server-2005-change-database-compatible-level-backward-compatibility/

March 26, 2008
I tried that (db comp to 80) but to no avail.
still not working.

-d
Inspiring
March 26, 2008
dseoane wrote:
the query (was) database.tablename

I was not aware that syntax should ever work. If you omit the "owner" you must use two periods ".." to indicate that the current context should be used.
http://msdn2.microsoft.com/en-us/library/aa224051.aspx