Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 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 September 2nd, 2003, 05:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default connection string problem

I am problem with the sql server connection.
I was following connection string with sql server.

set cn=server.CreateObject("adodb.connection")
cn.ConnectionString="Provider=SQLOLEDB.1;Integrate d Security=SSPI;Persist Security Info=False;Initial Catalog=dcil;Data Source=DCIL2"
cn.Open

now it give following error


Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E4D)
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
/cather/trip.asp, line 87


Above connect I was using. But due to some problem in my computer, I have to formated the drive and re-install necessary software. When I load my site on localhost, the above connection not working.

I create New connection string with the "MS ADO DATA CONTROL VERSION 6.0 "
But it give same error.
Before foramte my hard drive above connect was working, but after formatted the drive It not working why ?
What is the problem ?

Mateen
 
Old September 2nd, 2003, 07:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

When you reinstalled IIS, did you also set up the IUSR_<server> account, the account IIS uses for anonymous access?

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com
 
Old September 3rd, 2003, 01:41 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for response.
I reinstalled IIS but I not set up the IUSR_<server> accout,
I create new PWS and move all file to new directory,
now it is working.




Quote:
quote:Originally posted by Jeff Mason
 When you reinstalled IIS, did you also set up the IUSR_<server> account, the account IIS uses for anonymous access?

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with SQL SERVER Connection String Non Linear BOOK: Beginning ASP 3.0 3 October 20th, 2005 12:35 AM
Problem with connection string Adam H-W Classic ASP Databases 3 August 12th, 2005 11:51 AM
Connection string problem neo_jakey Beginning VB 6 1 October 10th, 2004 12:24 AM
Problem with the connection string?? budman Access ASP 2 March 29th, 2004 07:12 AM
connection string aadz5 ASP.NET 1.0 and 1.1 Basics 4 October 20th, 2003 08:43 AM





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