473,383 Members | 1,716 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,383 software developers and data experts.

Plugging an alternate data source into MS-Access

Hi

Is it possible to substitute an alternative data source (eg MySQL or
SQL Server) into an existing MS-Access application?

Mar 26 '07 #1
11 2541
On 26 Mar 2007 05:54:43 -0700, "Chad" <ch********@hotmail.comwrote:

Yes. That's what linked tables and passthrough queries are for. Read
about them in the Help file.

-Tom.
>Hi

Is it possible to substitute an alternative data source (eg MySQL or
SQL Server) into an existing MS-Access application?
Mar 26 '07 #2
Hi, Chad.
Is it possible to substitute an alternative data source (eg MySQL or
SQL Server) into an existing MS-Access application?
Yes. Ensure that your workstation has the appropriate driver installed for
the database engine you choose, then you may:

1.) Link to the tables with the Linked Table Manager using a DSN (Data
Source Name) or DSN-less connection; or

2.) Write SQL Passthrough Queries in the database engine's native SQL
dialect; or

3.) Write VBA code using ADO or DAO libraries to connect to the tables and
manipulate the data.

The most efficient is the SQL Passthrough Queries, and the least efficient
is recordsets using ADO or DAO libraries, with or without table links.

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blogs: www.DataDevilDog.BlogSpot.com, www.DatabaseTips.BlogSpot.com
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
info.
"Chad" <ch********@hotmail.comwrote in message
news:11**********************@l77g2000hsb.googlegr oups.com...
Hi

Is it possible to substitute an alternative data source (eg MySQL or
SQL Server) into an existing MS-Access application?

Mar 26 '07 #3
Thanks Guys

Wasn't aware of the linking feature and have just had a look at
linking of alternative ODBC data sources. I don't know if it will help
me. I'll explain the problem:

A client has a very large legacy Access database and has put a lot of
work into the forms side of things. They want to migrate to a
different database format (eg MySQL). Migrating the data is a problem
but I think that can be handled with a really big script. However,
heres the problem: the user will want to use the OLD forms application
(largely unchanged) after the data has been migrated. This using of
the old forms stuff would be until a new UI is developed in the target
platform.

So I was hoping for something that would enable me to use the existing
forms with the new data source. I was hoping I could make a single
global change to seamlessly point the old forms stuff at the new data.
However I don't think that will be possible with linking.

When I link a table in from MySQL I would need to change the forms
code to use the linked in table explicitly. I was hoping the MySQL
tables could all have the same names as the original tables.

Would the other two options be worth pursuing to help solve this
problem?
Is there a nice clean API between the forms and the data source?
Perhaps the forms are stored in text format and I could change the
data source in there?

Much obliged,
Chad.

Mar 26 '07 #4
Hi Chad,
I have never done *exactly* what you are doing here ...
but I DO know that you can changed the name of a linked table right in the
database window -- without affecting the name of the "real" table.

I had a parts inventory application (I have since changed it a lot) where I
used to link "tblInventory" from several identically-structured MDB files
.... one for each customer.
I linked to, and then simply renamed each customer's "tblInventory" to
"FountainTire", or "Tirecraft", etc. Doing so allowed me to differentiate
between these linked inventory tables, changing the names only in this app.

To sum this up ... link to your MySQL tables, and then just rename the links
in your Access front-end to whatever table names you had originally.
Let us know if it works ... I can't see why it won't.

HTH,
Don
"Chad" <ch********@hotmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
Thanks Guys

Wasn't aware of the linking feature and have just had a look at
linking of alternative ODBC data sources. I don't know if it will help
me. I'll explain the problem:

A client has a very large legacy Access database and has put a lot of
work into the forms side of things. They want to migrate to a
different database format (eg MySQL). Migrating the data is a problem
but I think that can be handled with a really big script. However,
heres the problem: the user will want to use the OLD forms application
(largely unchanged) after the data has been migrated. This using of
the old forms stuff would be until a new UI is developed in the target
platform.

So I was hoping for something that would enable me to use the existing
forms with the new data source. I was hoping I could make a single
global change to seamlessly point the old forms stuff at the new data.
However I don't think that will be possible with linking.

When I link a table in from MySQL I would need to change the forms
code to use the linked in table explicitly. I was hoping the MySQL
tables could all have the same names as the original tables.

Would the other two options be worth pursuing to help solve this
problem?
Is there a nice clean API between the forms and the data source?
Perhaps the forms are stored in text format and I could change the
data source in there?

Much obliged,
Chad.

Mar 26 '07 #5
Hi, Chad.
Wasn't aware of the linking feature . . .
I don't know if it will help me. . . .
Migrating the data is a problem
but I think that can be handled with a really big script. . . .
So I was hoping for something that . . .
I was hoping I could make a single
global change . . .
I was hoping the MySQL
tables could all have the same names as the original tables. . . .
Would the other two options be worth pursuing to help solve this
problem? . . .
Is there a nice clean API between the forms and the data source? . . .
Perhaps the forms are stored in text format and I could change the
data source in there? . . .
This is going to sound harsh, because it is harsh. If you have time before
this project's deadline, take some Access database courses or get tutoring
from an Access database expert. If you don't have time, please find an
Access database developer to do the migration, because a successful
migration with Access as the front end requires someone who has some
knowledge of, and experience with, Access. Failed Access database
applications are almost always blamed on Access's shortcomings, not the true
guilty party -- inexperience.

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blogs: www.DataDevilDog.BlogSpot.com, www.DatabaseTips.BlogSpot.com
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
info.
"Chad" <ch********@hotmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
Thanks Guys

Wasn't aware of the linking feature and have just had a look at
linking of alternative ODBC data sources. I don't know if it will help
me. I'll explain the problem:

A client has a very large legacy Access database and has put a lot of
work into the forms side of things. They want to migrate to a
different database format (eg MySQL). Migrating the data is a problem
but I think that can be handled with a really big script. However,
heres the problem: the user will want to use the OLD forms application
(largely unchanged) after the data has been migrated. This using of
the old forms stuff would be until a new UI is developed in the target
platform.

So I was hoping for something that would enable me to use the existing
forms with the new data source. I was hoping I could make a single
global change to seamlessly point the old forms stuff at the new data.
However I don't think that will be possible with linking.

When I link a table in from MySQL I would need to change the forms
code to use the linked in table explicitly. I was hoping the MySQL
tables could all have the same names as the original tables.

Would the other two options be worth pursuing to help solve this
problem?
Is there a nice clean API between the forms and the data source?
Perhaps the forms are stored in text format and I could change the
data source in there?

Much obliged,
Chad.

Mar 26 '07 #6
Chad,

There are three words that do not pertain to the task of migrating from
Access to another database:
global, seamlessly and clean.

Globally, you can handle about 90% of the migration. Of course, its the
other 10% that will cause the grief. The following is just an example of
what you will be dealing with:

1. Datatypes are not the same between Access and other SQL databases. Watch
out for date/time datatypes among others.
2. Autonumber are handled differently.
3. You may have objects named as reserved words in the new DB which will
cause it to fail.

Just be aware the project will more than likely be much larger than you are
expecting. Make sure you do a lot of QA to find the things that are broken.
Microsoft has a good write-up on converting to SQL Server. The issues
described in the write-up are comparable to the issues you will run into
with other databases such as MySQL.

http://www.microsoft.com/technet/pro...migration.mspx

MS also has an upgrade utility for SQL Server. You might want to consider
SQL Server Express as the target database.

-- Bill

"Chad" <ch********@hotmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
Thanks Guys

Wasn't aware of the linking feature and have just had a look at
linking of alternative ODBC data sources. I don't know if it will help
me. I'll explain the problem:

A client has a very large legacy Access database and has put a lot of
work into the forms side of things. They want to migrate to a
different database format (eg MySQL). Migrating the data is a problem
but I think that can be handled with a really big script. However,
heres the problem: the user will want to use the OLD forms application
(largely unchanged) after the data has been migrated. This using of
the old forms stuff would be until a new UI is developed in the target
platform.

So I was hoping for something that would enable me to use the existing
forms with the new data source. I was hoping I could make a single
global change to seamlessly point the old forms stuff at the new data.
However I don't think that will be possible with linking.

When I link a table in from MySQL I would need to change the forms
code to use the linked in table explicitly. I was hoping the MySQL
tables could all have the same names as the original tables.

Would the other two options be worth pursuing to help solve this
problem?
Is there a nice clean API between the forms and the data source?
Perhaps the forms are stored in text format and I could change the
data source in there?

Much obliged,
Chad.

Mar 26 '07 #7
Spot on thank you Don and Bill.
Indeed I had just read this article moments before you had replied. It
makes for depressing reading. I would readily concur with your
assertion that the project is quite large and contains many pitfalls.
That said I shall not balk! I have come across another useful link
which presents three options and their associated increasing costs:

See: http://www.aldex.co.uk/sqlupsizing.html

Where they categorize:
-Basic Migration £3,000 (What we have been talking about here i.e.
Upsizing).
-Pragmatic Conversion £10,000-£15,000 (Migrating more stuff to the
server, stored procedures for example)
-Full Redesign ......?

I would reckon the Basic Migration may perhaps be a tad under priced
in the above given the QA required. I may consider one of the other
options either. The customer has made it fairly clear that their
schema is a bit of a mess!

Again thank you. I will perhaps sign off now until I have more hands
on experience of the system. Any more technical appreciated.

On Mar 26, 7:03 pm, "AlterEgo" <altereg...@dslextreme.comwrote:
Chad,

There are three words that do not pertain to the task of migrating from
Access to another database:
global, seamlessly and clean.

Globally, you can handle about 90% of the migration. Of course, its the
other 10% that will cause the grief. The following is just an example of
what you will be dealing with:

1. Datatypes are not the same between Access and other SQL databases. Watch
out for date/time datatypes among others.
2. Autonumber are handled differently.
3. You may have objects named as reserved words in the new DB which will
cause it to fail.

Just be aware the project will more than likely be much larger than you are
expecting. Make sure you do a lot of QA to find the things that are broken.
Microsoft has a good write-up on converting to SQL Server. The issues
described in the write-up are comparable to the issues you will run into
with other databases such as MySQL.

http://www.microsoft.com/technet/pro...eploy/accessmi...

MS also has an upgrade utility for SQL Server. You might want to consider
SQL Server Express as the target database.

-- Bill

"Chad" <chadzak...@hotmail.comwrote in message

news:11**********************@e65g2000hsc.googlegr oups.com...
Thanks Guys
Wasn't aware of the linking feature and have just had a look at
linking of alternative ODBC data sources. I don't know if it will help
me. I'll explain the problem:
A client has a very large legacy Access database and has put a lot of
work into the forms side of things. They want to migrate to a
different database format (eg MySQL). Migrating the data is a problem
but I think that can be handled with a really big script. However,
heres the problem: the user will want to use the OLD forms application
(largely unchanged) after the data has been migrated. This using of
the old forms stuff would be until a new UI is developed in the target
platform.
So I was hoping for something that would enable me to use the existing
forms with the new data source. I was hoping I could make a single
global change to seamlessly point the old forms stuff at the new data.
However I don't think that will be possible with linking.
When I link a table in from MySQL I would need to change the forms
code to use the linked in table explicitly. I was hoping the MySQL
tables could all have the same names as the original tables.
Would the other two options be worth pursuing to help solve this
problem?
Is there a nice clean API between the forms and the data source?
Perhaps the forms are stored in text format and I could change the
data source in there?
Much obliged,
Chad.

Mar 26 '07 #8
Just a little FYI, but we recently changed vendor software and are now
running our new Advertising system on a Oracle 9i database, and it is
a large database. We are using Access to link to those tables for
reporting purposes...at least the guy sitting next to me is...and he
is no Access expert.

So, it is possible.
On 26 Mar 2007 09:21:00 -0700, "Chad" <ch********@hotmail.comwrote:
>Thanks Guys

Wasn't aware of the linking feature and have just had a look at
linking of alternative ODBC data sources. I don't know if it will help
me. I'll explain the problem:

A client has a very large legacy Access database and has put a lot of
work into the forms side of things. They want to migrate to a
different database format (eg MySQL). Migrating the data is a problem
but I think that can be handled with a really big script. However,
heres the problem: the user will want to use the OLD forms application
(largely unchanged) after the data has been migrated. This using of
the old forms stuff would be until a new UI is developed in the target
platform.

So I was hoping for something that would enable me to use the existing
forms with the new data source. I was hoping I could make a single
global change to seamlessly point the old forms stuff at the new data.
However I don't think that will be possible with linking.

When I link a table in from MySQL I would need to change the forms
code to use the linked in table explicitly. I was hoping the MySQL
tables could all have the same names as the original tables.

Would the other two options be worth pursuing to help solve this
problem?
Is there a nice clean API between the forms and the data source?
Perhaps the forms are stored in text format and I could change the
data source in there?

Much obliged,
Chad.
Mar 26 '07 #9
G.,

Linking to an existing database is quite easy. What Chad is talking about is
converting an existing Access database with non-standard datatypes,
non-standard SQL, etc. - it can get hairy.

-- Bill

"G. Miller" <gm*****@nospam-mobileregister.comwrote in message
news:46****************@newsgroups.bellsouth.net.. .
Just a little FYI, but we recently changed vendor software and are now
running our new Advertising system on a Oracle 9i database, and it is
a large database. We are using Access to link to those tables for
reporting purposes...at least the guy sitting next to me is...and he
is no Access expert.

So, it is possible.
On 26 Mar 2007 09:21:00 -0700, "Chad" <ch********@hotmail.comwrote:
>>Thanks Guys

Wasn't aware of the linking feature and have just had a look at
linking of alternative ODBC data sources. I don't know if it will help
me. I'll explain the problem:

A client has a very large legacy Access database and has put a lot of
work into the forms side of things. They want to migrate to a
different database format (eg MySQL). Migrating the data is a problem
but I think that can be handled with a really big script. However,
heres the problem: the user will want to use the OLD forms application
(largely unchanged) after the data has been migrated. This using of
the old forms stuff would be until a new UI is developed in the target
platform.

So I was hoping for something that would enable me to use the existing
forms with the new data source. I was hoping I could make a single
global change to seamlessly point the old forms stuff at the new data.
However I don't think that will be possible with linking.

When I link a table in from MySQL I would need to change the forms
code to use the linked in table explicitly. I was hoping the MySQL
tables could all have the same names as the original tables.

Would the other two options be worth pursuing to help solve this
problem?
Is there a nice clean API between the forms and the data source?
Perhaps the forms are stored in text format and I could change the
data source in there?

Much obliged,
Chad.

Mar 26 '07 #10
Chad,

.... customer has made it fairly clear that their schema is a bit of a mess
.... RUN AWAY FAST! Just kidding. If you are doing this under contract, don't
quote a fixed price, quote time and materials. If you do it under a fixed
contract, you'll be fixing the conversion and all of the bugs that are
already in the application.

-- Bill
"Chad" <ch********@hotmail.comwrote in message
news:11*********************@b75g2000hsg.googlegro ups.com...
Spot on thank you Don and Bill.
Indeed I had just read this article moments before you had replied. It
makes for depressing reading. I would readily concur with your
assertion that the project is quite large and contains many pitfalls.
That said I shall not balk! I have come across another useful link
which presents three options and their associated increasing costs:

See: http://www.aldex.co.uk/sqlupsizing.html

Where they categorize:
-Basic Migration £3,000 (What we have been talking about here i.e.
Upsizing).
-Pragmatic Conversion £10,000-£15,000 (Migrating more stuff to the
server, stored procedures for example)
-Full Redesign ......?

I would reckon the Basic Migration may perhaps be a tad under priced
in the above given the QA required. I may consider one of the other
options either. The customer has made it fairly clear that their
schema is a bit of a mess!

Again thank you. I will perhaps sign off now until I have more hands
on experience of the system. Any more technical appreciated.

On Mar 26, 7:03 pm, "AlterEgo" <altereg...@dslextreme.comwrote:
Chad,

There are three words that do not pertain to the task of migrating from
Access to another database:
global, seamlessly and clean.

Globally, you can handle about 90% of the migration. Of course, its the
other 10% that will cause the grief. The following is just an example of
what you will be dealing with:

1. Datatypes are not the same between Access and other SQL databases.
Watch
out for date/time datatypes among others.
2. Autonumber are handled differently.
3. You may have objects named as reserved words in the new DB which will
cause it to fail.

Just be aware the project will more than likely be much larger than you
are
expecting. Make sure you do a lot of QA to find the things that are
broken.
Microsoft has a good write-up on converting to SQL Server. The issues
described in the write-up are comparable to the issues you will run into
with other databases such as MySQL.

http://www.microsoft.com/technet/pro...eploy/accessmi...

MS also has an upgrade utility for SQL Server. You might want to consider
SQL Server Express as the target database.

-- Bill

"Chad" <chadzak...@hotmail.comwrote in message

news:11**********************@e65g2000hsc.googlegr oups.com...
Thanks Guys
Wasn't aware of the linking feature and have just had a look at
linking of alternative ODBC data sources. I don't know if it will help
me. I'll explain the problem:
A client has a very large legacy Access database and has put a lot of
work into the forms side of things. They want to migrate to a
different database format (eg MySQL). Migrating the data is a problem
but I think that can be handled with a really big script. However,
heres the problem: the user will want to use the OLD forms application
(largely unchanged) after the data has been migrated. This using of
the old forms stuff would be until a new UI is developed in the target
platform.
So I was hoping for something that would enable me to use the existing
forms with the new data source. I was hoping I could make a single
global change to seamlessly point the old forms stuff at the new data.
However I don't think that will be possible with linking.
When I link a table in from MySQL I would need to change the forms
code to use the linked in table explicitly. I was hoping the MySQL
tables could all have the same names as the original tables.
Would the other two options be worth pursuing to help solve this
problem?
Is there a nice clean API between the forms and the data source?
Perhaps the forms are stored in text format and I could change the
data source in there?
Much obliged,
Chad.


Mar 26 '07 #11
Yep, I would concur with your advice. We have agreed a daily rate.
I am hoping however that the basic migration with no rearchirecture
makes it in under two person weeks as its only the beginning of a
major peice of work.
... customer has made it fairly clear that their schema is a bit of a mess
... RUN AWAY FAST! Just kidding. If you are doing this under contract, don't
quote a fixed price, quote time and materials.


Mar 27 '07 #12

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

Similar topics

3
by: Chris | last post by:
Could someone please provide me an effective means of exporting data from a data set (or data grid) to Excel?
4
by: Moogy | last post by:
I'm pulling my hair out here. First, I'm new to XML, so that doesn't help, but none of this makes any sense to me. All I'm trying to do is take a simple source XML file and translate it with an...
1
by: gane kol | last post by:
Hi I am using DES algorithm. I am getting an error message in a few cases of the querystring Error Message : Length of the data to decrypt is invalid. Error Method : System.String...
3
by: Benjamin Gavin | last post by:
Hi all, I recently stumbled upon a bug in the ASP.NET framework handling of ImageButton based postbacks. The issues derives from the fact that IE and Mozilla handle the case of a missing image...
5
by: dpomt | last post by:
When the ASP.NET menu is rendered on downlevel browers, the text "^ up one level" is displayed. Any ideas how I can change that text? I did not find a property for the menu control where I can...
1
by: davidz | last post by:
I am attempting to use the foreach loop structure in an SSIS package to loop through however many Excel files are placed in a directory and then perform an import operation into a SQL table on each...
0
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
3
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
5
by: cgd | last post by:
hi, i want to save the MS Word data (not the Word file) to a database, so i copy the Word data to clipboard first,and then get the data to a DataObject object, and then try the code below, ...
2
by: Author | last post by:
I am exploring the DeflateStream class as a practice. I thought it is fun to compress a text file and write it to a disk file. So I created the following method. If you don't bother reading the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.