473,800 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to create custom data migration query?

If I release a new version of my mbd (in mde format) and users want to
upgrade - how do they migrate their data?

For example, if the original was released as data1.mde and then I release
data2.mde (same table/data structures - just revised VBA code with perhaps a
new/updated form or two), what's the best way for users to get their data
into the new data2.mde?

I'm thinking I could use a query - something like:

"INSERT [everything] FROM [data1] INTO [data2] EXCEPT WHERE [data1_column] =
AutoNumber"

This means I would have to iterate through each of the 50 tables in the
database somehow. Is this the best way? Other options?

Thanks in advance.
Nov 12 '05 #1
11 2426
rkc

"deko" <de**@hotmail.c om> wrote in message
news:Sw******** ***********@new ssvr27.news.pro digy.com...
If I release a new version of my mbd (in mde format) and users want to
upgrade - how do they migrate their data?

For example, if the original was released as data1.mde and then I release
data2.mde (same table/data structures - just revised VBA code with perhaps a new/updated form or two), what's the best way for users to get their data
into the new data2.mde?

I'm thinking I could use a query - something like:

"INSERT [everything] FROM [data1] INTO [data2] EXCEPT WHERE [data1_column] = AutoNumber"

This means I would have to iterate through each of the 50 tables in the
database somehow. Is this the best way? Other options?


Your data and front end objects should reside in separate files whether
you have a single user or 30 users. Your current problem disappears.


Nov 12 '05 #2
> Your data and front end objects should reside in separate files whether
you have a single user or 30 users. Your current problem disappears.


What do you mean? How do I separate front end objects form data?

The other thing I tried was this:

After the new release (data2) is ready to go, delete all the tables and
relationships, and then make it into an mde. Then, import all the tables
from data1 into data2. The only problem with this is I can't update or add
any new tables in the new release, which is very limiting.
Nov 12 '05 #3
"deko" <de**@hotmail.c om> wrote in message
news:9W******** ***********@new ssvr25.news.pro digy.com...
Your data and front end objects should reside in separate files whether
you have a single user or 30 users. Your current problem disappears.


What do you mean? How do I separate front end objects form data?


Access can link to tables in other files. You carry this to its extreme and set
up ALL of your tables as links to another file and presto, one file for data and
one file for everything else.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #4
> Access can link to tables in other files. You carry this to its extreme
and set
up ALL of your tables as links to another file and presto, one file for data and one file for everything else.


So then do I distribute two mde files? One with tables and queries only,
and the other with all the forms, modules, reports, etc?

Still, if I want to update the data structure in a new release, don't I
still have the same problem?
Nov 12 '05 #5
"deko" <de**@hotmail.c om> wrote in message
news:W3******** ***********@new ssvr25.news.pro digy.com...
Access can link to tables in other files. You carry this to its extreme and set
up ALL of your tables as links to another file and presto, one file for

data and
one file for everything else.


So then do I distribute two mde files? One with tables and queries only,
and the other with all the forms, modules, reports, etc?


There is no benefit to making an MDE of the data file as it does nothing to
tables or queries.
Still, if I want to update the data structure in a new release, don't I
still have the same problem?


Yes. In those cases I usually include code in the new front end that
programmaticall y applies the table structure changes to the existing back end.
Still, the vast majority of updates don't affect the tables.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #6
> > So then do I distribute two mde files? One with tables and queries
only,
and the other with all the forms, modules, reports, etc?
There is no benefit to making an MDE of the data file as it does nothing

to tables or queries.


Agreed, but the idea is to distrubute 2 files: one (mde) that contains front
end (forms, modules, reports) and another (mdb) that contains the back end
(tables, relationships, queries) - is this correct?

But how to set up the links to the back end? Don't I need dummy tables in
the mde which link to the real tables in the mdb?

When all is said and done, it appears there's really not much advantage in
doing this. As I mentioned in an earlier post, I can just distribute the
new data2.mde without any tables and have the users import all the tables
from the old data1.mde. The only advantage of having separate front and
back end files is avoiding the need to do the import. When this is weighed
against the ease of maintaining only one file, I'm not sure if it's worth
it. The problem of distributing an updated version that requires changes to
the existing data structure remains an issue in either case. As you say,
that must be addressed with code in the new release.

Nov 12 '05 #7
> > Still, if I want to update the data structure in a new release, don't I
still have the same problem?
Yes. In those cases I usually include code in the new front end that
programmaticall y applies the table structure changes to the existing back

end. Still, the vast majority of updates don't affect the tables.


So, if a new release (mde) includes changes to the table/data structure -
regardless of whether or not the front and back ends are split - I'll need
code to massage the data from the old structures into the new structures.
If this is the case, then why bother splitting into front and back end?

As for getting existing data into a new mde version WITHOUT data structure
changes, why not simply gin up some code to do this as well? I could
distribute the updated mde with code that runs once the first time it's
opened that prompts for the path to the old mde, and then imports all the
tables automaticcally with a few DoCmd.TransferD atabase statements. This
seems like a better way to go than having to deal with two files.
Nov 12 '05 #8
From: http://support.microsoft.com/?kbid=304932
Reasons Why You May Want to Split Your Database
The following are typical reasons to split a database:

You are sharing your database with multiple users on a network.
You have several people developing in the database and you do not have
Microsoft Visual Source Safe installed.
You do not want your users to be able to make design changes to tables.

The most common reason to split a database is that you are sharing the
database with multiple users on a network. If you simply store the database
on a network share, when your users open a form, query, macro, module, or
report, these objects have to be sent across the network to each individual
who uses the database. If you split the database, each user has their own
copy of the forms, queries, macros, modules, and reports. Therefore, the
only data that must be sent across the network is the data in the tables.

Bottom line: if you want to follow best practices in a multi-user
environment, split the database; in a single-user environment, don't split.
Nov 12 '05 #9
I have an app which I have sold to a number of single users.
It is split. All tables are in the back end. Every thing else is in the front
end.
The back end is unique to each user. The front ends are all identical.

Upgrades are simply a matter of distributing a new front end.
Include some code with the front end which relinks the tables
No problems !!
HTH
David B

deko <de**@hotmail.c om> wrote in message
news:7k******** **********@news svr29.news.prod igy.com...
From: http://support.microsoft.com/?kbid=304932
Reasons Why You May Want to Split Your Database
The following are typical reasons to split a database:

You are sharing your database with multiple users on a network.
You have several people developing in the database and you do not have
Microsoft Visual Source Safe installed.
You do not want your users to be able to make design changes to tables.

The most common reason to split a database is that you are sharing the
database with multiple users on a network. If you simply store the database
on a network share, when your users open a form, query, macro, module, or
report, these objects have to be sent across the network to each individual
who uses the database. If you split the database, each user has their own
copy of the forms, queries, macros, modules, and reports. Therefore, the
only data that must be sent across the network is the data in the tables.

Bottom line: if you want to follow best practices in a multi-user
environment, split the database; in a single-user environment, don't split.


Nov 12 '05 #10

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

Similar topics

1
10523
by: Tom Loach | last post by:
I have user that we just migrated his Access database to SQL Server. All went well with the migration, but then he came up with another requirement to be able to replicate the database to a local SQL server living on the hard drive of a laptop. Before the migration he just copied the entire Access databse to the lap top. I tried using the Copy SQL Server Objects Task to move the necessary tables from the production server to the laptop,...
7
8076
by: Dave | last post by:
We are trying to migrate a MS SQL server app to DB2 8.1 Linux platform. Our database has got about 300+tables with total size - 150 GB We are using MS SQL's BCP utility to extract data from MS SQL's tables and loading into DB2 using DB2's LOAD utility. There are tons of colums of floating point types (singe precion & double precision types) in the database and when extracted using BCP, it generates data only upto 17 digits....
1
2074
by: sac | last post by:
I am using DB2 v8.1 on UNIX. A few weeks ago the DBAs carried out node migration activity on the database. After the node migration I observed that the queries that execute on temporary tables show extreme poor performance. One of the query was partly optimized by declaring a partitioning key on the temporary table. However it still takes longer than before the node migration. I would appreciate if I could get information on the...
1
14359
by: Manish Bafna | last post by:
speaking of me, I'm not very new to Access, but I haven't worked on it as a professional. I know that you can fire queries in Access, but I don't think you can create views. i want to know that is there any way to create stored procedures or triggers in Access. Also, I want to know that can we migrate data from any platform? i downloaded this rdbms s/w from http://www.vaman.net/vmndataserver.asp i tried this s/w. this solved my most of...
11
1197
by: deko | last post by:
If I release a new version of my mbd (in mde format) and users want to upgrade - how do they migrate their data? For example, if the original was released as data1.mde and then I release data2.mde (same table/data structures - just revised VBA code with perhaps a new/updated form or two), what's the best way for users to get their data into the new data2.mde? I'm thinking I could use a query - something like:
4
7751
by: Apple | last post by:
1. I want to create an autonumber, my requirement is : 2005/0001 (Year/autonumber), which year & autonumber no. both can auto run. 2. I had create a query by making relation to a table & query, but I can't update record in query or in form. I believe the problem is due to the source query. In source query, there is a filter to show the incomplete record ("is null" in delivery date)], but I need to re-use the job no. if the job is...
60
4948
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the 'target' programming community herein) to get some community input and verify (or not) the following two statements. Few programmers (3 to7%) UNDERSTAND 'Strategic Functional Migration
2
2759
by: contact1981 | last post by:
Hello, I am trying to migrate data from a DB2 database to SQL Server 2005 database. Does anyone know about any migration tool that does that? I have heard about DB2 Migration Tool kit, but I think you can only migrate data to a DB2 database with that. Thank you. Sincerely,
2
1723
by: jrsonner | last post by:
I have multiple entries in one table that I need to update the entries in the current production table with, to revert that data back before a migration so I can migrate that data again. The queries I wrote to find the entries that need to be updated is below. There are four queries that I ran to find the information. There is a total of about 2500 lines that need to be updated. Select * from St_Page where fname like '01-%' Select *...
0
9691
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9090
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7580
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6813
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.