Provider=SQLOLEDB;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind;Data Source=hehui;Connect Timeout = 5;
Dim Conn As New Data.Oledb.OledbConnection(Str1)Try conn.Open messagebox.show("成功")
conn.CloseCatch messagebox.show("失败")End Try