473,416 Members | 1,738 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,416 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 2776
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 provided by my ISP. Three weeks ago the ISP...
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 (!com.unFocus) com.unFocus = {}; ...
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 application. Also it adds support to SQLite databases...
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 will be a relief!) I am very familiar with SQL...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
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 http://localhost/ASP-ent-man/ and also 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 function correctly. However, when I used both VB or...
0
by: mirzausce | last post by:
Accuired eServer i5 570 - Enterprise Edition; questions.. -------------------------------------------------------------------------------- My company just purchased this unit from a company...
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 mode. It is not there anymore. Any advice how to...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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,...

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.