Denying SQL Server Access to a Windows User or Group : LOGIN « User Role « SQL Server / T-SQL Tutorial

Home
SQL Server / T-SQL Tutorial
1.Query
2.Insert Delete Update
3.Table
4.Table Join
5.Data Types
6.Set Operations
7.Constraints
8.Subquery
9.Aggregate Functions
10.Date Functions
11.Math Functions
12.String Functions
13.Data Convert Functions
14.Analytical Functions
15.Sequence Indentity
16.View
17.Index
18.Cursor
19.Database
20.Transact SQL
21.Procedure Function
22.Trigger
23.Transaction
24.XML
25.System Functions
26.System Settings
27.System Tables Views
28.User Role
29.CLR
SQL Server / T-SQL Tutorial » User Role » LOGIN 
28.7.7.Denying SQL Server Access to a Windows User or Group
USE [master]
GO
DENY CONNECT SQL TO [YourID\TestUser]
GO
--To allow access again, you can use GRANT:
USE [master]
GO
GRANT CONNECT SQL TO [YourID\TestUser]
GO
28.7.LOGIN
28.7.1.Creating a SQL Server Login
28.7.2.Viewing SQL Server Logins
28.7.3.Creating a Windows Login
28.7.4.Viewing Windows Logins
28.7.5.Altering a Windows Login
28.7.6.Dropping a Windows Login
28.7.7.Denying SQL Server Access to a Windows User or Group
28.7.8.Creates a new Windows login and then maps that login to a new database user
28.7.9.Create a proxy login from the certificate
28.7.10.Create a proxy user and grant access to the schema
28.7.11.DROP LOGIN
28.7.12.Altering a SQL Server Login
28.7.13.Dropping a SQL Login
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.