OLEDBConnection object (Excel)
Represents the OLE DB connection.
An OLE DB connection can be stored in an Excel workbook. When Excel opens the workbook, it creates an in-memory copy of the OLE DB connection known as the OLEDBConnection object.
An OLEDBConnection object contains information related to the connection, such as the name of the server to connect to and the name of the objects to be opened on that server. Optionally, the OLEDBConnection object may also include authentication credential information, or a command that is to be passed to the server and executed (for example, a SELECT statement to be executed by SQL Server).
- 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
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.