Re: TADOConnection using mixed Authenication
- From: "rjg" <nospam_rjg@xxxxxxxxxxxxxxxxx>
- Date: Thu, 11 Aug 2005 11:34:27 -0400
I was looking at doing something along the lines of your first solution.
One issue I have is given a DSN name how do I read the configuration for
that DSN so I know if it is using Windows or SQL authenication?
"Guillem" <guillemvicens-nospam@xxxxxxxxxxxxxxxxxx> wrote in message
news:42fb0e6b@xxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> "rjg" <nospam_rjg@xxxxxxxxxxxxxxxxx> escribió en el mensaje
> news:42fa5496@xxxxxxxxxxxxxxxxxxxxxxxxx
>>I have an application that will be run on systems that have a DSN setup to
>>connect to a MSSQL 2000 server. Some of these systems use Windows
>>Authenication some use SQL authenication in the DSN setup. For systems
>>with DSNs using SQL authenication I need to prompt for username and
>> password. For systems using DSNs with Windows Authenication I want t o
>> simply connect with no login prompts.
>>
>>
>> How can I do this?
>
> i see 2 options, depending on your needs:
>
> - either you have an ADOConnection and you play with setting LoginPrompt
> and ConnectionString in run-time
>
> - or you have 2 ADOConnections, each one with different LoginPrompt and
> ConnectionString
>
> the 2nd option has the advantage that you don't get any overflow because
> of changes or 2 clients from different kind connecting at the same moment,
> but i'm not sure if 2 ADOConnections trying to connect to the same RDBMS
> coming from the same app could cause thread-safety problems. It depends on
> the structure of your app, on if they connect using the same port, etc.
> Keep in mind that ADO is generally not thread-safe.
> --
> Best regards :)
>
> Guillem Vicens
> Dep. Informática Green Service S.A.
> www.clubgreenoasis.com
> --
> in order to contact me remove the -nospam
>
.
- Follow-Ups:
- Re: TADOConnection using mixed Authenication
- From: Guillem
- Re: TADOConnection using mixed Authenication
- References:
- TADOConnection using mixed Authenication
- From: rjg
- Re: TADOConnection using mixed Authenication
- From: Guillem
- TADOConnection using mixed Authenication
- Prev by Date: Re: 'Could not convert variant of type (Null) into type (String)'.
- Next by Date: ADO ODBC problem
- Previous by thread: Re: TADOConnection using mixed Authenication
- Next by thread: Re: TADOConnection using mixed Authenication
- Index(es):
Relevant Pages
|