此连接字符串有什么问题? [英] what is wrong with this connection string ?

查看:81
本文介绍了此连接字符串有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

myConnection = new SqlCeConnection("Data Source=ExampleDB.sdf")


error : Can''t find PInvoke DLL ''sqlceme35.dll''.

推荐答案

错误消息很明显,系统无法找到dll,请尝试重新安装软件包!

http://goo.gl/AKgzg [ ^ ]

Vallarasu S.
The error message is clear that the system unable to find a dll, try reinstalling the pack!

http://goo.gl/AKgzg[^]

Vallarasu S.


如果您想连接本地数据库和Windows身份验证,则如下图所示
If you want to connect the Local Database and Windows Authentication then as i shown below
myconnection=new SqlConnection("Data Source=''SqlServername'';Database=''Databasename'';Integrated Security=True");



如果您使用服务器数据库和SQL Server身份验证进行连接



If u connect with the server database and with SQL Server Authentication

Data Source=''IPADDRESS'';Database=''DATABASE NAME'';User=''USERNAME'';password=''PASSWORD''


这篇关于此连接字符串有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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