常用几种数据库连接字符串
生活随笔
收集整理的這篇文章主要介紹了
常用几种数据库连接字符串
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Microsoft SQL server
windows安全登陸
"Data Source=(local); Initial Catalog=Northwind; Integrated Security=True;"
SQL Server登陸
"Data Source=(local); Initial Catalog=Northwind; UserID=sa; PassWord=111111;"
?
Access
"Provider=Microsoft.jet.oledb.4.0; Data Source=d:\myDB.mdb"
?
Excel
"Provider=Microsoft.jet.oledb.4.0; Data Source=d:\myExcel.xls; Extended Properties=Excel8.0"
總結
以上是生活随笔為你收集整理的常用几种数据库连接字符串的全部內容,希望文章能夠幫你解決所遇到的問題。