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

How to convert an Access.mdb format???

Hi all,

Is there a way to convert an Access.mdb from one format (say Access '97 or
Access 2000) to Access 2002 format using ADO.NET and C#??? I know how to do
it manually using the Access DBMS but I would like to know how to do it
programatically.

I don't have any idea if this can be done so if it can please could someone
show the code to do it or provide links so I can read up on how to do it.

Thanks in advance.

--
Message posted via http://www.dotnetmonster.com
Nov 18 '05 #1
3 2857
Jon,

I don't believe there is a way to do it through ADO.NET. ADO.NET is
good at exposing the common functionality that most data stores expose
(select, update, delete, insert), not at performing specific DB functions.

In order to do this, you would be better off automating access and
performing the operation through there.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jon S via DotNetMonster.com" <u2272@uwe> wrote in message
news:578cc600d541e@uwe...
Hi all,

Is there a way to convert an Access.mdb from one format (say Access '97 or
Access 2000) to Access 2002 format using ADO.NET and C#??? I know how to
do
it manually using the Access DBMS but I would like to know how to do it
programatically.

I don't have any idea if this can be done so if it can please could
someone
show the code to do it or provide links so I can read up on how to do it.

Thanks in advance.

--
Message posted via http://www.dotnetmonster.com

Nov 18 '05 #2
...

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1
Nov 18 '05 #3
Hi Jon,

First, you need to understand that you don't really "convert" an Access mdb.
You create a new Access mdb with the format desired, and put everything from
the first into the second. The tricky part is not moving the data; it's
anything else you may expect to move over. For example, an Access mdb file
may contain, in addition to data, relationsips, and indices, Reports,
Modules, Forms, and other items which are not directly related to data. If
you want to migrate these over, your task will be much more difficult, as
functionality available in one version may not be available in the other,
may need to work slightly differently, etc. In other words, you need to
identify exactly what you want to "convert" to the other database. Anything
that is purely database-related can easily be copied/tranformed. Anything
else is going to be, at best, problematic.

To do this programmatically, you would need to create instances of both
database applications using their COM programming interface. This would, of
course, require COM interop. From there, it is more or less a relatively
simple matter of using the COM interface, combined perhaps with .Net
database classes, to copy the database data, etc.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Jon S via DotNetMonster.com" <u2272@uwe> wrote in message
news:578cc600d541e@uwe...
Hi all,

Is there a way to convert an Access.mdb from one format (say Access '97 or
Access 2000) to Access 2002 format using ADO.NET and C#??? I know how to
do
it manually using the Access DBMS but I would like to know how to do it
programatically.

I don't have any idea if this can be done so if it can please could
someone
show the code to do it or provide links so I can read up on how to do it.

Thanks in advance.

--
Message posted via http://www.dotnetmonster.com

Nov 18 '05 #4

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

Similar topics

4
by: aevans1108 | last post by:
expanding this message to microsoft.public.dotnet.xml Greetings Please direct me to the right group if this is an inappropriate place to post this question. Thanks. I want to format a...
12
by: dixie | last post by:
Can someone familiar with Access 2003 please answer this question? I am asking because I don't have the use of A2003. When Access 2003 finds an Access 2000 database, does it come up with some...
3
by: ET | last post by:
I don't know whats the problem, but after I added functions to first verify, then relink linked tables if not found, now I can't convert that database to MDE format. I can split the database, but...
5
by: dubing | last post by:
Hello everyone, There is a field of DATETIME type in our Access 2000 database. PHP is used to query the data and display the query results on the web. Does Access provide any function that can...
5
by: melickas | last post by:
We designed a custom application using Office Developer Tools '97 which included a Run-time version of Access--- so it would not matter if our customer even had any version of Access on their...
4
by: perryclisbee via AccessMonster.com | last post by:
I have dates of service for several people that range all over each month. ie: patient had dates of service of: 7/3/2006, 7/24/2006 and 7/25/2006. I need to create a new field via a query that...
6
by: tombsy | last post by:
Hello Group. I work for a company who is about to embark on a long awaited Office upgrade from Office 97 to Office XP. Office XP comes with Access 2002. I am an accomplished Access developer...
2
by: Kakishev | last post by:
I have a problem at how best to convert a Date into a text field and keep the format dd/mmm/yyyy (01-FEB-2007). The problem is that dates are imported from SQL into an access front end Database....
5
by: WPW07 | last post by:
Hello, We have several complex applications developed in Access 2003 by various outside consultants. These applications link to a variety of Oracle tables and are used only for Access reports. ...
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
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...
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
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...
0
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...

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.