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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Hide database file from user

Hide database file from user

Scheduled Pinned Locked Moved C#
databasequestionworkspace
10 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.
  • N Offline
    N Offline
    NarendraSinghJTV
    wrote on last edited by
    #1

    codeproject helped me many times and i m thankful for that. There is another question when we create setup for windows application. can we set any property to hide the application database from the user. I want to hide the mdf file from the user. thanks for all the reply in advance

    Regards Narendra Singh (Jindal Tech Ventures)

    A 1 Reply Last reply
    0
    • N NarendraSinghJTV

      codeproject helped me many times and i m thankful for that. There is another question when we create setup for windows application. can we set any property to hide the application database from the user. I want to hide the mdf file from the user. thanks for all the reply in advance

      Regards Narendra Singh (Jindal Tech Ventures)

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      No more than you can hide any other file - you could set the hidden attribute, but thats about all. Why not use encryption within your database?

      Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

      N 1 Reply Last reply
      0
      • A Ashfield

        No more than you can hide any other file - you could set the hidden attribute, but thats about all. Why not use encryption within your database?

        Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

        N Offline
        N Offline
        NarendraSinghJTV
        wrote on last edited by
        #3

        can we define the hidden property at the time of creating setup project and how can i use the encryption in database if u please define some more it will be very helpfull for me

        Regards Narendra Singh (Jindal Tech Ventures)

        S A 2 Replies Last reply
        0
        • N NarendraSinghJTV

          can we define the hidden property at the time of creating setup project and how can i use the encryption in database if u please define some more it will be very helpfull for me

          Regards Narendra Singh (Jindal Tech Ventures)

          S Offline
          S Offline
          Saksida Bojan
          wrote on last edited by
          #4

          The hidden attribute is a file atribute. It hides files from view for simple users. However more advance users uses 3rd party file manager or uses explorer setting "Show All Files". That settings shows files with Attribute: Hidden and System atribute. One whay to fool users is to use .mdf database with custom extension (something.Dat). If you realy want to prevent users from using your database, use on the fly encryption/decryption. I do not recommend to use hide attribute. You could use windows folder and put somewhere or Use custom partition and use it to store database there. The second option is not recommended, because it is too hard and too long to successfully use it.

          N 1 Reply Last reply
          0
          • N NarendraSinghJTV

            can we define the hidden property at the time of creating setup project and how can i use the encryption in database if u please define some more it will be very helpfull for me

            Regards Narendra Singh (Jindal Tech Ventures)

            A Offline
            A Offline
            Ashfield
            wrote on last edited by
            #5

            In reality there is no real way to hide the file, anyone with a bit of knowledge will ab able to find the file whatever you do. The only way to be secure is to use sql server encrytion, so just google that.

            Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

            N 1 Reply Last reply
            0
            • A Ashfield

              In reality there is no real way to hide the file, anyone with a bit of knowledge will ab able to find the file whatever you do. The only way to be secure is to use sql server encrytion, so just google that.

              Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

              N Offline
              N Offline
              NarendraSinghJTV
              wrote on last edited by
              #6

              thanks ashfield now ill try to do encryption on database can u provide me some links for startup

              Regards Narendra Singh (Jindal Tech Ventures)

              A 1 Reply Last reply
              0
              • S Saksida Bojan

                The hidden attribute is a file atribute. It hides files from view for simple users. However more advance users uses 3rd party file manager or uses explorer setting "Show All Files". That settings shows files with Attribute: Hidden and System atribute. One whay to fool users is to use .mdf database with custom extension (something.Dat). If you realy want to prevent users from using your database, use on the fly encryption/decryption. I do not recommend to use hide attribute. You could use windows folder and put somewhere or Use custom partition and use it to store database there. The second option is not recommended, because it is too hard and too long to successfully use it.

                N Offline
                N Offline
                NarendraSinghJTV
                wrote on last edited by
                #7

                thanks saksida now ill try to do encryption on database can u provide me some links for startup

                Regards Narendra Singh (Jindal Tech Ventures)

                S 1 Reply Last reply
                0
                • N NarendraSinghJTV

                  thanks ashfield now ill try to do encryption on database can u provide me some links for startup

                  Regards Narendra Singh (Jindal Tech Ventures)

                  A Offline
                  A Offline
                  Ashfield
                  wrote on last edited by
                  #8

                  Try Google. We have given you the advice, now its up to you to do it.

                  Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

                  N 1 Reply Last reply
                  0
                  • N NarendraSinghJTV

                    thanks saksida now ill try to do encryption on database can u provide me some links for startup

                    Regards Narendra Singh (Jindal Tech Ventures)

                    S Offline
                    S Offline
                    Saksida Bojan
                    wrote on last edited by
                    #9

                    Simple encrypting and decrypting data in C#[^]

                    1 Reply Last reply
                    0
                    • A Ashfield

                      Try Google. We have given you the advice, now its up to you to do it.

                      Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

                      N Offline
                      N Offline
                      NarendraSinghJTV
                      wrote on last edited by
                      #10

                      Ok thanks for your rplies

                      Regards Narendra Singh (Jindal Tech Ventures)

                      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