Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Copy SQL Server Objects Fails for certain views
We have been using the 'Copy SQL Server Objects' with success for some time
to copy an entire database to another server. Recent changes to our database
infrastructure cause DTS to fail:
1) We have a check constraint which uses a user function (which refers to
the table on the check constraint
2) We have a view which refers to another view

DTS fails on both. DTS fails on the check constraint and stops. if I remove
the check constraint it will fail on the view. See errors below.

Any hints how to solve this would be appreciated.

Jonathan Orgel

Errors:
[Microsoft][ODBC SQL Server Driver][SQL Server] Invalid object n
ame
'dbo. SRS_NumberRWSubjects
'

[Microsoft][ODBC SQL Server Driver][SQL Server] Invalid object n
ame
'VMSGRECIPIENTS2'




Report this thread to moderator Post Follow-up to this message
Old Post
Jonathan Orgel
12-29-05 04:23 PM


Re: Copy SQL Server Objects Fails for certain views
Redefine the package.  Copy objects just uses an alphabetical order.  If you
define this to explicitly define which objects are moving, you can specify
the order which will move the dependent objects first.

--
Mike
Mentor
Solid Quality Learning
http://www. solidqualitylearning
.com


"Jonathan Orgel" <Jonathan@srssoft.com> wrote in message
news:ee1MIoJDGHA.3920@tk2msftngp13.phx.gbl...
> We have been using the 'Copy SQL Server Objects' with success for some
> time to copy an entire database to another server. Recent changes to our
> database infrastructure cause DTS to fail:
> 1) We have a check constraint which uses a user function (which refers to
> the table on the check constraint
> 2) We have a view which refers to another view
>
> DTS fails on both. DTS fails on the check constraint and stops. if I
> remove the check constraint it will fail on the view. See errors below.
>
> Any hints how to solve this would be appreciated.
>
> Jonathan Orgel
>
> Errors:
> [Microsoft][ODBC SQL Server Driver][SQL Server] Invalid object
 name
> 'dbo. SRS_NumberRWSubjects
'
>
> [Microsoft][ODBC SQL Server Driver][SQL Server] Invalid object
 name
> 'VMSGRECIPIENTS2'
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Michael Hotek
12-30-05 01:23 AM


Re: Copy SQL Server Objects Fails for certain views
> Redefine the package.  Copy objects just uses an alphabetical order.  If
> you define this to explicitly define which objects are moving,

Easier said than done. Our database is a constantly evolving conglomeration
of hundreds of objects. We don't relish having to constantly evolve the DTS
package as well. That's why we are using the more generic transfer
methodology to transfer the entire database, rather than identifying each
object specifically.

Also, it does not seem that objects are copied in alphabetic order, it seems
to have more to do with creation / last modification date. By making an
innocuous change to the object we are now able to complete the transfer. We
did not rename the object, yet we managed to change its transfer sequence.

Nice going Jonathan! :-)

- Joe Geretz -

"Michael Hotek" < mike@solidqualitylea
rning.com> wrote in message
news:OJOVDuNDGHA.3876@tk2msftngp13.phx.gbl...
> Redefine the package.  Copy objects just uses an alphabetical order.  If
> you define this to explicitly define which objects are moving, you can
> specify the order which will move the dependent objects first.
>
> --
> Mike
> Mentor
> Solid Quality Learning
> http://www. solidqualitylearning
.com
>
>
> "Jonathan Orgel" <Jonathan@srssoft.com> wrote in message
> news:ee1MIoJDGHA.3920@tk2msftngp13.phx.gbl... 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Joseph Geretz
12-30-05 02:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 04:19 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006