473,419 Members | 2,049 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,419 software developers and data experts.

Copy/duplicate Database problem - help me.....

Hello!

Good day!

I have a problem regarding to my MSSQL db. I have a database name named db1 with huge structure of tables and has a series of data also.

I would like to copy the db1 to the newly created db. with the db1 tables structure and data. In other words, i just want to duplicate it. May i know whats the right code for this? By, the i'm using microsoft SQL server 2005 and mssql server studio. Is there any short cut to duplicate a db to another db with the same server?

I'm just a returnee of being a programmer. I just stand by for more than a year. That's why i need help because im working back now of being a programmer.

Any help would be appreciated.

thanks in advance...
May 11 '10 #1
1 1334
deepuv04
227 Expert 100+
@lion cave
to create another copy of the database,
first take the backup of existing database,
create a new database
restore the new database with the backup taken
May 11 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Rob Wahmann | last post by:
Is there a way to copy/duplicate and rename a database on the same server? I need to make a copy for another application. I appreciate any tips or advice you can provide! TIA - Rob
1
by: Dave | last post by:
Hi folks I know just enough about MS-SQL to be dangerous, so feel free to warn me off this it's too much for a non-expert. We are using SQL 2000 as the back-end for website. We would like to...
2
by: Blue Porcupine | last post by:
Hi, I need to copy a database for example I have ABC I want to create ABC_Test How to do that? regards,
2
by: Fabius | last post by:
Hello all. I need transfer a db2 database ( tables, records ecc. ) from a server1 to server2. The operating system of server1 and server2 is win2000 server. I have installed db2 to server2. Now...
3
by: Sandli Bygg AS, Kent Olsson | last post by:
Hi! How can I copy a Access-database and relations, but without data? Best regards Kent Olsson
3
by: deko | last post by:
I'm using Access 2003 on WinXP-SP2. I open mydb.mdb from Windows Explorer, or from a shortcut that points to the mdb. The problem is every time I open mydb.mdb, a duplicate is created -...
0
by: serge | last post by:
I have 2 SQL Enterprise Editions running SP2 and same collation. When i try to start database mirroring I get the following error message: "The remote copy of database "ABC" has not been...
5
by: Steve | last post by:
Hi; I thought I would rephrase a question I asked in another post to more quickly get to the heart of the matter. My apologies for anyone who is offended by what appears to be a repetition. ...
2
by: miroku800 | last post by:
A little history I designed a program in VB6 which used an access database with the aid of a then workmate (who has now moved on and lost interest) which was in two parts. A master program and a...
9
by: dpatel75 | last post by:
I am trying to copy a database from a SQL 2000 SP3 Windows 2000 server to a 2005 SP2 Windows 2003 server. I am trying to use detach and attach method (have tried both within Management Studio and...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.