Hello Arnie,
I understand that you encounter lots of different errors when you try to
use copy database method to copy database to another server. this issue
occurs after you attached the database from a SQL 2k server to this 2005
server.
From the error descritption, it seems that you have resolved the issue by
droping/recreating all views and sp2. However, you'd like to know how this
issue occurs in the first place and how should to it be handled. If I'm
off-base, please let's know.
To know the issue better, plase provide us the following information:
1. Did you select "Use the detach and attach method" or "Use the SQL
managment Object method"?
2. You may send the appliation event log on to me at petery@microsoft.com
for reviewing.
3. If you create a new blank database, and some new tables/views on it,
does the issue occur with the new database?
4. We can use SQL Server Profiler to help determine what is happening. If
you can start a profiler trae on both the source and destination and then
start the Copy Database Wizard we can capture the commands that are running
and see where error is occurring. Please capture the following counters:
SQL Server 2005
Stored Procedures
SP:Completed
SP:Starting
SP:StmtCompleted
SP:StmtStarting
TSQL
SQL:BatchCompleted
SQL:BatchStarting
SQL:StmtCompleted
SQL:StmtStarting
Errors and Warnings
Attention
Eventlog
Exception
You will need to check the Show All Events check box on the Events
Selection tab to see these events
I suspect the original views/sp2 error is related to schema/permissions
issue. Since the database was detached from a SQL 2000 server, the objects
might be owned by some orphaned database users which do not exist on the
new server and it is not connectedd to the default schema on the new
server. Therefore, the object referenced may not match the actual name. You
may want to check if the dbo is mapped to a proper login on the database.
Also, a new database test may give use more clues to narrow down the issue.
Also, please make sure SQL Server agent on the destination is using a
domain user account since it is necessary to copy files from source on
shared folders.
If you have any update, please let's know. We look forward to your reply.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications
<
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
<
http://msdn.microsoft.com/subscriptions/support/default.aspx>. ==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.