QueryDef - a complete implementation of a dynamic recordset Maryland

Sourcefiles added (RecordsetPatch.dll)

Local Companies

A E C Solutions
410-823-5007
6510 Falls RD
Baltimore, MD
USinternetworking, An AT&T Company
410-897-3506
2500 Riva Road
Annapolis, MD
Universal Software Solutions Inc
410-358-8851
6506 Cross Country Blvd
Baltimore, MD
Gp Solutions Inc
410-244-8548
201 N Charles St
Baltimore, MD
Grytek
800-516-0840
11505 Cherry Tree Crossing RD
Cheltenham, MD
Disaster Recovery By CCP
410-247-7000
4367 Hollins Ferry Rd Suite 2B
Baltimore, MD
Legal Technology Solutions
410-547-8596
36 S Charles St
Baltimore, MD
HypeOffice
1.301.255.0018
6101 Executive Blvd. #115
Rockville, MD
Early Morning Software Inc
410-539-0901
227 Holliday St
Baltimore, MD
Affiliated Computer Services Inc
410-347-0794
200 Holliday St
Baltimore, MD

provided by: 
Originally published at Internet.com


Overview

This article tries to explain the class library QueryDef intended to be used instead of the classic MFC class CRecordset. CRecordset is a great class with one single exception. You have to generate/write too much code. In a project I was involved there were over 700 recordsets defined. Soon working with CRecordset became a real hassle. I wanted a simpler method to access the data from an ODBC data source.

So the design goals of this library were: 1. Eliminate the need for one recordset-one class tuple. 2. Eliminate the need for bindings and the infamous list of data members henceforth. 3. Eliminate the need to know in advance the database schema. 4. Blur the distinction between a recordset and a stored procedure with output parameters. 5. Ease the access to the recordset column information. 6. Provide automatic conversion of data wherever is needed with easy formatting. 7. Simplifying the test with the SQL null value. 8. Provide a simple notification mechanism to bind visual controls with certain events related to the recordset. 9. Compatibilty with the CRecordset class (aka support for positioned updates and inserts).

The cornerstone of the library is the class CQueryDef. This class is designed to be used directly (w/o derivation) although there is nothing stopping you using it as a base class. Basically this class represents a collection of rows and columns returned from a SQL request. The table can be as small as no rows/no columns or as large as milions of rows with 255 columns. CQueryDef uses an internal representation of the column data making it possible to hold the following data types: * String or text (this includes numeric and decimal SQL types) * Int, long or short * Float and double * Datetime, smalldatetime, timestamps * Binary data ...

Read article at Internet.com site

Featured Local Company

Disaster Recovery By CCP

410-247-7000
4367 Hollins Ferry Rd Suite 2B
Baltimore, MD
http://www.ccp-solutions.com

Related Articles
- Custom MSBuild Task Development with Visual C++ Maryland
Visual C++ 2010 sees the integration of MSBuild with Visual C++. MSBuild is Microsoft's common build engine and one of its key design goals is the ability to support a high-degree of flexibility in customizing the build process. See how a custom MSBuild task can be built in Visual C++, and how the task can be used to customize the build process of other Visual C++ 2010 projects.
- Visual Basic .NET as a Fully Object-Oriented Language Maryland
- List control with single / double separator lines Maryland
- Connecting to a running instance of Internet Explorer Maryland
- SharePoint with HTTP Modules and Handlers Maryland
- JavaBean Proxies Maryland
- Applied Microsoft .NET Framework Programming Maryland
- Netscape 4.x Preferences Dialog Maryland
- WBEM Class Wrapper for Local and Remote Process Creation Maryland
- An Active Server Pages Tutorial, Part 1 Maryland
Regional Articles
- QueryDef - a complete implementation of a dynamic recordset Annapolis MD
- QueryDef - a complete implementation of a dynamic recordset Baltimore MD
- QueryDef - a complete implementation of a dynamic recordset Bel Air MD
- QueryDef - a complete implementation of a dynamic recordset Beltsville MD
- QueryDef - a complete implementation of a dynamic recordset Bethesda MD
- QueryDef - a complete implementation of a dynamic recordset Bowie MD
- QueryDef - a complete implementation of a dynamic recordset Brooklyn MD
- QueryDef - a complete implementation of a dynamic recordset Capitol Heights MD
- QueryDef - a complete implementation of a dynamic recordset Catonsville MD
- QueryDef - a complete implementation of a dynamic recordset Chevy Chase MD
- QueryDef - a complete implementation of a dynamic recordset Clinton MD
- QueryDef - a complete implementation of a dynamic recordset Cockeysville MD
- QueryDef - a complete implementation of a dynamic recordset College Park MD
- QueryDef - a complete implementation of a dynamic recordset Columbia MD
- QueryDef - a complete implementation of a dynamic recordset Crofton MD
- QueryDef - a complete implementation of a dynamic recordset Cumberland MD
- QueryDef - a complete implementation of a dynamic recordset Derwood MD
- QueryDef - a complete implementation of a dynamic recordset District Heights MD
- QueryDef - a complete implementation of a dynamic recordset Dundalk MD
- QueryDef - a complete implementation of a dynamic recordset Edgewood MD
- QueryDef - a complete implementation of a dynamic recordset Elkridge MD
- QueryDef - a complete implementation of a dynamic recordset Elkton MD
- QueryDef - a complete implementation of a dynamic recordset Ellicott City MD
- QueryDef - a complete implementation of a dynamic recordset Essex MD
- QueryDef - a complete implementation of a dynamic recordset Forest Hill MD
- QueryDef - a complete implementation of a dynamic recordset Fort Washington MD
- QueryDef - a complete implementation of a dynamic recordset Frederick MD
- QueryDef - a complete implementation of a dynamic recordset Frostburg MD
- QueryDef - a complete implementation of a dynamic recordset Gaithersburg MD
- QueryDef - a complete implementation of a dynamic recordset Germantown MD
- QueryDef - a complete implementation of a dynamic recordset Glen Burnie MD
- QueryDef - a complete implementation of a dynamic recordset Greenbelt MD
- QueryDef - a complete implementation of a dynamic recordset Gwynn Oak MD
- QueryDef - a complete implementation of a dynamic recordset Hagerstown MD
- QueryDef - a complete implementation of a dynamic recordset Halethorpe MD
- QueryDef - a complete implementation of a dynamic recordset Havre De Grace MD
- QueryDef - a complete implementation of a dynamic recordset Hyattsville MD
- QueryDef - a complete implementation of a dynamic recordset Jessup MD
- QueryDef - a complete implementation of a dynamic recordset Joppa MD
- QueryDef - a complete implementation of a dynamic recordset Kensington MD
- QueryDef - a complete implementation of a dynamic recordset La Plata MD
- QueryDef - a complete implementation of a dynamic recordset Lanham MD
- QueryDef - a complete implementation of a dynamic recordset Laurel MD
- QueryDef - a complete implementation of a dynamic recordset Lexington Park MD
- QueryDef - a complete implementation of a dynamic recordset Lusby MD
- QueryDef - a complete implementation of a dynamic recordset Lutherville Timonium MD
- QueryDef - a complete implementation of a dynamic recordset Middle River MD
- QueryDef - a complete implementation of a dynamic recordset Millersville MD
- QueryDef - a complete implementation of a dynamic recordset Montgomery Village MD
- QueryDef - a complete implementation of a dynamic recordset Mount Airy MD
- QueryDef - a complete implementation of a dynamic recordset Nottingham MD
- QueryDef - a complete implementation of a dynamic recordset Odenton MD
- QueryDef - a complete implementation of a dynamic recordset Olney MD
- QueryDef - a complete implementation of a dynamic recordset Owings Mills MD
- QueryDef - a complete implementation of a dynamic recordset Oxon Hill MD
- QueryDef - a complete implementation of a dynamic recordset Parkville MD
- QueryDef - a complete implementation of a dynamic recordset Pasadena MD
- QueryDef - a complete implementation of a dynamic recordset Pikesville MD
- QueryDef - a complete implementation of a dynamic recordset Potomac MD
- QueryDef - a complete implementation of a dynamic recordset Randallstown MD
- QueryDef - a complete implementation of a dynamic recordset Reisterstown MD
- QueryDef - a complete implementation of a dynamic recordset Rockville MD
- QueryDef - a complete implementation of a dynamic recordset Rosedale MD
- QueryDef - a complete implementation of a dynamic recordset Salisbury MD
- QueryDef - a complete implementation of a dynamic recordset Severn MD
- QueryDef - a complete implementation of a dynamic recordset Severna Park MD
- QueryDef - a complete implementation of a dynamic recordset Silver Spring MD
- QueryDef - a complete implementation of a dynamic recordset Suitland MD
- QueryDef - a complete implementation of a dynamic recordset Sykesville MD
- QueryDef - a complete implementation of a dynamic recordset Takoma Park MD
- QueryDef - a complete implementation of a dynamic recordset Temple Hills MD
- QueryDef - a complete implementation of a dynamic recordset Towson MD
- QueryDef - a complete implementation of a dynamic recordset Upper Marlboro MD
- QueryDef - a complete implementation of a dynamic recordset Waldorf MD
- QueryDef - a complete implementation of a dynamic recordset Westminster MD
- QueryDef - a complete implementation of a dynamic recordset Windsor Mill MD
Related Local Events
National Facilities Management & Technology (NFMT)
Dates: 3/16/2010 - 3/28/2010
Location: Baltimore Convention Center
Baltimore, MD
View Details

CSI 2009: The Next Phase In Security
Dates: 10/24/2009 - 10/30/2009
Location: Gaylord National Resort and Convention Center
National Harbor, MD
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML