How to Remove Select Grant Microsoft SQL Database Table

Microsoft SQL Server is a Relational Database Management System RDMS which includes rich built in security features. Granting and revoking specific rights can easily be achieved at every level from an entire SQL database all the way down to individual table columns. Often times it becomes necessary to change a user's rights to certain tables. Revoking rights to a single database table can easily be achieved in minutes with just basic SQL query skills.

Instructions

  1. How to Remove Select Grant Microsoft SQL Database Table

    • 1

      Open Microsoft SQL Server Management Studio.

    • 2

      Click on the "Connect" button.

    • 3

      Click on "Database Engine" in the pop-up menu.

    • 4

      Click on the "Server Name" combo box field and choose the SQL Server instance to connect to.

    • 5

      Click on the "Connect" button.

    • 6

      Click on the "+" to the left of the "Databases" folder.

    • 7

      Click on the database you with to retrieve data from.

    • 8

      Click on the "New Query" button, this will open a tab in the right window pane of the Management Studio where you can create SQL queries.

    • 9

      Enter the following SQL statement into the SQL query window replacing <table name> and <user name> with the name of your table and the user you wish to change rights for, respectively:

      REVOKE SELECT ON <table name> TO <user name>

    • 10

      Click on "Execute" to run the query and change the "Select" rights on the table.

Tips & Warnings

  • These types of queries can be reused by simply changing the table name and/or user name, it is good practice to save queries for later use.

  • Be certain that the changes made are correct as changing rights for the incorrect user will prevent them from accessing data that they may need access to.

Related Searches:

References

Resources

Comments

You May Also Like

  • Advantages of Microsoft SQL

    When coding an application, the decision to use a SQL server is a requirement for dynamic content. Microsoft SQL Server is a...

  • How to Change a MySQL Privilege Table

    Accomplish this with the three-part GRANT command from the root user. To change privileges, GRANT needs to command who has access privileges...

  • How to Copy Table Structures in Microsoft SQL 8

    SQL Server 2008 has a script generator, which copies the structures of your tables, database or stored procedures. You create a script...

  • MySQL Permissions Tutorial

    MySQL provides permissions (privileges) based on the level of operation of the user. Administrative privileges manage the operation of the server. Database...

  • How to Remove SQL Express

    Microsoft SQL Server Express is a free version of Microsoft SQL Server, a program used to host a database at a business...

  • What Is SQL Software?

    SQL Server is a relational model database server developed by Microsoft. Transact-SQL (T-SQL) and American National Standards Institute (ANSI) SQL are the...

  • How to Grant Access to a MySQL Database

    Do you have a MySQL database and need to grant access so that a new user can create, remove, update, and delete...

  • How to Open MySQL Database With MS Access

    MySQL is a popular open-source database that is used in many different applications, especially Web-based applications. You can go through a MySQL...

Related Ads

Featured