Encapsulating ODBC in ASP .NET

Introduction

In an earlier article (Implementing ODBC in ASP .NET), we described some issues with Microsoft's ODBC server controls, and how to work through them. In a nutshell, although Microsoft provided the necessary data objects, they left out the logic required to wire these objects into .NET's new XML-based Dataset standard. Our article described how to perform this task manually.

Although our approach works nicely, it requires a fair amount of code, particularly for Datasets with many fields. In addition, change control can rapidly become a problem if several Web Forms must access the same Dataset, since any structural change to the Dataset (adding or removing a field, etc.) must be reflected in each Data Adapter's table mappings.

You might also like...

Comments

About the author

Jason G. Williscroft

Jason G. Williscroft United States

Jason Williscroft is a former Marine and naval officer, and a graduate of the United States Naval Academy, where he studied Systems Engineering. He is currently General Manager of HotQuant, LLC,...

Interested in writing for us? Find out more.

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.” - Donald Knuth