473,395 Members | 1,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Copy Database on same machine

How would I copy an entire database to another (using a different
name, of course) on the same server? I am new with working with
databases, so any help would be appreciated. Thanks.
Jul 20 '05 #1
3 30113

"Andy Visniewski" <an**@pepperell.net> wrote in message
news:f6**************************@posting.google.c om...
How would I copy an entire database to another (using a different
name, of course) on the same server? I am new with working with
databases, so any help would be appreciated. Thanks.

Jul 20 '05 #2
Hi

You could backup/restore or detach/attach

http://support.microsoft.com/default...-us;Q314546#10

With the backup/restore you will have to move the data files (WITH MOVE),
with detach/attach they will have to be copied at OS level.

As they are on the same machine you don't need to worry about
logins/orphaned users.

John

"Andy Visniewski" <an**@pepperell.net> wrote in message
news:f6**************************@posting.google.c om...
How would I copy an entire database to another (using a different
name, of course) on the same server? I am new with working with
databases, so any help would be appreciated. Thanks.

Jul 20 '05 #3
On 2 Sep 2003 11:46:11 -0700 in comp.databases.ms-sqlserver,
an**@pepperell.net (Andy Visniewski) wrote:
How would I copy an entire database to another (using a different
name, of course) on the same server? I am new with working with
databases, so any help would be appreciated. Thanks.


DTS (Enterprise Manager, highlight database, right click, all tasks,
export) Create a new one when prompted on target, use same server.
When you get to a page in the wizard with 3 radio buttons, choose the
bottom one, copy SQL Server objects.

or Again, in the same place, right click, all tasks, backup, backup to
a file. Now in the same place again, choose Restore from the all tasks
menu, the default is to show backups of the currently highlighted
database, which is what you want, at the top of this dialog, type in a
different name for "restore as database...".

--
A)bort, R)etry, I)nfluence with large hammer.

(replace sithlord with trevor for email)
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Kevin | last post by:
Can anyone recommend the easiest way to get a full copy of a database from one server to another. The servers are not part of the same organization or network. I have received a backup of the...
20
by: xixi | last post by:
hi, we use db2 udb v8.1 on windows, i am trying to use federated database objects to create wrapper, even though i have update dbm cfg using federated yes, i still get error "the instance for the...
4
by: ShyGuy | last post by:
I have a routine that creates a new database and then copies a couple of tables to the new database as backups. It works fine but I want to split the database and run this routine from a machine...
1
by: POnfri | last post by:
Hi, I have a problem in a peace of code were i'm doing a file copy using File.Copy. The Source is local and the target is a remote machine. Example: File.Copy(C:\temp\hi.txt,...
7
by: ShyGuy | last post by:
Is ther a way to copy a table, from the backend of a split database, into a database on another machine from the front end?
25
by: Andy_Khosravi | last post by:
I just recently changed my database that I'm running from a monolithic DB to a split FE/BE. The front end resides on the client machine and the BE resides on a network drive. I'm experimenting with...
2
by: Bhavesh | last post by:
Hi everybody, I have problem in copying file from DatabaseServer to WebServer.Both machines are on LAN. Let me explain in details what i am doing & wht i want to achieve... I am using...
1
by: ll | last post by:
Hi, I have copied a MS SQL database to my local machine and am testing it with ASP pages, locally, on IIS. I have a db connect page that keeps the current connections for the live database. My...
5
by: =?Utf-8?B?QWRyaWFuTW9ycmlz?= | last post by:
Hello! I'm trying to copy a file from another computer on the network that I do not have permission with my current logon details to access. If I open the folder using the Windows file manager...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.