大概10秒,这是必要的时间。你还可以先ping
http://www.foxtable.com/help/topics/2709.htm
try Dim conn As ADODB.Connection conn = New ADODB.Connection conn.ConnectionString = "Provider=SQLOLEDB.1;Password=hailun.;Persist Security Info=True;User ID=sa;Initial Catalog=test;Data Source=voyo" conn.Open msgbox("成功") conn.closeCatch ex As Exception msgbox("失败")End try