Solved

unique way to hide username and password in sqloledb connection string

Posted on 2014-03-21
3
388 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
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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

773 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