具有本地数据库的应用程序将无法使用连接字符串(localDB)\ v11.0连接到其数据库? [英] Application with local database won't connect to its database using the connection string (localDB)\v11.0 ?!!

查看:254
本文介绍了具有本地数据库的应用程序将无法使用连接字符串(localDB)\ v11.0连接到其数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的桌面应用程序在某些PC上运行良好,但在使用连接字符串(localDB)\ v11.0数据库名称:ApplicationData !!

My Desktop application is running well on some pcs, but not on other desktops using the connection string (localDB)\v11.0 database name: ApplicationData !!

请帮助

Ehab,Egy.

推荐答案

Ehab_EGY,

Hi Ehab_EGY,

请提供一些代码片段,以及如何使用连接字符串实现与localDB的连接,这可以帮助我们重现您的问题?

Could you please provide some code snippet and how do you implement connect to localDB with connection string, which can help us reproduce your problem?

当无法连接数据库时会收到什么错误消息?

What error message do you get when can't connect to database?

请尝试在无法连接到数据库的PC上调试您的桌面应用程序.您可以在这些PC上创建一个新的连接,然后将新的连接字符串与旧的连接字符串进行比较,是否有任何区别.

Please try debug your Desktop application on the pcs which can't connect to the database. You can create a new connection on that pcs and then compare the new connection string with the old one, whether there has any difference.

如果上瘾,请确认该个人计算机上的数据库具有可访问性.部署应用程序时,请确保将数据库部署在可访问的位置.

In addiction, please confirm the database on that pcs have the accessibility. When you deploy your application, please make sure the database is deploy on a accessible location.

最好的问候,
Weiwei

Best Regards,
Weiwei


这篇关于具有本地数据库的应用程序将无法使用连接字符串(localDB)\ v11.0连接到其数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆