Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default ADO sql server password


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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default ADO sql server password

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" wrote in message
...

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
sql server password entry during macro run Carl Irving Excel Discussion (Misc queries) 0 October 23rd 07 05:22 PM
can not locate the internet server or proxy server Tufail Excel Programming 0 September 30th 07 08:13 AM
Save active sheet as "filename" on a remote server with username and password Teddy[_3_] Excel Programming 2 May 11th 07 04:48 PM
Excel 2003 Error Cannot Locate the Internet Server or Proxy Server Seabee Excel Discussion (Misc queries) 0 November 20th 05 12:03 AM
problem updating link from Novell server to windows server #REF er Ellen Excel Discussion (Misc queries) 0 May 10th 05 09:18 PM


All times are GMT +1. The time now is 01:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"