INFO: ????? ????? ????? ??????? ?? ????? OLE DB

?????? ????????? ?????? ?????????
???? ???????: 166083 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

??????

???? ??? ??????? ????? ????? ????? ODBC ???? ?? ????? OLE DB.

??????? ????

???? ????? ????? OLE DB ODBC ???? ????????? ?? ???? ????? OLE DB ?????? ???? OLE DB ?? ODBC. ????? OLE DB ?????? ???? ODBC ???? ??? ??????? ODBC ??? ???? ODBC ??????? ?????? ODBC API ????? ?????? ????????.

?? ???? ???? ODBC ?????? ?? ?? ????? ?????? ????? OLE DB ??? ????? ????? ???????. ?????? ???? ????????? ??????? OLE DB ??? ??????? ODBC API ?????? ???? ??? ??????? ???? ODBC ?????????. ??? ????? ??????? ??? ????? ???????, ????? ???????? ?? ????? ??????? ???? ??? ?? ???? ???? ODBC ????? ?????????.

???? ???????? ???????? ??????? ????? ????? OLE DB ???? ????? ????? ???????:
   SQLAllocEnv(&henv);

   //enable connection pooling
      SQLSetEnvAttr(
         NULL,
         SQL_ATTR_CONNECTION_POOLING,
         (SQLPOINTER)SQL_CP_ONE_PER_DRIVER,
         SQL_IS_INTEGER);

   SQLAllocConnect(henv,&hdbc);

   // connect to the OLE DB ODBC provider
         OleInitialize(NULL);
...
      hr = CoCreateInstance( CLSID_MSDASQL, NULL, CLSCTX_INPROC_SERVER,
         IID_IDBInitialize, (void **)&pIDBInit );
...
      CoUninitialize();
   //finish OLE DB stuff

     SQLFreeConnect(hdbc);
     SQLFreeEnv(henv);

   //disable connection pooling
      SQLSetEnvAttr(
         NULL,  // make process level cursor pooling
         SQL_ATTR_CONNECTION_POOLING,
         (SQLPOINTER)SQL_CP_OFF,
         SQL_IS_INTEGER);
				

???????

???? ???????: 166083 - ????? ??? ??????: 27/????/1425 - ??????: 2.0
????? ???
  • Microsoft Open Database Connectivity 3.0
  • Microsoft OLE DB 1.1
????? ??????: 
kbmt kbhowto kbprogramming KB166083 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????166083
????? ??????? ?? ????? ???? ?? ????? ???????
?? ????? ????? ?????? ???? ???? ???? ??? ??????? ??? ?? ? ?? ??? ??????? Microsoft ??? ????? ??? ??????? ????? ?????? ?????

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com