navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

DRW error/ server error

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> DRW error/ server error
Page: [1]
 
rrnml

 

Posts: 197
Joined: 9/20/2004
Status: offline

 
DRW error/ server error - 3/10/2005 16:54:47   
I am getting a database connection error. This is the error I get. Any ideas?

Server error: Unable to connect to a database from the web server using the connection string 'DSN=ProxyDB;DRIVER={SQL Server}'.

The following error message comes from the database driver software; it may appear in a different language depending on how the driver is configured.
-------------------------------------------------------
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

Source: Microsoft OLE DB Provider for ODBC Drivers
Number: -2147217843 (0x80040e4d)


Thanks
BeTheBall

 

Posts: 6355
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: DRW error/ server error - 3/10/2005 16:59:44   
This is a bit of a guess as I don't use SQL Server. However, I believe you need to include the username and password for the SQL server DB in the connection string.

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to rrnml)
rrnml

 

Posts: 197
Joined: 9/20/2004
Status: offline

 
RE: DRW error/ server error - 3/10/2005 17:04:19   
Unfortunately, I have tried that and I still get the same error. It looks like it's trying to logon with NT Authority and Anonymous Logon. Not sure why though.

(in reply to BeTheBall)
BeTheBall

 

Posts: 6355
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: DRW error/ server error - 3/10/2005 17:11:37   
What is your full connection string?


_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to rrnml)
rrnml

 

Posts: 197
Joined: 9/20/2004
Status: offline

 
RE: DRW error/ server error - 3/10/2005 17:13:18   
Do you mean the UID and PWD?

(in reply to BeTheBall)
BeTheBall

 

Posts: 6355
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: DRW error/ server error - 3/10/2005 17:21:17   
I mean the full connection string. You can edit the username and password if you wish. For example, one of my connection strings looks like this:

sDSN ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.Mappath("fpdb\login32774.mdb")


_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to rrnml)
rdouglass

 

Posts: 9202
From: Biddeford, ME USA
Status: offline

 
RE: DRW error/ server error - 3/11/2005 10:58:51   
quote:

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.


You will need to setup a user in your DSN for this to work. I wouldn't suggest using the "sa" or "dbo" passwords though. I use the syntax a little differently. It should look something like this:

myDSN = "DSN=ProxyDB;uid=XXXX;pwd=XXXX;database=XXXX"

Of course you need to be sure there is a DSN set up as well but if you replace those XXXX's with your stuff, I think you may have better luck. Hope it helps.


_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to BeTheBall)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: DRW error/ server error - 3/11/2005 14:20:47   
Failing that - what does your current connection string look like? (You can xxx out the login and password ;-)

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to rdouglass)
rrnml

 

Posts: 197
Joined: 9/20/2004
Status: offline

 
RE: DRW error/ server error - 3/11/2005 14:24:05   
Server error: Unable to connect to a database from the web server using the connection string 'DSN=ProxyDB;DRIVER={SQL Server};UID=XXXXXX;PWD=XXXXX'.

Has something to do with the SQL connections because all the others work(access, as400, etc..)

(in reply to Spooky)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: DRW error/ server error - 3/11/2005 14:36:27   
Have you confirmed the DSN is setup correctly on the web server?
Do you have the ability to change to a DSN'less connection?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to rrnml)
rrnml

 

Posts: 197
Joined: 9/20/2004
Status: offline

 
RE: DRW error/ server error - 3/11/2005 14:39:39   
It is set up correctly. At least I would think so. It was done by the Net Admin. I checked it myself as well. Not sure about a DSN less connection or how I would go about doing that.

(in reply to Spooky)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: DRW error/ server error - 3/11/2005 14:46:49   
It depends where the current connection is stored - inline, or in an include file.
Obviously, its easier to do if in an include.

One example :
dbConn = "DRIVER={SQL Server};SERVER=localhost;DATABASE=DatabaseName;UID=xxxxxx;PWD=xxxxxxx"

Does the server allow windows and sql authentication or just windows?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to rrnml)
rrnml

 

Posts: 197
Joined: 9/20/2004
Status: offline

 
RE: DRW error/ server error - 3/11/2005 15:04:17   
Ok not too familiar with all this so I'll let you know what I'm doing. I found the info on querying a db on your tutorials. Not sure this is where I should start though. What I am doing is creating a form to display all websites that have been viewed by employees. This query will pull info from a db on an SQL server. I want to add a search box to the form to search by keyword so the db can be searched that way as well. Am I in the right place or am I way off? If I'm way off can you help me?

(in reply to Spooky)
rdouglass

 

Posts: 9202
From: Biddeford, ME USA
Status: offline

 
RE: DRW error/ server error - 3/11/2005 15:30:00   
quote:

DRIVER={SQL Server};


Maybe I'm off base, but when I use DSN's, I never have to specify that - just the DSN name hence my earlier post. If I put that in my connection string (when using a DSN) it fails every time. Win2K3 server.

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to rrnml)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: DRW error/ server error - 3/11/2005 15:36:21   
That was for a DSN'less connection - something to try instead of the DSN which isnt working

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to rdouglass)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: DRW error/ server error - 3/11/2005 15:37:35   
So you are using Frontpage DRW for this query?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Spooky)
rrnml

 

Posts: 197
Joined: 9/20/2004
Status: offline

 
RE: DRW error/ server error - 3/11/2005 15:39:32   
Yes

(in reply to Spooky)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: DRW error/ server error - 3/11/2005 15:42:07   
Did you create the original connection by using tools > site settings > database > ?
Did it originally work - or is this the first attempt?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to rrnml)
rrnml

 

Posts: 197
Joined: 9/20/2004
Status: offline

 
RE: DRW error/ server error - 3/11/2005 15:46:54   
No I went to Insert, Database, Results and then just went from there. It never worked.

(in reply to Spooky)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: DRW error/ server error - 3/11/2005 17:42:56   
I would first create and verify the database connection using the FP tool above, jsut so FP is aware of the connection

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to rrnml)
rrnml

 

Posts: 197
Joined: 9/20/2004
Status: offline

 
RE: DRW error/ server error - 3/11/2005 17:57:48   
I tried to verify using that tool and I still get the same error. I searched the error on Microsoft.com and this is what I found. Not sure how to go about doing this though.

http://support.microsoft.com/default.aspx?scid=kb;en-us;253500

(in reply to Spooky)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: DRW error/ server error - 3/11/2005 18:15:45   
If thats the case - youll need to go back to the host as its not set up correctly it seems

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to rrnml)
rrnml

 

Posts: 197
Joined: 9/20/2004
Status: offline

 
RE: DRW error/ server error - 3/31/2005 13:39:28   
Hey Spooky sorry I never got back to this. I was out of town at a conference. Anyway I wanted to know what you meant by checking the host. Do you mean the SQL server that I am trying to connect to? Also what would I have to check?

< Message edited by rrnml -- 3/31/2005 15:43:01 >

(in reply to Spooky)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: DRW error/ server error - 3/31/2005 14:36:14   
Different hosts? Check the SQL server allows SQL authentication opposed to NT Uth only.

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to rrnml)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> DRW error/ server error
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts