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. Any security check to stop Importing Data from SQL tables into EXCEL

Any security check to stop Importing Data from SQL tables into EXCEL

Scheduled Pinned Locked Moved Database
databasesql-serversysadminsecurityquestion
4 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.
  • B Offline
    B Offline
    BSRK
    wrote on last edited by
    #1

    I am storing some user IDs & passwords in a table in SQL server. Users will login into various database related applications & they can update the data there. Also, they can change their respective passwords also. But anybody can goto EXCEL and from Data (Menu) -> Import External Data -> and New Database query, and get all the information into the excel sheet. Is there any method to stop this?

    S 1 Reply Last reply
    0
    • B BSRK

      I am storing some user IDs & passwords in a table in SQL server. Users will login into various database related applications & they can update the data there. Also, they can change their respective passwords also. But anybody can goto EXCEL and from Data (Menu) -> Import External Data -> and New Database query, and get all the information into the excel sheet. Is there any method to stop this?

      S Offline
      S Offline
      Steven Campbell
      wrote on last edited by
      #2

      There are good security practises that you can use to make sure that sensitive data (passwords, credit card numbers) etc are either encrypted or hashed in the database, so that a query cannot be used to view the data. See this article for an example of this technique.


      my blog

      B 1 Reply Last reply
      0
      • S Steven Campbell

        There are good security practises that you can use to make sure that sensitive data (passwords, credit card numbers) etc are either encrypted or hashed in the database, so that a query cannot be used to view the data. See this article for an example of this technique.


        my blog

        B Offline
        B Offline
        BSRK
        wrote on last edited by
        #3

        Dear Sir, Thank you very much for the answer and also a very good & useful article. Though I am happy with the suggested method, I would also like to know whether "Is there any way to stop this Importing Data in to EXCEL" Thanking You

        M 1 Reply Last reply
        0
        • B BSRK

          Dear Sir, Thank you very much for the answer and also a very good & useful article. Though I am happy with the suggested method, I would also like to know whether "Is there any way to stop this Importing Data in to EXCEL" Thanking You

          M Offline
          M Offline
          Mike Dimmick
          wrote on last edited by
          #4

          Yes. Make the users log in to SQL Server using an unprivileged login - e.g. one that is a member of the public role but not a member of dbo. This is a best practice in any case. Do your password checking in a stored procedure. Grant EXEC permission for public to the stored procedure, and deny SELECT permission to the table containing the usernames and passwords. Don't ever give out your sa password. Make it a strong one. SQL Server's security features are pretty powerful but you have to use them. Far too many applications use sa to connect to the database. Applications and users should always be limited to only seeing the data and performing the operations you specify. Stability. What an interesting concept. -- Chris Maunder

          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