Re: Configuration of Login and password in VB6 program
- From: albertleng <albertleng@xxxxxxxxx>
- Date: Mon, 01 Oct 2007 00:55:17 -0700
Hi all. My customer has suggested to me to use Application Role's
setting in SQL Server 2005.
What i understand is that i will need to configure application role in
SQL Server 2005 which will grant different access rights based on my
program's needs. I should be okay with this part.
How about adding this part inside my code? How can i "link" my progam
with the application role i create?
Thanks.
On Sep 7, 12:54 am, Stefan Berglund <sorry.no.kool...@xxxxxx> wrote:
On Tue, 04 Sep 2007 01:13:21 -0000, albertleng <albertl...@xxxxxxxxx>
wrote:
in <1188868401.161722.170...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Dear all,
I have a VB6 project which the program needs to access SQL Server 2005
tables.
As below, the userID is QA and the password is qapl.
The user has requested that to prevent us (the designer) to know the
userID and password of the SQL server, they can configure the userID
and password for the program.
I suggest to give them the source codes to let them change themselves
but they dont want this solution.
They requested that they want a solution which they can change the
login and password of the program without touching the source code but
able to prevent the designer (me) to have idea of login and password
used. Please omit the solution which uses textfile to store the login
and password unless the user can hide those details from the
designer.
Any idea? Thanks.
With csvSQL
.Provider = "MSDASQL"
.ConnectionString = "User ID=QA;" & _
"Password=qapl;" & _
"Data Source = RD178;" & _
"Initial Catalog = RD178"
.Open
End With
Albert
I'm not sure if this is applicable but I use the following connection
string and access to the database is then controlled by SQL Server.
"Provider=sqloledb;Integrated Security=SSPI;Network
Library=DBMSSOCN;Server="
Google Windows authentication.
---
Stefan Berglund- Hide quoted text -
- Show quoted text -
.
- Follow-Ups:
- Re: Configuration of Login and password in VB6 program
- From: Steve Gerrard
- Re: Configuration of Login and password in VB6 program
- Prev by Date: Re: Ping Randy Birch?
- Next by Date: Re: Win 2K Service problem
- Previous by thread: Re: Loop without Do
- Next by thread: Re: Configuration of Login and password in VB6 program
- Index(es):
Relevant Pages
|