Trouble connecting to SQL Server with ASP !?!

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

  1. #1

    Default Re: Trouble connecting to SQL Server with ASP !?!

    somanybugssolittletimetofixthem wrote:
    > I have to write an ASP web application against a SQL server database.
    > The network guys set me up to create web pages on the server (IIS)
    > and created an ODBC connection. However, I cant connect to SQL server
    > and read any data using the System DSN. I get a generic SQL server
    > error complaining about NT authorization. Do I need to pass a SQL
    > server userid and password (I dont have one!). Is there any other SQL
    > server setup needed for web access? Have spent several days
    > struggling with this. No-one knows anything about web applications
    > with SQL server here.
    Forget about odbc. Have your SQL dba create a SQL login and use it in an
    OLEDB connection string. Examples can be found at [url]www.connectionstrings.com[/url]
    and [url]www.able-consulting.com/ado_conn.htm[/url]. Look for the examples that use the
    SQLOLEDB provider.

    This topic has been covered ad nauseam in this newsgroup, so you may want to
    use Google to find information about any future questions before posting
    (especially if you use the Google Advanced Groups Search). You'll probably
    find your answers faster than posting a question and waiting for someone to
    answer. [url]www.aspfaq.com[/url] is also a good resource. For example, here is an
    article on that site that probably deals with the error message you got:
    [url]http://www.aspfaq.com/show.asp?id=2009[/url]

    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows [MVP] Guest

  2. Similar Questions and Discussions

    1. Trouble connecting - HELP!
      I use contribute at work all the time, but have never had to install the program or create a connection the first time. I'm attempting to set it up...
    2. Trouble connecting to FMS
      We have a small test swf we are using to connect to a Flash Media Server. The swf loads in the browser just fine. Some of our PCs are able to...
    3. Trouble connecting to MySQL
      Hi, I'm using Mac OX 10.3.9, PHP Version 5.0.4, Apache Server and whatever the latest version of MySQL is. I'm trying to connect to MySQL via the...
    4. I am having trouble connecting.
      When I open contribute I get this message "you can't edit this page now because Karen (dcbcom) is currently editng it. please contact...
    5. Mac OS X trouble connecting to Linux VPN server
      On 6 Aug 2003 07:40:42 -0700, Haans (haans_leonard@yahoo.com) wrote: Do you know if PoPToP is compatible with Jaguar's VPN client? Their...
  3. #2

    Default Re: Trouble connecting to SQL Server with ASP !?!

    Ask your network guys if they set up the DSN to use "windows authentication"
    or "SQL Server Authentication". If it is "windows authentication" then the
    anonymous internet account on the web-server needs to be given access to the
    database in SQLServer Enterprise Manager.

    If it is "SQL Server Authentication" then you will need a SQLServer Logon ID
    and Password for an account that has access to the database. For use with a
    DSN the connection string would look like:
    dsn=dsn_goes_here;uid=db_account_id_here;pwd=db_ac count_pw_here

    For DSN-less connections see the other responses.

    --
    Mark Schupp
    Head of Development
    Integrity eLearning
    [url]www.ielearning.com[/url]


    "somanybugssolittletimetofixthem" <fixinbugzrus@zapembugs.com> wrote in
    message news:25CFA8DA-7FB1-4A67-80CF-1D5B740D1112@microsoft.com...
    > I have to write an ASP web application against a SQL server database. The
    network guys set me up to create web pages on the server (IIS) and created
    an ODBC connection. However, I cant connect to SQL server and read any data
    using the System DSN. I get a generic SQL server error complaining about NT
    authorization. Do I need to pass a SQL server userid and password (I dont
    have one!). Is there any other SQL server setup needed for web access? Have
    spent several days struggling with this. No-one knows anything about web
    applications with SQL server here.


    Mark Schupp 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