472,331 Members | 1,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Enterprise Manager: defaults lost in import/export

Hi,
When I copy tables in a database from one server to another using
enterprise manager, everything copies ok, except for field defaults.

Has anyone seen this, and what is the solution?

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/General-Disc...ict174830.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=586973
Jul 20 '05 #1
5 2646
steve (Us************@dbForumz.com) writes:
When I copy tables in a database from one server to another using
enterprise manager, everything copies ok, except for field defaults.

Has anyone seen this, and what is the solution?


No, I have not seen it. Then again, I never copy tables with Enterprise
Manager.

The way that metadata should be installed in my opinion are from scripts
kept under source control. Relying on tools that you don't know what they
do under the cover is not a reliable process.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #2
"Erland Sommarskog2" wrote:
steve (Us************@dbForumz.com) writes:
When I copy tables in a database from one server to another

using
enterprise manager, everything copies ok, except for field

defaults.

Has anyone seen this, and what is the solution?


No, I have not seen it. Then again, I never copy tables with
Enterprise
Manager.

The way that metadata should be installed in my opinion are
from scripts
kept under source control. Relying on tools that you don't
know what they
do under the cover is not a reliable process.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp


Thanks, Erland

I am used to mysql where you just backup table def’s and data, and
easily copy the stuff to a new server.

Since I have a ton of tables, I don’t want to set up anything by hand.
Is there an easy and bulletproof way to transfer data and contents
(and views and stored procedures) from one sever to another?

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/General-Disc...ict174830.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=588260
Jul 20 '05 #3
steve (Us************@dbForumz.com) writes:
I am used to mysql where you just backup table def's and data, and
easily copy the stuff to a new server.

Since I have a ton of tables, I don't want to set up anything by hand.
Is there an easy and bulletproof way to transfer data and contents
(and views and stored procedures) from one sever to another?


If you want to transfer the entire database, just use BACKUP/RESTORE.
That's far more robust than scripting the lot. An alternative is
to use sp_detach_db/sp_attach_db.

The only time this is not possible is when you for some reason need to
change the collation. (Or the database is corrupt.) In this, if you don't
have scripts for your database under version control, you can script the
database from Enterprise Manager to det the definitions, and use BCP
to bulk data in and out. But relying on scripting is deceivable as you
have noticed. (I don't know what the Export/Import wizard does, but it
probably packages scripting and BCP:ing. I have never used it.)

If you want to move the metadata and data for some other reason, for
instance shipping from a development environment to a production
environment, then a version-control system is essential.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #4
"Erland Sommarskog2" wrote:
steve (Us************@dbForumz.com) writes:
I am used to mysql where you just backup table def’s and data, and
easily copy the stuff to a new server.

Since I have a ton of tables, I don’t want to set up anything

by hand.
Is there an easy and bulletproof way to transfer data and contents (and views and stored procedures) from one sever to another?


If you want to transfer the entire database, just use

BACKUP/RESTORE. That’s far more robust than scripting the lot. An alternative is
to use sp_detach_db/sp_attach_db.

The only time this is not possible is when you for some reason need to change the collation. (Or the database is corrupt.) In this, if you
don’t
have scripts for your database under version control, you can script the
database from Enterprise Manager to det the definitions, and use BCP to bulk data in and out. But relying on scripting is deceivable as you have noticed. (I don’t know what the Export/Import wizard does,
but it
probably packages scripting and BCP:ing. I have never used it.)

If you want to move the metadata and data for some other reason, for instance shipping from a development environment to a production
environment, then a version-control system is essential.


Hi Erland,

Backup/Restore is really good BUT cannot be used with a remotely
hosted server (if one does not have access to the file system, which I
don’t). I am still at a loss for an easy solution.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/General-Disc...ict174830.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=589880
Jul 20 '05 #5
"steve" wrote:
[quote:22bdd234c4="Erland Sommarskog2"]steve
(Us************@dbForumz.com) writes:
I am used to mysql where you just backup table def's and

data, and
easily copy the stuff to a new server.

Since I have a ton of tables, I don't want to set up

anything by hand.
Is there an easy and bulletproof way to transfer data and

contents
(and views and stored procedures) from one sever to another?


If you want to transfer the entire database, just use
BACKUP/RESTORE.
That's far more robust than scripting the lot. An alternative
is
to use sp_detach_db/sp_attach_db.

The only time this is not possible is when you for some reason
need to
change the collation. (Or the database is corrupt.) In this,
if you don't
have scripts for your database under version control, you can
script the
database from Enterprise Manager to det the definitions, and
use BCP
to bulk data in and out. But relying on scripting is
deceivable as you
have noticed. (I don't know what the Export/Import wizard
does, but it
probably packages scripting and BCP:ing. I have never used
it.)

If you want to move the metadata and data for some other
reason, for
instance shipping from a development environment to a
production
environment, then a version-control system is essential.
[/quote:22bdd234c4]

Hi Erland,

Backup/Restore is really good BUT cannot be used with a
remotely hosted server (if one does not have access to the
file system, which I don't). I am still at a loss for an easy
solution.


I think I have figured out a strategy with Enter. Manager (EM) that
works.

First, I have EM create me a file which includes all the sql create
statements. Then I execute that on the server where I like to migrate
the db to. I can do that using Query Analyzer.

Now I have all the "metadata" properly set up. Next step is to copy
the records over using EM, which is easy.

So the key is to use the above process to create the tables FIRST, and
don’t just copy tables over using EM.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/General-Disc...ict174830.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=590002
Jul 20 '05 #6

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

Similar topics

4
by: John Morgan | last post by:
I have Enterprise Manager on my local machine. For the last twelve months it has been connecting without problem to my online SQL Server database...
7
by: Kevin Newman | last post by:
I've been toying with a namespace manager, and wanted to get some input. So what do you think? if (typeof com == 'undefined') var com = {}; if...
0
by: Crercio O. Silva | last post by:
We are pleased to announce the new release 2.2.0 of the DBManager Professional. It is a major bug fix bringing stability and performance to the...
1
by: mikew | last post by:
I am working at a company that has been using MS SQL Server, and we are going to be switching over to postgresql next week. (Getting off of Windows...
1
by: Jurjen de Groot | last post by:
Has anyone tried the ASP.NET Enterprise Manager ? I've installed it but after starting up it produces errors, I've started it by using...
2
by: AH | last post by:
Dear all, I am facing this 'bug' that really drive me nut. I created a trigger for Update script and tested in Enterprise manager to ensure it...
0
by: mirzausce | last post by:
Accuired eServer i5 570 - Enterprise Edition; questions.. -------------------------------------------------------------------------------- My...
1
by: Iouri | last post by:
I have lost configuration manager in VS2005 IDE. I remember it used to be a combo box in the Tool bar where you can switch from Debug to Release...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

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.