Solved

unique way to hide username and password in sqloledb connection string

Posted on 2014-03-21
3
383 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 Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

863 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now