SQLDriverConnect (Text File Driver)
Note
This topic provides Text File Driver-specific information. For general information about this function, see the appropriate topic under ODBC API Reference.
SQLDriverConnect enables you to connect to a driver without creating a data source (DSN).
The following keywords are supported in the connection string for all drivers: DSN, DBQ, and FIL.
The following table shows the minimum keywords required to connect to each driver, and provides an example of keyword/value pairs used with SQLDriverConnect. For a full list of DRIVERID values, see SQLConfigDataSource.
Note
If DBQ or DefaultDir is not specified for the Text driver, the driver will connect to the current directory.
Driver | Keywords required | Examples |
---|---|---|
Text | Driver | Driver={Microsoft Text Driver (*.txt;*.csv)}; DefaultDir=c:\temp |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for