SQL Server 登录禁用 Windows 身份验证 [英] SQL Server Login Disable windows authentication

查看:256
本文介绍了SQL Server 登录禁用 Windows 身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据库文件名是crystal.mdf,我尝试在此链接的帮助下添加登录VB.net 和 SQL Server 2005 为独立应用设置数据库密码

my database filename is crystal.mdf, I tried adding logins with the help from this link VB.net and SQL Server 2005 Setting up Database password for standalone app

我可以使用密码和用户名使用 sql server 身份验证登录.

I can login using sql server authentication using a password and username.

问题是,我可以使用 Windows 身份验证打开数据库.这将允许用户(如果用户是技术人员并且想要挖掘一些东西)更改数据库上的值,这可能会给我的应用程序带来错误..

The problem is, I CAN open the database using windows authentication. This will allow the user (if the user is a techie guy and would like to dig things up) to change the values on the database, which might give errors to my application..

出于安全目的,我不希望用户使用 Windows 身份验证打开数据库,因为我会将应用程序部署在不同的地方.

I don't want the users to open the database using windows authentication for security purposes, because I will deploy the application on a different place.

总结一下,

我想禁用 Windows 身份验证(这甚至可能吗?)如果没有,我怎样才能至少使数据库安全,用户将无法通过 Windows 身份验证打开它?

I want to disable windows authentication (is this even possible?) If not, how can I, atleast make the database secure that the user won't be able to open it via windows authentication?

编辑

来自不同论坛的回答

推荐答案

您可以通过以下方式禁用 Windows Authenticated User:安全选项卡 --> 登录名 --> 右键单击​​该登录名 ->​​ 属性 -> 状态 -> 启用/禁用 -> 点击禁用

You can disable the Windows Authenticated User by : Security Tab --> logins --> Right click on that login -> Properties -> status ->Enable/Disable -> click Disable

ALTER LOGIN [Domain\username] DISABLE

这篇关于SQL Server 登录禁用 Windows 身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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