Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 19th, 2005, 12:10 PM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP to SQL without a DSN

I have an asp program that calls a C program that uses db-library to connect to Sql Server 2000. The error produced is "Login failed for user '\'." Here are some of the particulars
    Web Server is running Windows Server 2003
    Database server is running SQL Server 2000 on Windows NT 4
    The program runs fine from the dos prompt on the web server.
     Other asp programs that use DSN-Less and DSN connections to
         attach to the db server work fine.
     DB-Library is set up to use a Secure Connection
     The web server is setup to use Basic authentication.

In the asp page I print out the username and domain by using WshNetwork. The username is correct; HOWEVER, the domain name is blank. I suspect that this is the source of my problem, but can not find a solution.

Is there a way to have ASP pass to SQL Server the Username, Password and domain that was used when activating the asp page?

Please help, I am about to call it a year already.
~Julie





Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect SQL Server 2k with VB from DSN and DBQ ayan.mukherjee SQL Language 0 February 12th, 2008 02:26 AM
odbc user dsn in asp.net problem with code ashu10dec ASP.NET 1.0 and 1.1 Professional 0 February 23rd, 2006 09:49 AM
Application DSN and Session DSN ssampanthar Classic ASP Databases 0 January 6th, 2005 01:23 PM
System DSN Using in ASP.net ramacvs ADO.NET 0 September 14th, 2004 02:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.