OLEDB connection string help

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default OLEDB connection string help

    I'm trying to connect to a SQL Server using dsn-less
    connection string such as "PROVIDER=SQLOLEDB;DATA
    SOURCE=SQLSERVER;UID=DOMAIN\username;PWD=password; DATABASE
    =myDB" I know it works with Standard SQL Server
    authentication but is it possible to use Windows
    authentication like in the example above? It tells me
    that login failed for user.

    Any help or suggestions would be appreciated.

    Thanks,

    Gabriel
    Gabriel Guest

  2. Similar Questions and Discussions

    1. Dreamweaver ASP.NET OLEDB connection problem
      have some Dreamweaver ASP .NET OLE DB connectin problem - I have "The connection was made susessfull" message but doesn't see any table in it. Can...
    2. Replacement for OLEDB connection in MX?
      My ISP used to have Cold Fusion 5 running on their servers, allowing me to connect to databases via OLEDB connection: <CFSET...
    3. Help with OLEDB connection string
      Hi, I'm following the below example in order to create a connection to my Access database. My question is, is it possible to include the...
    4. OLEDB COnnection String to Oracle
      Does someone know the proper connection string for using OLE DB connection to an oracle server ? Jon Spartan
    5. Connection string - ODBC vs OLEDB and Unspecified Error
      This one has me stumped and I was wondering if anyone might have a solution... Using this connection string ...
  3. #2

    Default Re: OLEDB connection string help

    Gabriel wrote:
    > I'm trying to connect to a SQL Server using dsn-less
    > connection string such as "PROVIDER=SQLOLEDB;DATA
    > SOURCE=SQLSERVER;UID=DOMAIN\username;PWD=password; DATABASE
    > =myDB" I know it works with Standard SQL Server
    > authentication but is it possible to use Windows
    > authentication like in the example above? It tells me
    > that login failed for user.
    >
    > Any help or suggestions would be appreciated.
    >
    > Thanks,
    >
    > Gabriel
    [url]http://www.aspfaq.com/show.asp?id=2126[/url]

    HTH,
    Bob Barrows
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows Guest

  4. #3

    Default Re: OLEDB connection string help

    > authentication like in the example above? It tells me
    > that login failed for user.
    To use Windows Authentication, you don't specify the username and password.
    (If you can hardcode a Windows password into an ASP page, kind of defeats
    the purpose, and isn't very secure.) If you want to use Windows
    authentication, you either have to add the IUSR_WebServer account manually
    to the SQL Server machine, or else force users to authenticate and a Windows
    group (or individual users, if required) to SQL Server. For most web
    applications, it makes much more sense to use SQL Auth.


    Foo Man Chew Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139