码迷,mamicode.com
首页 > 数据库 > 详细

常用数据库链接字符串

时间:2015-09-04 18:23:16      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1";

 

Provider=SQLOLEDB;DATA SOURCE=192.168.9.248\SQLEXPRESS;INITIAL CATALOG=PACKS;User ID=PACKS;Password=13977931;

 

Provider=IBMDA400;Data Source=192.168.1.239;User ID=;Password=;

 

 

Dim Cnn As New ADODB.Connection
Cnn.ConnectionString = "Provider=IBMDA400;Data Source=192.168.1.239;User ID=;Password=;"
Cnn.Open
If Cnn.State <> adStateOpen Then
    Application.StatusBar = "Database Failure..."
    Exit Sub
End If

常用数据库链接字符串

标签:

原文地址:http://www.cnblogs.com/lbnnbs/p/4782027.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!