Solved

unique way to hide username and password in sqloledb connection string

Posted on 2014-03-21
3
394 Views
Last Modified: 2014-03-22
vba excel 2010

dbconnstring = "provider=sqloledb;Server=XXXXXXX.US.XCC.com;Database=Xdb_QA;Uid=xcx111;Pwd=sqlxxxx$;"

In a connection string like this is there a way to hide the uername and password from the user in case they get into the code ?
Thanks
fordraiders
0
Comment
Question by:fordraiders
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
COACHMAN99 earned 500 total points
ID: 39945586
better to hide/lock the code (via 'vba project properties / protection' tab)
0
 
LVL 39

Expert Comment

by:nutsch
ID: 39945713
Agreed with coachman99, or implement integrated security with your database server and setup users individually.
0
 
LVL 3

Author Closing Comment

by:fordraiders
ID: 39947042
Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question