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. Hiding the Database

Hiding the Database

Scheduled Pinned Locked Moved Database
databasecsharpquestionlearning
6 Posts 6 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
    Satish Developer
    wrote on last edited by
    #1

    Hello, The application was developed in .NET and SQL 2005. Originally, we'd thought that it'd be a web-based application (i.e. the SQL database will be hosted by us and users can connect to it). But some clients want the database to be hosted on their computer itself. Of course the application needs the database to run, however, by putting the database on the client's machine we will lose control of our data. I cannot find an easy way that SQL provides to allow only the application to access the data, but not humans. Nothing is altered in the database--we are simply reading data from the SQL table, so should we explore other things (indexed flat files?) to make this into a software product without losing control over the data? The Database size is around 30GB.

    G. Satish

    M I L A P 5 Replies Last reply
    0
    • S Satish Developer

      Hello, The application was developed in .NET and SQL 2005. Originally, we'd thought that it'd be a web-based application (i.e. the SQL database will be hosted by us and users can connect to it). But some clients want the database to be hosted on their computer itself. Of course the application needs the database to run, however, by putting the database on the client's machine we will lose control of our data. I cannot find an easy way that SQL provides to allow only the application to access the data, but not humans. Nothing is altered in the database--we are simply reading data from the SQL table, so should we explore other things (indexed flat files?) to make this into a software product without losing control over the data? The Database size is around 30GB.

      G. Satish

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      You have a number of options - none of which is having 30gb of text files. You can manage the database access by permissions so only you can get into the database. Most DBAs discourage this as they are all control freaks. You can encrypt the data and the code (stored procs) this will probably be more acceptable and gives reasonable protection. There are probably others that I'm not conversant with.

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      • S Satish Developer

        Hello, The application was developed in .NET and SQL 2005. Originally, we'd thought that it'd be a web-based application (i.e. the SQL database will be hosted by us and users can connect to it). But some clients want the database to be hosted on their computer itself. Of course the application needs the database to run, however, by putting the database on the client's machine we will lose control of our data. I cannot find an easy way that SQL provides to allow only the application to access the data, but not humans. Nothing is altered in the database--we are simply reading data from the SQL table, so should we explore other things (indexed flat files?) to make this into a software product without losing control over the data? The Database size is around 30GB.

        G. Satish

        I Offline
        I Offline
        i j russell
        wrote on last edited by
        #3

        It is possible to make a Sql Server database readonly.

        ALTER DATABASE database-name SET READ_ONLY

        However, this can only be done once the database has been attached to the server instance.

        1 Reply Last reply
        0
        • S Satish Developer

          Hello, The application was developed in .NET and SQL 2005. Originally, we'd thought that it'd be a web-based application (i.e. the SQL database will be hosted by us and users can connect to it). But some clients want the database to be hosted on their computer itself. Of course the application needs the database to run, however, by putting the database on the client's machine we will lose control of our data. I cannot find an easy way that SQL provides to allow only the application to access the data, but not humans. Nothing is altered in the database--we are simply reading data from the SQL table, so should we explore other things (indexed flat files?) to make this into a software product without losing control over the data? The Database size is around 30GB.

          G. Satish

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Satish - Developer wrote:

          I cannot find an easy way that SQL provides to allow only the application to access the data, but not humans.

          AFAIK, there is none; your application runs under the security-restrictions of the human that started the application. This gets mapped to a SQL-Login, and that determines what securables you're allowed to see, and what not. ASP.NET has it's own Windows-identity defined; perhaps you can do something similar?

          I are Troll :suss:

          1 Reply Last reply
          0
          • S Satish Developer

            Hello, The application was developed in .NET and SQL 2005. Originally, we'd thought that it'd be a web-based application (i.e. the SQL database will be hosted by us and users can connect to it). But some clients want the database to be hosted on their computer itself. Of course the application needs the database to run, however, by putting the database on the client's machine we will lose control of our data. I cannot find an easy way that SQL provides to allow only the application to access the data, but not humans. Nothing is altered in the database--we are simply reading data from the SQL table, so should we explore other things (indexed flat files?) to make this into a software product without losing control over the data? The Database size is around 30GB.

            G. Satish

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

            Satish - Developer wrote:

            I cannot find an easy way that SQL provides to allow only the application to access the data, but not humans.

            Thats because there isn't one. The best you can do is either restrict access by using sql security (plenty of details in the help files) or encrypting your database.

            Bob Ashfield Consultants Ltd

            1 Reply Last reply
            0
            • S Satish Developer

              Hello, The application was developed in .NET and SQL 2005. Originally, we'd thought that it'd be a web-based application (i.e. the SQL database will be hosted by us and users can connect to it). But some clients want the database to be hosted on their computer itself. Of course the application needs the database to run, however, by putting the database on the client's machine we will lose control of our data. I cannot find an easy way that SQL provides to allow only the application to access the data, but not humans. Nothing is altered in the database--we are simply reading data from the SQL table, so should we explore other things (indexed flat files?) to make this into a software product without losing control over the data? The Database size is around 30GB.

              G. Satish

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #6

              Your data? What do you mean your data? :-D

              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