Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8979

Copying Schema and Content

$
0
0

I am trying to copy the tables, relationships, and data of a logical database...

From: a logical database in SQL Server 2005, where I have instance-wide system admin privileges (supreme power)

To: a pre-existing logical database in a different SQL Server 2005 instance, where I merely have "database owner" privileges to that logical database (I have no "instance-wide" privileges).

This is a one-time effort (as opposed to nightly).  I have found a way to reproduce the tables and relationships ("generate scripts", then run the script on the new server).  I have also found a way to export/import the data.  But I have not found a way to effectively do both.  In other words, if I create the tables and relationships, and then attempt to import the data, I get tons of relationship violations, because the data is not being imported in a "dependency-sensitive" order or fashion.

So can somebody tell me how to do this, or tell me what I'm doing wrong?  Remember, I do not have "Create Database" rights on the destination server - so I can't use the "Copy Database" command (darn).  Any help?


Viewing all articles
Browse latest Browse all 8979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>