473,583 Members | 3,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2791
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****@sommarsk og.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****@sommarsk og.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****@sommarsk og.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:22bdd234c 4="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:22bdd234c 4]

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
5485
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 applied some sort of extra security arrangements to their SQL Server to allow access only through port 1433. they have told me to configure an alias...
7
7431
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 = {}; com.unFocus.Namespaces = new function() { this.register = function(namespace) { namespace = namespace.split('.');
0
1381
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 and Xbase Tables which you can manage using the same way you do for MySQL and PostgreSQL. In next version support for Interbase/Firebird will be...
1
6614
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 Server's "Enterprise Manager", which is their GUI for accessing the db. I have been acquainting myself with pgAdmin. There are a number of things...
0
4529
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 Express Edition v1.3.2 Win, IBM Tivoli System Automation v1.2.0 Linux, IBM Tivoli Workload Scheduler Virtualized Data Centers v8.2 , other IBM...
1
4665
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 http://localhost/ASP-ent-man/app/ but they both throw an exception. I've even copied the bin directory into the app directory but that doesn't help. I've...
2
2258
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 Server explorer to update the table, it gives me error, Couldn't VB just act as a intermidary to make the call and SQL server is supposed to do all the...
0
1915
by: mirzausce | last post by:
Accuired eServer i5 570 - Enterprise Edition; questions.. -------------------------------------------------------------------------------- My company just purchased this unit from a company that went under. It's brand new in the box and the configuration is posted below. We got it for very cheap and are wondering if some of you that work...
1
1872
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 bring it back or alternative ways to switch between Debug and release mode. I also cannot see Configuration manager if I right clickon the colution in...
0
7894
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8321
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7931
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8191
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6578
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5699
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3841
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1426
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1154
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.