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. General Programming
  3. C#
  4. hiding tables in ms sql

hiding tables in ms sql

Scheduled Pinned Locked Moved C#
csharpdatabasetutorial
6 Posts 3 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.
  • I Offline
    I Offline
    Ice_Freez05
    wrote on last edited by
    #1

    good day to everyone. i just want to know how to hide tables in ms sql using c# codes. because, i want to hide the tables so that no one will be able to edit or even delete the tables i've created.thank you very much in advance...

    L 1 Reply Last reply
    0
    • I Ice_Freez05

      good day to everyone. i just want to know how to hide tables in ms sql using c# codes. because, i want to hide the tables so that no one will be able to edit or even delete the tables i've created.thank you very much in advance...

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      accessing a database can be restricted using usernames and passwords. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      Getting an article published on CodeProject should be easier and faster for Bronze and Silver authors.


      I 1 Reply Last reply
      0
      • L Luc Pattyn

        accessing a database can be restricted using usernames and passwords. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        Getting an article published on CodeProject should be easier and faster for Bronze and Silver authors.


        I Offline
        I Offline
        Ice_Freez05
        wrote on last edited by
        #3

        thanks for the reply...but is there a way to hide the tables just for add-up securty?thanks again...

        L 1 Reply Last reply
        0
        • I Ice_Freez05

          thanks for the reply...but is there a way to hide the tables just for add-up securty?thanks again...

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          I don't think so, and I don't see a need. Create your app with the functionality you want, and no more; give it a connection string that provides access to the database; and store that connectionstring in a settings file, outside the app, but encrypted, so the world can't use it, only your app can. :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


          Getting an article published on CodeProject should be easier and faster for Bronze and Silver authors.


          I 1 Reply Last reply
          0
          • L Luc Pattyn

            I don't think so, and I don't see a need. Create your app with the functionality you want, and no more; give it a connection string that provides access to the database; and store that connectionstring in a settings file, outside the app, but encrypted, so the world can't use it, only your app can. :)

            Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


            Getting an article published on CodeProject should be easier and faster for Bronze and Silver authors.


            I Offline
            I Offline
            Ice_Freez05
            wrote on last edited by
            #5

            thank you again for the reply...i'm developing a web service which accessed the registry to get some info about some app...i want to save that info to a file or database which the other users won't be able to edit nor delete anything on it or the file itself...can you give me some options for a more secured way...thanks a bunch...:)

            modified on Monday, April 5, 2010 1:31 AM

            M 1 Reply Last reply
            0
            • I Ice_Freez05

              thank you again for the reply...i'm developing a web service which accessed the registry to get some info about some app...i want to save that info to a file or database which the other users won't be able to edit nor delete anything on it or the file itself...can you give me some options for a more secured way...thanks a bunch...:)

              modified on Monday, April 5, 2010 1:31 AM

              M Offline
              M Offline
              Mirko1980
              wrote on last edited by
              #6

              Assuming your Web Service runs in IIS, give the user account executing the web service AppPool permissions to access the database table. Do non give these permission to any other user account (excpet administrative account). Doing so the access to the table will be possible only through your Web Service.

              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