SAMPLE: Vcspnp.exe Demonstrates Passing SQL NULL Parameters and Reading NULL Values with ADO (229088)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
This article was previously published under Q229088 SUMMARY The Vcspnp.exe sample demonstrates correct handling of SQL
NULL with Microsoft ADO using #import and Visual C++.
The sample
demonstrates sending SQL NULL parameters to a SQL Server stored procedure with
ADO. It also shows how to read SQL NULL values.
In SQL, NULL means
having no value entered or unknown, completely different than a null C string.
This sample shows how to package and send SQL NULL parameters to SQL Server
stored procedure using ADO. It also shows how to read SQL NULL values.
REFERENCES For additional information, please see the following
articles in the Microsoft Knowledge Base: 182389 FILE: Adovcbm.exe ADO 1.5 with #import and Getrows/Bookmarks
184968 FILE: Adovcsp.exe Demonstrates Using Stored Procedures with ADO
181733 FILE: Adovcbtd.exe #import Using UpdateBatch and CancelBatch
220152 FILE: Sample: ADOVC1 Simple ADO/VC++ Application
200122 SAMPLE: ATL2ADO returns disconnected recordset from COM to VB
(c) Microsoft Corporation 1999, All Rights Reserved.
Contributions by Rick Anderson, Microsoft Corporation.
Modification Type: | Minor | Last Reviewed: | 8/9/2004 |
---|
Keywords: | kbDatabase kbfile kbhowto kbSample KB229088 |
---|
|