Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Table does not exist" after moving database to another server 1

Status
Not open for further replies.

cceng

IS-IT--Management
Joined
Aug 27, 2001
Messages
104
Location
US
I just finished moving 4 databases to another server. We have an application that does some manipulation of the data in these databases. When we run this application it comes back with an error "Tabel does not exist.....invalid object name DBA.UDEF"

I am guessing this has to do with the links when this database was moved. Any suggestions on how to fix this.

I am about as much of a newbie as you can be to SQL. :)

Thanks!
 

Actually, the output shows that the default database for the login is master. If the datbase context is not changed, the login will not be able to find the table. That is why I asked about the default database. Use the following script to change the default database of the login. Then see if the application will work.

EXEC sp_defaultdb 'dba', 'tman'

Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
WOW.....


That did it. Like I have said before this is the best forum I have used. You guys are great!

Thanks for helping a newbie like me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top