This sample creates an ODBC based custom connector that enables Direct Query for SQL Server.
The code does the following:
- Declares a new data source kind (DirectSQL)
- Builds a
recordcontaining connection string properties specific to theSQL Server Native Client 11.0driver - Sets credential related connection string properties separately
- Overrides default ODBC capabilities returned by the driver
- Wraps M's built-in ODBC function -
Odbc.DataSource
Please see the comments in the code for more details.