Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to protect sqlserver database from unauthorized access

How to protect sqlserver database from unauthorized access

Scheduled Pinned Locked Moved Database
csharpdatabasehelpsql-servercom
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shine_paravur
    wrote on last edited by
    #1

    Hi all Can you help me to protect sql server 2005 database from unauthorized access.I am using C#.net2005. Please help me to solve this problem Thanks in advance regards shine.paravur@gmail.com

    D A R 3 Replies Last reply
    0
    • S shine_paravur

      Hi all Can you help me to protect sql server 2005 database from unauthorized access.I am using C#.net2005. Please help me to solve this problem Thanks in advance regards shine.paravur@gmail.com

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      Create user logins and assign them appropriate roles.

      1 Reply Last reply
      0
      • S shine_paravur

        Hi all Can you help me to protect sql server 2005 database from unauthorized access.I am using C#.net2005. Please help me to solve this problem Thanks in advance regards shine.paravur@gmail.com

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        shine_paravur wrote:

        Can you help me to protect sql server 2005 database from unauthorized access.I am using C#.net2005.

        1. Use Windows Authentication mode, insted of SQL Server Authentication Mode ( As Windows Authentication Mode used ActiveDirecotry to Authenticate user) 2. As you are asking about C# too, Please Encrypt your connection String :-D

        Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

        1 Reply Last reply
        0
        • S shine_paravur

          Hi all Can you help me to protect sql server 2005 database from unauthorized access.I am using C#.net2005. Please help me to solve this problem Thanks in advance regards shine.paravur@gmail.com

          R Offline
          R Offline
          Robin_Roy
          wrote on last edited by
          #4

          There are few options here for you: Using Windows authentication to access the database. Using SQL authentication to access the database. For Windows Authentication, you need to use Active Directory User to map to your database. For SQL Authentication, you need to create a SQL User and map the appropriate Roles and map with your database. In your C# application, encrypt your connection string and use the same. Many a times in shared deployment environment, they allow on SQL Authentication only, in such a case you will have to use SQL Authentication.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups