OLE DB Driver for SQL Server 的元件Components of OLE DB Driver for SQL Server

適用於: 是SQL Server 是Azure SQL Database 是Azure Synapse Analytics (SQL DW) 是平行處理資料倉儲 APPLIES TO: yesSQL Server yesAzure SQL Database yesAzure Synapse Analytics (SQL DW) yesParallel Data Warehouse

下載下載 OLE DB 驅動程式DownloadDownload OLE DB Driver

OLE DB Driver for SQL Server 包含下列元件:OLE DB Driver for SQL Server contains the following components:

元件Component 描述Description
msoledbsql.dllmsoledbsql.dll 動態連結程式庫 (DLL) 檔案,其中包含所有 OLE DB Driver for SQL Server 功能。The dynamic-link library (DLL) file that contains all of the OLE DB Driver for SQL Server functionality.
msoledbsqlr.rllmsoledbsqlr.rll 隨附 OLE DB Driver for SQL Server 程式庫的資源檔。The accompanying resource file for the OLE DB Driver for SQL Server library.
msoledbsql.hmsoledbsql.h OLE DB Driver for SQL Server 標頭檔,其中包含使用 OLE DB Driver for SQL Server 所需的所有新定義。The OLE DB Driver for SQL Server header file that contains all of the new definitions needed in order to use OLE DB Driver for SQL Server. 此標頭檔會取代 sqloledb.h 標頭檔。This header file replaces the sqloledb.h header file.

注意:只要先定義 sqloledb,您就可以在相同的程式中參考 msoledbsql.h 和 sqloledb.h。Note: You can reference msoledbsql.h and sqloledb.h in same program as long as sqloledb.h is defined first.
msoledbsql.libmsoledbsql.lib 直接呼叫屬於 OLE DB Driver for SQL Server 一部分的 OpenSqlFilestream 函式所需的程式庫檔案。The library file needed to directly call the OpenSqlFilestream function that is part of the OLE DB Driver for SQL Server.

注意:如果您在程式碼中參考 msoledbsql.lib 檔,必須確認 msoledbsql.dll 檔位於您的系統路徑,以及使用應用程式的使用者系統路徑。Note: If you do reference the msoledbsql.lib file in your programming code, you need to make sure that the msoledbsql.dll file is in your system path, and in the system path of the users that make use of your application.

另請參閱See Also

利用 OLE DB Driver for SQL Server 建置Building Applications with OLE DB Driver for SQL Server