QueryDef - a complete implementation of a dynamic recordset Wisconsin

Sourcefiles added (RecordsetPatch.dll)

Local Companies

Practice Management Solutions Inc
414-352-8160
7571 N Teutonia Ave
Milwaukee, WI
KMSpecialties
414-751-4009
7434-3 Halverson Rd
Three Lakes, WI
Madison Software Inc
608-833-5410
6666 Odana Rd
Madison, WI
Gbl Software LLC
414-760-9029
6417 W Hustis St
Milwaukee, WI
HarrisData
800-225-0585
13555 Bishops Court
Brookfield, WI
codeeo
608 305 1060
1360 Regent Street #155
Madison, WI
Electroniclaim
262-240-9700
11357 N. Port Washington Rd
Mequon, WI
Gates Business Solutions
608-661-0810
2810 CrossRoads DR
Madison, WI
Image Processing Software Inc
608-233-5033
6409 Appalachian Way
Madison, WI
Access Technologies International
414-289-3121
840 N Old World 3rd St
Milwaukee, WI

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

codeeo

608 305 1060
1360 Regent Street #155
Madison, WI

Regional Articles
- QueryDef - a complete implementation of a dynamic recordset Appleton WI
- QueryDef - a complete implementation of a dynamic recordset Baraboo WI
- QueryDef - a complete implementation of a dynamic recordset Beaver Dam WI
- QueryDef - a complete implementation of a dynamic recordset Beloit WI
- QueryDef - a complete implementation of a dynamic recordset Brookfield WI
- QueryDef - a complete implementation of a dynamic recordset Burlington WI
- QueryDef - a complete implementation of a dynamic recordset Cedarburg WI
- QueryDef - a complete implementation of a dynamic recordset Chippewa Falls WI
- QueryDef - a complete implementation of a dynamic recordset Cudahy WI
- QueryDef - a complete implementation of a dynamic recordset De Pere WI
- QueryDef - a complete implementation of a dynamic recordset Delavan WI
- QueryDef - a complete implementation of a dynamic recordset Eau Claire WI
- QueryDef - a complete implementation of a dynamic recordset Elkhorn WI
- QueryDef - a complete implementation of a dynamic recordset Fond Du Lac WI
- QueryDef - a complete implementation of a dynamic recordset Fort Atkinson WI
- QueryDef - a complete implementation of a dynamic recordset Franklin WI
- QueryDef - a complete implementation of a dynamic recordset Green Bay WI
- QueryDef - a complete implementation of a dynamic recordset Hartland WI
- QueryDef - a complete implementation of a dynamic recordset Janesville WI
- QueryDef - a complete implementation of a dynamic recordset Kaukauna WI
- QueryDef - a complete implementation of a dynamic recordset Kenosha WI
- QueryDef - a complete implementation of a dynamic recordset La Crosse WI
- QueryDef - a complete implementation of a dynamic recordset Lake Geneva WI
- QueryDef - a complete implementation of a dynamic recordset Madison WI
- QueryDef - a complete implementation of a dynamic recordset Manitowoc WI
- QueryDef - a complete implementation of a dynamic recordset Marinette WI
- QueryDef - a complete implementation of a dynamic recordset Marshfield WI
- QueryDef - a complete implementation of a dynamic recordset Menasha WI
- QueryDef - a complete implementation of a dynamic recordset Menomonee Falls WI
- QueryDef - a complete implementation of a dynamic recordset Menomonie WI
- QueryDef - a complete implementation of a dynamic recordset Merrill WI
- QueryDef - a complete implementation of a dynamic recordset Middleton WI
- QueryDef - a complete implementation of a dynamic recordset Milwaukee WI
- QueryDef - a complete implementation of a dynamic recordset Mosinee WI
- QueryDef - a complete implementation of a dynamic recordset Mukwonago WI
- QueryDef - a complete implementation of a dynamic recordset Muskego WI
- QueryDef - a complete implementation of a dynamic recordset Neenah WI
- QueryDef - a complete implementation of a dynamic recordset New Berlin WI
- QueryDef - a complete implementation of a dynamic recordset Oak Creek WI
- QueryDef - a complete implementation of a dynamic recordset Oconomowoc WI
- QueryDef - a complete implementation of a dynamic recordset Onalaska WI
- QueryDef - a complete implementation of a dynamic recordset Oshkosh WI
- QueryDef - a complete implementation of a dynamic recordset Pewaukee WI
- QueryDef - a complete implementation of a dynamic recordset Racine WI
- QueryDef - a complete implementation of a dynamic recordset Rhinelander WI
- QueryDef - a complete implementation of a dynamic recordset Rice Lake WI
- QueryDef - a complete implementation of a dynamic recordset River Falls WI
- QueryDef - a complete implementation of a dynamic recordset Schofield WI
- QueryDef - a complete implementation of a dynamic recordset Shawano WI
- QueryDef - a complete implementation of a dynamic recordset Sheboygan WI
- QueryDef - a complete implementation of a dynamic recordset South Milwaukee WI
- QueryDef - a complete implementation of a dynamic recordset Stevens Point WI
- QueryDef - a complete implementation of a dynamic recordset Sturgeon Bay WI
- QueryDef - a complete implementation of a dynamic recordset Sun Prairie WI
- QueryDef - a complete implementation of a dynamic recordset Superior WI
- QueryDef - a complete implementation of a dynamic recordset Thiensville WI
- QueryDef - a complete implementation of a dynamic recordset Two Rivers WI
- QueryDef - a complete implementation of a dynamic recordset Watertown WI
- QueryDef - a complete implementation of a dynamic recordset Waukesha WI
- QueryDef - a complete implementation of a dynamic recordset Waupaca WI
- QueryDef - a complete implementation of a dynamic recordset Wausau WI
- QueryDef - a complete implementation of a dynamic recordset West Bend WI
- QueryDef - a complete implementation of a dynamic recordset Whitewater WI
- QueryDef - a complete implementation of a dynamic recordset Wisconsin Rapids WI

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