我面临问题
“[DBNETLIB][ConnectionOpen(无效实例())。]无效连接。”
在使用 OLDDBConnection 时。下面的代码我正在使用
Dim objConn As OleDbConnection = New OleDbConnection("Provider=sqloledb;Data Source=IPADDRESS;Initial Catalog=EMS;User Id=****;Password=****;")
Dim objDS As DataSet = New DataSet()
Dim objCmdSelect As OleDbCommand = New OleDbCommand("select top 10 from EL_SERVER", objConn)
Dim objAdapter1 As OleDbDataAdapter = New OleDbDataAdapter()
objAdapter1.SelectCommand = objCmdSelect
objAdapter1.Fill(objDS)