Sql Server Oledb Driver [work] Now
For new OLE DB development on Windows, always use MSOLEDBSQL 19 . Avoid SQLNCLI and SQLOLEDB . If you are building new applications and do not require COM specifically, consider using ODBC or modern .NET data providers instead.
// Create Data Source object IDBInitialize* pIDBInitialize = NULL; CoCreateInstance(CLSID_MSOLEDBSQL19, NULL, CLSCTX_INPROC_SERVER, IID_IDBInitialize, (void**)&pIDBInitialize); sql server oledb driver
Provider=MSOLEDBSQL19;Server=myServerName\instanceName;Database=myDatabaseName;Trusted_Connection=yes; For new OLE DB development on Windows, always