Excel) (OLEDBConnection 物件
代表 OLE DB 連線。
註解
OLE DB 連線可以儲存在 Excel 活頁簿中。 當 Excel 開啟活頁簿時,它會建立 OLE DB 連線的記憶體內部複本,稱為 OLEDBConnection 物件。
OLEDBConnection物件包含與連線相關的資訊,例如要連接的伺服器名稱,以及要在該伺服器上開啟的物件名稱。 另外,OLEDBConnection 物件也可能包含驗證認證資訊,或是要傳遞至伺服器並執行的命令 (例如,由 SQL Server 執行的 SELECT 陳述式)。
方法
屬性
- ADOConnection
- AlwaysUseConnectionFile
- Application
- BackgroundQuery
- CalculatedMembers
- CommandText
- CommandType
- Connection
- Creator
- EnableRefresh
- IsConnected
- LocalConnection
- LocaleID
- MaintainConnection
- MaxDrillthroughRecords
- OLAP
- Parent
- RefreshDate
- Refreshing
- RefreshOnFileOpen
- RefreshPeriod
- RetrieveInOfficeUILang
- RobustConnect
- SavePassword
- ServerCredentialsMethod
- ServerFillColor
- ServerFontStyle
- ServerNumberFormat
- ServerSSOApplicationID
- ServerTextColor
- SourceConnectionFile
- SourceDataFile
- UseLocalConnection
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。