为本地网络上的sql server数据库设置对所有用户的远程访问 [英] set remote access(for all users) to sql server database on local network

查看:76
本文介绍了为本地网络上的sql server数据库设置对所有用户的远程访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的本地网络编写了一个Win应用程序,并使用代码创建了数据库,现在,当每个用户都想连接到服务器系统上的数据库时,就会发生此错误:域名/用户名登录失败". br/>
如何为我的本地网络上的所有用户设置远程访问(完全访问)?我想使用代码执行此操作.

i write a win app for the my local network and i create my database with code,now when every user wants to connect to my database that is on server system this error ocurred:the login failed by domainname/username".

how can set remote access(full access)for all the users on my local network??i want do this isue with code .

thanks in advance.

推荐答案

您的计算机上是否已安装SQL Server> ;?您正在使用的连接字符串是什么?
is the SQL server installed on your computer>? what is the connection string that you are using?


尝试使用此脚本


Try this script


EXEC sys.sp_configure N'remote access', N'1'
GO
RECONFIGURE WITH OVERRIDE
GO


服务器系统上未安装sql server,它是我的连接字符串:
no sql server installed on server system,and it''s my connection string :
ConnectionString=@"Data Source=SERVER\SQLEXPRESS;Initial Catalog=test;Integrated security=SSPI;Persist Security Info=False";  


这篇关于为本地网络上的sql server数据库设置对所有用户的远程访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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