dbTalk Databases Forums  

References to deleted objects

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss References to deleted objects in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tim Vernon
 
Posts: n/a

Default References to deleted objects - 04-21-2004 , 07:10 AM






Hi all

I have a problem with an SQL Server db, which is proving quite tricky to
solve.

I deleted a table dbo.Addresses and created a new one dbo.AddressesV2. I
changed all the relationships with other tables to reflect this change, and
the db runs without a problem.

The problem rears its head when I want to copy the database with DTS to
another SQL Server. I get a "Import failed" report at the end of the job:

"Invalid object name: dbo.address"

So somewhere in the database, there is a reference to the old table. I've
looked through all the Sprocs and Views but can't see it.

Could anyone suggest a way of identifying where the reference is, so that I
can amend the necessary part of the db?

Thanks in advance

Richard



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: References to deleted objects - 04-21-2004 , 07:18 AM






How about scriptng the whole DB and then load the script into your favourite
text editor?

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Tim Vernon" <richard (AT) mediahq (DOT) co.uk> wrote

Quote:
Hi all

I have a problem with an SQL Server db, which is proving quite tricky to
solve.

I deleted a table dbo.Addresses and created a new one dbo.AddressesV2. I
changed all the relationships with other tables to reflect this change,
and
the db runs without a problem.

The problem rears its head when I want to copy the database with DTS to
another SQL Server. I get a "Import failed" report at the end of the job:

"Invalid object name: dbo.address"

So somewhere in the database, there is a reference to the old table. I've
looked through all the Sprocs and Views but can't see it.

Could anyone suggest a way of identifying where the reference is, so that
I
can amend the necessary part of the db?

Thanks in advance

Richard





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.