QueryDef - a complete implementation of a dynamic recordset Indiana

Sourcefiles added (RecordsetPatch.dll)

Local Companies

Bell Industries Technology Solutions Group
317-704-6000
8888 Keystone Xing
Indianapolis, IN
Peartree Software Consulting
317-257-2486
600 Holliday Ln
Indianapolis, IN
Sanyog Computer Solutions
317-579-0746
8650 Malaga DR
Indianapolis, IN
Sterling Creek Software
317-567-5060
5881 E 82nd St
Indianapolis, IN
Britannia Inc
260-482-6321
1616 Directors Row
Fort Wayne, IN
AIDEA Inc
317 842 3036 x119
8025 Castleway Dr
Indpls, IN
GT Solutions
317-844-3510
250 E 96th St
Indianapolis, IN
Professional Solutions
317-255-1944
2040 E 54th St
Indianapolis, IN
Seven Opals Software LLC
317-569-1810
1537 Sierra Spgs
Indianapolis, IN
Advanced Solutions Inc
260-432-9695
7030 Pointe Inverness Way
Fort Wayne, IN

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

AIDEA Inc

317 842 3036 x119
8025 Castleway Dr
Indpls, IN

Regional Articles
- QueryDef - a complete implementation of a dynamic recordset Anderson IN
- QueryDef - a complete implementation of a dynamic recordset Angola IN
- QueryDef - a complete implementation of a dynamic recordset Bedford IN
- QueryDef - a complete implementation of a dynamic recordset Bloomington IN
- QueryDef - a complete implementation of a dynamic recordset Brazil IN
- QueryDef - a complete implementation of a dynamic recordset Brownsburg IN
- QueryDef - a complete implementation of a dynamic recordset Carmel IN
- QueryDef - a complete implementation of a dynamic recordset Chesterton IN
- QueryDef - a complete implementation of a dynamic recordset Columbia City IN
- QueryDef - a complete implementation of a dynamic recordset Columbus IN
- QueryDef - a complete implementation of a dynamic recordset Connersville IN
- QueryDef - a complete implementation of a dynamic recordset Crawfordsville IN
- QueryDef - a complete implementation of a dynamic recordset Crown Point IN
- QueryDef - a complete implementation of a dynamic recordset Dyer IN
- QueryDef - a complete implementation of a dynamic recordset East Chicago IN
- QueryDef - a complete implementation of a dynamic recordset Elkhart IN
- QueryDef - a complete implementation of a dynamic recordset Evansville IN
- QueryDef - a complete implementation of a dynamic recordset Fishers IN
- QueryDef - a complete implementation of a dynamic recordset Fort Wayne IN
- QueryDef - a complete implementation of a dynamic recordset Franklin IN
- QueryDef - a complete implementation of a dynamic recordset Gary IN
- QueryDef - a complete implementation of a dynamic recordset Goshen IN
- QueryDef - a complete implementation of a dynamic recordset Granger IN
- QueryDef - a complete implementation of a dynamic recordset Greenfield IN
- QueryDef - a complete implementation of a dynamic recordset Greenwood IN
- QueryDef - a complete implementation of a dynamic recordset Hammond IN
- QueryDef - a complete implementation of a dynamic recordset Hobart IN
- QueryDef - a complete implementation of a dynamic recordset Huntington IN
- QueryDef - a complete implementation of a dynamic recordset Indianapolis IN
- QueryDef - a complete implementation of a dynamic recordset Jeffersonville IN
- QueryDef - a complete implementation of a dynamic recordset Kendallville IN
- QueryDef - a complete implementation of a dynamic recordset Kokomo IN
- QueryDef - a complete implementation of a dynamic recordset Lafayette IN
- QueryDef - a complete implementation of a dynamic recordset Laporte IN
- QueryDef - a complete implementation of a dynamic recordset Logansport IN
- QueryDef - a complete implementation of a dynamic recordset Marion IN
- QueryDef - a complete implementation of a dynamic recordset Martinsville IN
- QueryDef - a complete implementation of a dynamic recordset Merrillville IN
- QueryDef - a complete implementation of a dynamic recordset Michigan City IN
- QueryDef - a complete implementation of a dynamic recordset Mishawaka IN
- QueryDef - a complete implementation of a dynamic recordset Muncie IN
- QueryDef - a complete implementation of a dynamic recordset Munster IN
- QueryDef - a complete implementation of a dynamic recordset New Albany IN
- QueryDef - a complete implementation of a dynamic recordset New Castle IN
- QueryDef - a complete implementation of a dynamic recordset Newburgh IN
- QueryDef - a complete implementation of a dynamic recordset Noblesville IN
- QueryDef - a complete implementation of a dynamic recordset North Vernon IN
- QueryDef - a complete implementation of a dynamic recordset Peru IN
- QueryDef - a complete implementation of a dynamic recordset Portage IN
- QueryDef - a complete implementation of a dynamic recordset Richmond IN
- QueryDef - a complete implementation of a dynamic recordset Schererville IN
- QueryDef - a complete implementation of a dynamic recordset Seymour IN
- QueryDef - a complete implementation of a dynamic recordset Shelbyville IN
- QueryDef - a complete implementation of a dynamic recordset South Bend IN
- QueryDef - a complete implementation of a dynamic recordset Terre Haute IN
- QueryDef - a complete implementation of a dynamic recordset Valparaiso IN
- QueryDef - a complete implementation of a dynamic recordset Vincennes IN
- QueryDef - a complete implementation of a dynamic recordset Wabash IN
- QueryDef - a complete implementation of a dynamic recordset Warsaw IN
- QueryDef - a complete implementation of a dynamic recordset West Lafayette IN
- QueryDef - a complete implementation of a dynamic recordset Zionsville IN

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