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

From: Mark Schupp (mschupp_at_ielearning.com)
Date: 06/25/04


Date: Fri, 25 Jun 2004 10:24:16 -0700

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_account_pw_here

For DSN-less connections see the other responses.

-- 
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"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.


Relevant Pages

  • Re: connecting to sql server from asp page
    ... In your DSN, if you include the login and password, then you are specifying ... Connectivity client application are always ignored by SQL Server ... You have two choices - either supply the uid and pwd in the connection open ... to used both Windows and Sql Server authentication. ...
    (microsoft.public.sqlserver.connect)
  • Re: Options for Accessing SQL Server without a Domain Server?
    ... SQL Server 2000 is running on machine 'A', and my client app will be ... I reconfigured the DSN on machine 'B' to use Windows Authentication. ...
    (microsoft.public.sqlserver.security)
  • Programmatically create DSN usind SQL Server Authentication
    ... I am trying to programmatically create a DSN on a target system for SQL ... Server using SQL Server Authentication. ... is off-topic for my purpose because it only shows Windows authentication. ...
    (microsoft.public.sqlserver.odbc)
  • Re: Connecting to MS SQL Express from other PC
    ... At SQL server I can give permision only as guest. ... If you use Windows authentication, ... If you use SQL Server authentication, ...
    (microsoft.public.sqlserver.connect)
  • Re: Install Microsoft SQL Server 2000 Desktop Engine
    ... wath autentication mode you choice to install? ... have two SQL Server Authentication or Windows Authentication ...
    (microsoft.public.fox.programmer.exchange)