Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Invalid object name

Author  Topic 

flukebuzzsaw
Starting Member

13 Posts

Posted - 2005-05-06 : 20:01:21
I had copied my db data from a production box to a dev box. By doing this I could update and delete but not insert to the data. I then set all the tables primary keys and set those keys as identity seeds with an increment of one. Now nothing displays and query analyser registers the below error when trying to run a select statement

Server: Msg 208, Level 16, State 1, Line 1
Invalid object name 'tn_results'.

Hints

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2005-05-07 : 00:18:07
quote:

Now nothing displays



Nothing displays where???

quote:

Server: Msg 208, Level 16, State 1, Line 1
Invalid object name 'tn_results'.


And when you run: SELECT * FROM sysobjects WHERE name = 'tn_results'

does it show anything???

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-05-07 : 01:22:16
Make sure you are at the correct database. Otherwise, use
Select * from yourdbname..tn_results.


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2005-05-07 : 09:46:54
if Derrick's: >>And when you run: SELECT * FROM sysobjects WHERE name = 'tn_results' <<
shows your table, check who the owner is.

(sp_help on the table will show owner name)

select * from <db>.<owner>.tn_results

if you want to change the owner back to dbo, use sp_changeobjectowner.

Be One with the Optimizer
TG
Go to Top of Page
   

- Advertisement -