| title | Connecting with SQLDriverConnect | Microsoft Docs | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||
| ms.date | 01/19/2017 | |||||||||
| ms.prod | sql | |||||||||
| ms.prod_service | connectivity | |||||||||
| ms.reviewer | ||||||||||
| ms.technology | connectivity | |||||||||
| ms.topic | conceptual | |||||||||
| helpviewer_keywords |
|
|||||||||
| ms.assetid | e46e959f-d3c5-4ddb-810a-107bfcb83fd2 | |||||||||
| author | David-Engel | |||||||||
| ms.author | v-daenge |
SQLDriverConnect is used to connect to a data source using a connection string. SQLDriverConnect is used instead of SQLConnect for the following reasons:
-
To let the application use driver-specific connection information.
-
To request that the driver prompt the user for connection information.
-
To connect without specifying a data source.
This section contains the following topics.