OLEDBConnection.SourceDataFile Property
Returns or sets a String indicating the source data file for an OLE DB connection. Read/write.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Property SourceDataFile As String
Get
Set
'Usage
Dim instance As OLEDBConnection
Dim value As String
value = instance.SourceDataFile
instance.SourceDataFile = value
string SourceDataFile { get; set; }
Property Value
Type: System.String
String
Remarks
For file-based data sources (for example, Access) the SourceDataFile property contains a fully qualified path to the source data file. It is null for server-based data sources (for example, SQL Server). The SourceDataFile property is set to null if the Connection property is changed programmatically.