Share via


ODBCConnection.SourceDataFile Property

Returns or sets a String indicating the source data file for an ODBC 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 ODBCConnection
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.

See Also

Reference

ODBCConnection Interface

ODBCConnection Members

Microsoft.Office.Interop.Excel Namespace