Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2017, 01:20 PM
cdoody cdoody is offline Security of Data Connection strings Windows 7 64bit Security of Data Connection strings Office 2016
Novice
Security of Data Connection strings
 
Join Date: Oct 2016
Posts: 3
cdoody is on a distinguished road
Default Security of Data Connection strings

I connect excel to external data sources (mainly sql server DBs) alot and I am looking for a way to hide/secure the data string that is used for this connection. Currently if I embed a query into the excel workbook i need to tell it the server, username and password. When a user uses the file if they are savvy they can see this connection string and acquire the username and password to the DB/Server, an obvious issue.


I am guessing it is easy to avoid this by using an external file for the connections and then lock down the external file? If that is the case does the user also need at least read access to this external file?
Hopefully I am missing a very easy solution..
Reply With Quote
  #2  
Old 09-07-2017, 02:24 PM
ArviLaanemets ArviLaanemets is offline Security of Data Connection strings Windows 8 Security of Data Connection strings Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

We use ODBC Windows Datasources to get data from SQL server to excel in our firm.

1. For SQL database the access of users is controlled through Domain User Groups - i.e. when user is logged in into Domain, and is member of allowed User Group, it has rights given to this group;
2. Excel users which must connect to some SQL database must have an ODBC Datasource defined on his/her computer. The Datasource has usually access to only one SQL Database - when the user needs the access to several databases from separate workbooks, he/she must have a separate datasource for every one of them. When some application needs access to several SQL Databases, then the user must belong to several User Groups, or his User Group must have access rights in all needed databases;
3. Excel application connects to SQL Server database through ODBC datasource. As all rights are managed in Domain and SQL server, there is no password saved in Excel;
4. Passwords for access to databases may be stored in Datasources too (p.e. in cases when access to database is for database-defined user). They are there protected too - the user cant see the password as it is masked.
Reply With Quote
Reply

Tags
external data



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with data connection sql joins wpflum Excel 0 08-03-2016 08:45 AM
Data connection from Excel to Sharepoint not working GraemeW Excel 0 01-16-2016 04:31 PM
Data Connection - auto logoff timshep Excel 0 08-02-2015 04:29 AM
Excel 2007 security alert - data connection message every time? michael.monaco Excel 0 12-20-2012 07:47 AM
Security of Data Connection strings update style of all strings available between two specific strings vikrantkale Word 1 03-28-2011 06:13 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft