与lan上的sql express连接时出错 [英] Error in connection with sql express over lan

查看:85
本文介绍了与lan上的sql express连接时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过lan连接sql Express数据库.我的连接字符串如下.

数据源= Mr-4f04a26307ff \ sqlexpress; AttachDBFilename = F:\\ Projects \\ MyProj \\ FirstProj \\ bin \\ Debug \\ Database \\ MyDB.mdf;集成安全性= ture;用户实例= true;

但无法连接并引发此异常
用户''Mr-4f04a26307ff \ Guest''登录失败

这是什么问题,什么是解决方案.
thnx

I m trying to to connect an sql express database over lan. my connection string is as below.

Data Source=Mr-4f04a26307ff\sqlexpress; AttachDBFilename=F:\\Projects\\MyProj\\FirstProj\\bin\\Debug\\Database\\MyDB.mdf;Integrated Security=ture; User Instance=true;

but unable to connect and throw this exception
Login Failed for user ''Mr-4f04a26307ff\Guest''

What is the problem with this and what is the solution.
thnx

推荐答案

Integrated Security=ture;

值是 true 而不是 ture .那是错字吗?

您也可以尝试使用服务器资源管理器并使用向导创建连接.如果找不到连接字符串的问题,请使用生成的连接字符串.
Integrated Security=ture;

the value is true and not ture. Is that a typo?

You may also try using the server explorer and create a connection using the wizard. Use the generated connection string if you are not able to find the issue with your connection string.


这篇关于与lan上的sql express连接时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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