Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1328
  • Last Modified:

SQL Server 2005 Copy Database Wizard Error

I am new to SQL Server 2005 and I'm stuck.  I'm trying to use the Copy Database Wizard to move a database off of my local machine but after going through all of the steps it bombs out and returns the following error:

"While trying to find a folder on SQL an OLE DB error was encountered with error code 0x80004005 (Login timeout expired).
 (Copy Database Wizard)

------------------------------
ADDITIONAL INFORMATION:

While trying to find a folder on SQL an OLE DB error was encountered with error code 0x80004005 (Login timeout expired)."

I can't find anything on this error anywhere, any thoughts?

Thanks,

N
0
stretch73
Asked:
stretch73
  • 6
  • 2
1 Solution
 
Atlanta_MikeCommented:
First thing...

Instead of using the copy database wizard. Why don't you just backup and restore to another database server.?

0
 
stretch73Author Commented:
I guess that will have to work, someone else at the office suggested it but the copy thing seemed pretty simple.

What is the procedure for that?
0
 
stretch73Author Commented:
Actually, I would really like to figure out how to do it with the copy function.  Someone is going to be inheriting this application soon and I would like to make it as simple as possible.
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
ptjcbCommented:
I understand what you want, but backup, copy to the other server, restore is easier for a database administrator.  

The copy database works, in theory, but the errors are OLE DB errors (programming ones) rather than internal to SQL. Backup and restore have been around for many versions of sql and we know what to do with errors. With the new features there is a learning curve. I have found that some of learning any new language or new extensions of the language will be wrestling with the error codes. Most are cryptic at best. Copy Database has only been around since 2000 (I don't remember it in 7, but I could be wrong). It looks as if they have enhanced it with Visual Studio.

If the newbie is a programmer with knowledge of VS .NET then they may be more comfortable with copy database.
0
 
stretch73Author Commented:
I follow, I'll just do the backup and restore.  Can you walk me through the steps on that?
0
 
stretch73Author Commented:
I've played around with it a little but I need to restore it to a different server, it keeps just re-creating the database within the same server registration.
0
 
ptjcbCommented:
In Enterprise Manager select the server and then using the Tools menu choose Backup Database. This will open the Backup window.  Select the database from the database drop down box. Type the name for the backup (it can be descriptive). Click Add in the Destination section. Navigate to a file on the server. Then click on the Options tab and check Verify Backup upon completion.

To restore - you have to have exclusive access to the database. Select the server, Tools, Restore Database. Use the Restore drop-down to find the database to restore. If you are restoring over another db, then in the Options tab choose Force Restore Over Existing Database. You may have to change the location of the files in the Restore Database As: textbox.
0
 
stretch73Author Commented:
I'm with you as far as the backup, that's pretty straightforward.  The restore is where I'm having trouble.  This is going to a completely separate server so do I need to copy the backup file out there first?
0
 
stretch73Author Commented:
PTCJB, that worked.  Had a bunch of peripheral problems but the restore over option got it.

Thanks,

N
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 6
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now