M
Mika M
Hello!
How can I get DataSource-property of the OleDbConnection correctly? I tried
to check it using Immediate Window, and got the following ...
?cn
{System.Data.OleDb.OleDbConnection}
ConnectionString:
"Provider=sqloledb;DataSource=MyComputerName;Database=MyDatabase;Integrated
Security=SSPI;Connect Timeout=30"
ConnectionTimeout: 30
Container: Nothing
Database: "MyDatabase"
DataSource: ""
Provider: "sqloledb"
ServerVersion: "08.00.0760"
Site: Nothing
State: Open
.... and trying
?cn.DataSource
.... retrieves ""
Why not 'MyComputerName' in this case?
How can I get DataSource-property of the OleDbConnection correctly? I tried
to check it using Immediate Window, and got the following ...
?cn
{System.Data.OleDb.OleDbConnection}
ConnectionString:
"Provider=sqloledb;DataSource=MyComputerName;Database=MyDatabase;Integrated
Security=SSPI;Connect Timeout=30"
ConnectionTimeout: 30
Container: Nothing
Database: "MyDatabase"
DataSource: ""
Provider: "sqloledb"
ServerVersion: "08.00.0760"
Site: Nothing
State: Open
.... and trying
?cn.DataSource
.... retrieves ""
Why not 'MyComputerName' in this case?