Re: SQL connection

From: William \(Bill\) Vaughn (billvaRemoveThis_at_nwlink.com)
Date: 09/04/04


Date: Fri, 3 Sep 2004 19:16:37 -0700

Include "Trusted_Connection=Yes;" or "Integrated Security=SSPI" instead of
"UID=xx;PWD=yy;" in the ConnectionString.

-- 
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"David Hodgkins" <DavidHodgkins@discussions.microsoft.com> wrote in message 
news:1A4A8658-0B58-4E68-9493-7B4E0C6B604D@microsoft.com...
> So What would the ADO connection string be if using Windows 
> authentication?
>
> David
>
> "Andrea Montanari" wrote:
>
>> hi Leszek,
>> "Leszek Gruszka" <legrooch@poczta.onet.pl> ha scritto nel messaggio
>> news:u$6uCIYkEHA.3608@TK2MSFTNGP09.phx.gbl...
>> > I'm creating an aplication to write and read data from database.
>> > I need to use user authentication, not build-in account name and 
>> > password.
>> > I can't hold this parameters in file. What i must do? Maybe set in SQL 
>> > for
>> > SQL authentication?
>> >
>> > Sorry if it's on wrong newsgroup.
>>
>> if you use Windows (trusted) authentication, you only need to grant the
>> account (better, the winnt group the account is member of) adeguate
>> privileges both on the instance (grant login) and on the db and relative
>> objects (grant user's access)... you do not need to pass futher info at
>> application login... and you do not need to store user's information..
>> if you resort on SQL Server authentication, you have the same needs to be
>> fullfilled, grant the sql user adeguate privileges both on the instance
>> (grant login) and on the db and relative objects (grant user's access)
>> you can even not store his credentials, but you are then required to 
>> prompt
>> him for that info at application (better, at database) login...
>> it's up to your design...
>> -- 
>> Andrea Montanari (Microsoft MVP - SQL Server)
>> http://www.asql.biz/DbaMgr.shtm        http://italy.mvps.org
>> DbaMgr2k ver 0.9.1  -  DbaMgr ver 0.55.1
>> (my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
>> interface)
>> --------- remove DMO to reply
>>
>> 


Relevant Pages

  • Re: SQL connection
    ... > I need to use user authentication, not build-in account name and password. ... > SQL authentication? ... privileges both on the instance (grant login) and on the db and relative ...
    (microsoft.public.vb.database)
  • Re: SQL connection
    ... So What would the ADO connection string be if using Windows authentication? ... >> SQL authentication? ... > privileges both on the instance (grant login) and on the db and relative ...
    (microsoft.public.vb.database)
  • Re: PRIVILEGE PROBLEMS USING EXECUTE IMMEDIATE!
    ... >>> Michel Cadot ... > The permissions are a direct grant to the SCHEMA2 user. ... > SQL> grant alter,insert, update, delete, select ON TESTTAB to scott2; ... > PL/SQL procedure successfully completed. ...
    (comp.databases.oracle.server)
  • Re: all operation not work (insert delete update) / maybepermissionproblem
    ... The database server cannot find a table or view specified in the statement. ... trying to grant USAGE privileges on a user-defined type. ... Betreff: Re: all operation not work / maybe permissionproblem ... I called this command just you are told me: onstat -g sql and I got the following: ...
    (comp.databases.informix)
  • Re: a user to use only import
    ... At system user ... ligne créée. ... SQL> grant create session to batch; ...
    (comp.databases.oracle.server)