473,503 Members | 3,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Best way to interact with .mdb database?

I've got an MS Access database with around 20 or so tables, all of them
linked by foreign keys with enforced referential integrity. Using
oledbdataadapter, I find that I have to read each table individually into a
dataset, and then build each relation manually, which is quite tedious.
Also, there appear to be some .mdb attributes that do not map directly to an
aspect within the dataset, such as 'indexed (no duplicates)' or 'data
required'.

Basically, I want an object that represents all the rules of my .mdb so that
any violations are caught BEFORE attempting to update the .mdb.

Is there a better method than the oledbdataadapter?
Nov 17 '05 #1
1 1407
Hi,

I suggest you to take a look at CodeSmith - template based code generator.
www.codesmithtools.com
You might also take a look at my templates for CodeSmith that build DataSet
schemas and DataAdapters.
http://www.rthand.com/DesktopModules...ID=6&mid=10244
and
http://www.rthand.com/DesktopModules...ID=7&mid=10244

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
SLODUG - Slovene Developer Users Group www.codezone-si.info

"OpenYourMind" <Op**********@discussions.microsoft.com> wrote in message
news:44**********************************@microsof t.com...
I've got an MS Access database with around 20 or so tables, all of them
linked by foreign keys with enforced referential integrity. Using
oledbdataadapter, I find that I have to read each table individually into
a
dataset, and then build each relation manually, which is quite tedious.
Also, there appear to be some .mdb attributes that do not map directly to
an
aspect within the dataset, such as 'indexed (no duplicates)' or 'data
required'.

Basically, I want an object that represents all the rules of my .mdb so
that
any violations are caught BEFORE attempting to update the .mdb.

Is there a better method than the oledbdataadapter?

Nov 17 '05 #2

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

Similar topics

3
2512
by: skeeterbug | last post by:
i do some web db stuff using php. i coworker asked me if he could develop a php front end that would ultimately end up interacting with a program he had written in c (c++ or whatever). can php...
16
2986
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
6
1935
by: Ian Frawley | last post by:
Hello everyone I have written a Windows Service to monitor local and remote Processes/Applications. However I am stuck because if it is installed as a user account I cannot get it to interact...
4
1370
by: mharness | last post by:
Hello All, I've defined a number of classes that currently only include public variable declarations. I've been reluctant to add subroutines and functions for fear of taking a performance hit...
5
3167
by: Ron L | last post by:
I have a DataTable that is being maintained in a Model class. I also have a View class which creates a DataView from the DataTable that the Model passes it. The view class then has methods to...
2
1262
by: Roy | last post by:
Hey all, This is a general question. Here's my scenario: We have a legacy database. The core table within contains almost 4 million records in SQL Server. Currently we have a web front end which...
2
1529
by: OSI Mik | last post by:
Hello, I try to make a user interface for a DB in VB.DOT 2005 with SQL server. I use auto generate Textbox and datagridview (with BindingSource, TableAdapter...) with manual add of ComboBox and I...
2
2339
by: stephen.diverdi | last post by:
I have a question about what's the best way to handle something in C++ without a lot of redundant code and void*s because I don't seem to be able to avoid them both. I've run into it before and...
10
3896
by: Brendan Miller | last post by:
What would heavy python unit testers say is the best framework? I've seen a few mentions that maybe the built in unittest framework isn't that great. I've heard a couple of good things about...
0
7207
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
7093
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
7291
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,...
1
7012
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
7468
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...
0
4690
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...
0
3180
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...
0
1522
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 ...
0
402
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...

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.