dbTalk Databases Forums  

trasnfer an entire database

microsoft.public.sqlserver.misc microsoft.public.sqlserver.misc


Discuss trasnfer an entire database in the microsoft.public.sqlserver.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dawe
 
Posts: n/a

Default trasnfer an entire database - 10-29-2003 , 03:46 PM






Hi folks!
I have a SQL sever installed in my laboratory and now I have to build a
database identical to a danish one (I write from Italy, the danish group
works on the same biological experiments and data) so I thought I can
tranfer the structure of that database into my SQL server (I dont' really
need to transfer data, just the schema). Is this possible? Even if we are
not in a LAN? How can I do it? Take care that I'm not a DBA (but I have to
become it...) and my experience with SQL server is quite little...

Davide

Reply With Quote
  #2  
Old   
Bob Simms
 
Posts: n/a

Default Re: trasnfer an entire database - 10-30-2003 , 04:23 PM






"dawe" <six_strings (AT) libero (DOT) it> wrote

Quote:
Hi folks!
I have a SQL sever installed in my laboratory and now I have to build a
database identical to a danish one (I write from Italy, the danish group
works on the same biological experiments and data) so I thought I can
tranfer the structure of that database into my SQL server (I dont' really
need to transfer data, just the schema). Is this possible? Even if we are
not in a LAN? How can I do it? Take care that I'm not a DBA (but I have to
become it...) and my experience with SQL server is quite little...

Davide
If it's just the schema you want, then in Enterprise Manager right-click the
database and script it to a file. Make sure that you select all the objects
you want to re-create, including the database itself.

In the script file will be all the SQL commands to re-create the schema on
any SQL Server you wish.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.532 / Virus Database: 326 - Release Date: 27/10/2003




Reply With Quote
  #3  
Old   
mountain man
 
Posts: n/a

Default Re: transfer an entire database - 10-30-2003 , 07:00 PM



You will need to obtain the create table statements
from the danish database. One way of doing this is:

1) run Enterprise manager and go to the database tables
2) select/highlight the tables you want to copy and right click
3) select create scripts. (writes a text file)
4) transport the scripts to your machine (small text file)
5) run the create table scripts on your machine using Query Analyser
making sure to target your new database.


"dawe" <six_strings (AT) libero (DOT) it> wrote

Quote:
Hi folks!
I have a SQL sever installed in my laboratory and now I have to build a
database identical to a danish one (I write from Italy, the danish group
works on the same biological experiments and data) so I thought I can
tranfer the structure of that database into my SQL server (I dont' really
need to transfer data, just the schema). Is this possible? Even if we are
not in a LAN? How can I do it? Take care that I'm not a DBA (but I have to
become it...) and my experience with SQL server is quite little...

Davide



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.