[VB.NET]OLEDB.4.0连接ACCESS,怎么改成SQL SERVER数据库?

前端之家收集整理的这篇文章主要介绍了[VB.NET]OLEDB.4.0连接ACCESS,怎么改成SQL SERVER数据库?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
OLEDB.4.0连接ACCESS,怎么改成sql SERVER数据库? 连接如下 Public isclose As Boolean Public username As String Public path As String = "provider=microsoft.jet.oledb.4.0;data source= " + Application.StartupPath + "/salary.mdb " 如何改成: Public path As String = "Driver={sql Server};Database=gongzi;Server=127.0.0.1;uid=sa;pwd= " cnn.open path End Module __________________________________________________________________________ "Provider=sqloledb;Database=gongzi;Server=127.0.0.1;uid=sa;pwd= " __________________________________________________________________________ Provider=sqlOLEDB.1;Data Source=.;User ID=sa;Initial Catalog=DataBase; Password= __________________________________________________________________________ 修改是不是必须用 microsoft.jet.oledb.4.0 否则后面的都要改啊? 我可不会怎么该 __________________________________________________________________________ 自己顶下 __________________________________________________________________________ oledb 连接方式最好也改成sql __________________________________________________________________________ 原文链接:https://www.f2er.com/vb/263809.html

猜你在找的VB相关文章