|
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
Features .NET Feature — Database Toolkits: Portable and Cost-Effective Software
.NET Feature — Database Toolkits: Portable and Cost-Effective Software
By: Bob DeAnna
May. 18, 2007 02:00 PM
We're living in an information age. Our daily life involves absorbing useful information and filtering out garbage. Information (data) plays an important role in our daily life. People, especially businesses, need to organize large amounts of disparate information. The information needs to be organized in such a way that you can easily access desired data quickly. The first step is to design a database, which balances normalization with data integrity and performance requirements. But that's just the first step. It's just as important to be able to programmatically access the data from the database in an intuitive and consistent way. That's where ODBC comes into play.
ODBC is especially suitable for applications using several different databases. ODBC is popular because it's independent of any one database management system or operating system. It provides an interface that's portable to multiple platforms and relational database management systems. A single application can be connected to different databases with no changes, recompilation or re-linking required. At the same time, ODBC provides a powerful set of facilities for controlling and using databases. Despite all the advantages of ODBC, using ODBC can still be a non-trivial task.
Disadvantages of ODBC
2. Overhead of setup and teardown of database Here we illustrate the typical steps in programming with ODBC. For application developers to work on ODBC, they need to do a setup such as allocating handles (environment, dbc, statement), setting the desired attribute, performing the actual query, and cleaning up, which involves freeing the handles, disconnect, etc.
Finding Solutions One such solution, Recursion Software's Database Toolkit, consists of two components, client and server. The server makes use of the native operating system's ODBC environment to respond to the requests of various database clients. The client exposes APIs to database applications. Figure 2 demonstrates the architecture of this toolkit.
Benefits of Use The toolkit contains classes and methods exposing simple APIs for building portable database applications quickly. It eases the burden of dealing with the following issues: connecting to the database, environment handling management, statement handling creation, executing and disconnecting from the database by putting highly repeated code in an easy-to-use API. There's no need for the application layer to do the basic set-up and clean-up routines. Here are the steps for using this kind of solution:
Reader Feedback: Page 1 of 1
Latest Cloud Developer Stories
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week
Breaking Cloud Computing News
|
|||||||||||||||||||||||||||||||||||||||||||||||||