LAN上Cleint Mechince的C#Windows应用程序MS-Access后端连接字符串 [英] C# windows application MS-Access backend Connection string for Cleint Mechince on LAN
问题描述
大家好
我在C#MS-access后端中开发了一个小型应用程序.正在使用连接通过以下方式连接Ms-Access数据库
key ="con" value ="Provider = Microsoft.ACE.OLEDB.12.0; Data Source = D:\ MediTech \ meditech.data; Jet OLEDB:Database Password = 123456"
我在本地机器上工作良好.
但是我如何根据上述路径将Client Mechine的连接字符串写入connet数据库.
我应该为clent机械分配单独的安装程序吗?
如何从Client Mechine连接本地数据库.
请引导我
谢谢
hi all
i develop a small application in C# MS-access a backend. am using connection to connect the Ms-Access database using the following
key="con" value="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\MediTech\meditech.data;Jet OLEDB:Database Password=123456"
i work fine in Local Mechine.
But how do i write the Connection string for Client Mechine to connet database based on the above path.
should i deploy the seperate setup for clent mechine .
how to coneect the local database from Client Mechine.
Please Guide Me
thanks
推荐答案
您必须将网络驱动器映射到数据库所在的位置,或者将数据库移动到安装了应用程序的计算机上.
You have to map the network drive to where you have you database or move your database to the machine where you have your application installed.
这篇关于LAN上Cleint Mechince的C#Windows应用程序MS-Access后端连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!