connection string

Discussion in 'ASP .Net Datagrid Control' started by anonymous, Apr 20, 2005.

  1. anonymous

    anonymous Guest

    I have the followng string in my web.config file.
    <add key="DBConnInfo" value="Data Source=SQL01;Initial
    Catalog=DatabaseName;Trusted_Connection=No;Persist
    Security Info=True;User id=sa;password=password;" />
    Where I am passing a user id to be connected to a sql db.
    Instead of passing a user I would like to get current user
    windows id pass to the string.How do I do this?
     
    anonymous, Apr 20, 2005
    #1
    1. Advertising

  2. anonymous

    Brock Allen Guest

    "server=foo;database=bar;trusted_connection=true;"

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen



    > I have the followng string in my web.config file.
    > <add key="DBConnInfo" value="Data Source=SQL01;Initial
    > Catalog=DatabaseName;Trusted_Connection=No;Persist
    > Security Info=True;User id=sa;password=password;" />
    > Where I am passing a user id to be connected to a sql db.
    > Instead of passing a user I would like to get current user
    > windows id pass to the string.How do I do this?
     
    Brock Allen, Apr 20, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gaurav
    Replies:
    0
    Views:
    16,201
    Gaurav
    Nov 7, 2003
  2. =?Utf-8?B?TWlrZSBNb29yZQ==?=

    Connection String object Convert to String Variable Type

    =?Utf-8?B?TWlrZSBNb29yZQ==?=, Oct 26, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,089
    Norman Yuan
    Oct 26, 2004
  3. Mythran
    Replies:
    5
    Views:
    5,001
    Mythran
    Oct 5, 2005
  4. Replies:
    3
    Views:
    864
    Samuel R. Neff
    Aug 3, 2007
  5. Wei  Lu
    Replies:
    2
    Views:
    6,019
    Wei Lu
    Feb 16, 2009
Loading...

Share This Page