PC Review


Reply
Thread Tools Rate Thread

ADO sql server password

 
 
Rubble
Guest
Posts: n/a
 
      13th Mar 2008

I have an ado connection set-up that pulls info from a sql server.
Everything works fine, but there is some concern about the fact that the
password for the sql server is sitting in my code. I know I can password
protect the module so most cannot access the code, but I am wondering if
there is a way to have the password show up as "*******" in my code so
someone who does get into the code cannot see the password easily.

Any ideas? I have resorted to building a text variable named Password that
is built throughout the code - Password="5" & Password at one place and then
at another spot it does Password="L" & Password until eventually I have my
full password built and saved as Password. The problem is if someone is good
enough to get into the code then I have to assume they are smart enough to
step to the connection string and hover the variable.

Any ideas would be appreciated -- also, on the locked code issue - I would
actually prefer to not password protect the code so others could make
adjustments if they want - which is another reason for wanting to encrypt the
password.

Thanks in Advance !

Jim
 
Reply With Quote
 
 
 
 
Tim Williams
Guest
Posts: n/a
 
      13th Mar 2008
From the perspective of a pure VBA solution you're out of luck. Anyone with
the know-how to unlock your password could easily view the password.
Unlocked code would be super-easy for anyone with even moderate knowledge to
view the password.

Only really secure solution would be to compile the DB access part into a
dll or similar.

Tim

"Rubble" <(E-Mail Removed)> wrote in message
news:7500DE22-BD9F-4CB6-B179-(E-Mail Removed)...
>
> I have an ado connection set-up that pulls info from a sql server.
> Everything works fine, but there is some concern about the fact that the
> password for the sql server is sitting in my code. I know I can password
> protect the module so most cannot access the code, but I am wondering if
> there is a way to have the password show up as "*******" in my code so
> someone who does get into the code cannot see the password easily.
>
> Any ideas? I have resorted to building a text variable named Password
> that
> is built throughout the code - Password="5" & Password at one place and
> then
> at another spot it does Password="L" & Password until eventually I have my
> full password built and saved as Password. The problem is if someone is
> good
> enough to get into the code then I have to assume they are smart enough to
> step to the connection string and hover the variable.
>
> Any ideas would be appreciated -- also, on the locked code issue - I would
> actually prefer to not password protect the code so others could make
> adjustments if they want - which is another reason for wanting to encrypt
> the
> password.
>
> Thanks in Advance !
>
> Jim



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prompted for password to server Herb Mann Microsoft Outlook Discussion 0 18th Dec 2008 05:13 PM
Server password =?Utf-8?B?anRoaG91c2luZw==?= Windows XP New Users 1 5th Oct 2006 09:16 AM
server password =?Utf-8?B?c2VydmVyIHBhc3N3b3Jk?= Windows XP Security 0 10th Mar 2006 05:35 AM
How do i change this connect string to support a SQL Server 2000 running on port 8832 User ID=car;Password=rat;Server=abc.def.hij;Initial Catalog=foobar i tried Server=abc.def.hij:8823 and Server=abc.def.hij;port=8823 neither of these work Daniel Microsoft Dot NET Framework 1 16th Dec 2004 09:55 PM
pop server password GDF Microsoft Outlook 0 8th Mar 2004 01:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:37 AM.