SQL SERVER未连接,数据库无法从其他系统访问 [英] SQL SERVER not Connecting, Where the Database not access from other system

查看:92
本文介绍了SQL SERVER未连接,数据库无法从其他系统访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个在正在创建的系统上运行的Windows应用程序,方法是将 IP配置提供给Connection strin g。



连接字符串的位置



数据源= 192.000.00.0;数据库=员工;用户ID = 6;密码= 654321;集成安全性=真



未在另一个系统上运行我得到的错误是



登录失败登录来自不受信任的域,不能与Windows身份验证一起使用



为什么我得到这个错误,我想在SQL SERVER中进行更改请给出一些解决方案

I have created One Windows application it is running on the created system by giving the IP configuration to the Connection string.

Where the Connection String is

"Data Source=192.000.00.0;Database=Employee;User Id=six;Password=654321;Integrated Security=True"

It is not running on the another system the error i get is

login failed the login is from an untrusted domain and cannot be used with windows authentication

Why I am getting this error, where i want change in SQL SERVER Please give some Solution

推荐答案

从连接字符串中删除Integrated Security = True部分,或将其设置为false - true表示您应该使用Windows凭据登录,而不是通过用户名和密码登录。



尝试使用Server Explorer窗格在VS中设置连接:

1)Ope n服务器资源管理器。

2)右键单击数据连接并选择添加连接

3)在随后的对话框中,选择您的DataSource和数据库,指定安全信息,然后按测试连接按钮。

4)连接工作时,按确定

5)在服务器资源管理器窗格中突出显示数据库,并查看属性窗格。将显示连接字符串的工作示例,您可以将其复制并粘贴到您的应用程序或配置文件中。
Remove the "Integrated Security=True" part from your connection string, or set it to "false" - true means that you should log in using Windows credentials, not via the username and password.

Try setting up a connection in VS with the Server Explorer pane:
1) Open Server Explorer.
2) Right click "Data connections" and select "Add connection"
3) In the dialog that follows, select your DataSource, and database, specify the security info, and press the "Test connection" button.
4) When the connection works, press "OK"
5) Highlight your database in the Server Explorer pane, and look at the Properties pane. A working example of the connection string will be shown, which you can copy and paste into your app or config file.


这篇关于SQL SERVER未连接,数据库无法从其他系统访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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