conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\MyDatas.mdb;Persist Security Info=False"
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 01:06:53
conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;DataSource="+App.Path+"\MyDatas.mdb;PersistS
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\MyDatas.mdb;Persist Security Info=False"
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\MyDatas.mdb;Persist Security Info=False"
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\MyDatas.mdb;Persist Security Info=False"
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\MyDatas.mdb;Persist Security Info=False"
是将三个string字符串合并成一个字符串
然后赋值给ConnectionString
conn.connectionstring =“供应商=微软。射流为4;数据源。。=”+应用+“。路径\ mydatas。数据库;坚持安全信息=假”