Results 1 to 3 of 3

Thread: tables protect in sqlserver 2000

  1. #1
    Join Date
    Jul 2003
    Posts
    1

    tables protect in sqlserver 2000

    I have some tables in the employee database, this database created from sql sever 2000. I build a employee management application by C# and sqlserver 2000.

    My goal is after design complete the empployee database by sqlserver 2000, any users can not modify my tables and unkonw table's structure.
    help me please

    thanks and reagards

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    I am assuming by modification you mean structural modification not data modification.

    Give the application user read write privilege only on the database.

    There are fixed role called db_datareader and db_datawriter that you can use.

  3. #3
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    If you dont want to give access to certain employees then you can maintain a separate login table and control the access from c# by selecting that login table.

    or

    if you just dont want to allow users to do structure changes then follow Skhanal's advise.

    or

    If you dont want certain employess to access anything on your database either deny access or dont add their logins as users.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •