| title | ADO Code Examples in Visual C++ | Microsoft Docs | |
|---|---|---|
| ms.prod | sql | |
| ms.prod_service | connectivity | |
| ms.technology | connectivity | |
| ms.custom | ||
| ms.date | 01/19/2017 | |
| ms.reviewer | ||
| ms.topic | conceptual | |
| dev_langs |
|
|
| helpviewer_keywords |
|
|
| ms.assetid | af30b764-398f-4918-aaa7-3952226cf544 | |
| author | MightyPen | |
| ms.author | genemi |
Use the following code examples to learn how to use the ADO methods, properties, and events when writing in Microsoft Visual C++.
Note
Paste the entire code example, from beginning to end, into your code editor. The example may not run correctly if partial examples are used or if paragraph formatting is lost.
-
ActiveConnection, CommandText, CommandTimeout, CommandType, Size, and Direction Properties Example
-
ConnectionString, ConnectionTimeout, and State Properties Example
-
Description, HelpContext, HelpFile, NativeError, Number, Source, and SQLState Properties Example
ADO Code Examples in Visual Basic
ADO Code Examples VBScript
Appendix D: ADO Samples