Re: localhost SQL Server does not exist after XP SP2
From: Nicole Calinoiu (nicolec_at_somewhere.com)
Date: 08/31/04
- Next message: Hermit Dave: "Re: MailMessage Headers"
- Previous message: Hermit Dave: "Re: Mystery Variable Change"
- In reply to: Kerry Sorenson: "localhost SQL Server does not exist after XP SP2"
- Next in thread: Mark Rae: "Re: localhost SQL Server does not exist after XP SP2"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 31 Aug 2004 13:47:28 -0400
Kerry,
The Windows firewall is blocking access on ports required by SQL Server.
Try using server=(local) instead of server=localhost to see if that resolves
the problem without opening the port. Otherwise, you'll find
recommendations for the firewall configuration at
http://www.microsoft.com/sql/techinfo/administration/2000/security/winxpsp2faq.asp.
HTH,
Nicole
"Kerry Sorenson" <KerrySorenson@discussions.microsoft.com> wrote in message
news:0CC0108E-7664-432B-B99F-50E4A965BE77@microsoft.com...
>I installed Windows XP (Pro) Service Pack 2
> yesterday and now my asp.net pages give me this error when they go looking
> for data: "SQL Server does not exist or access denied."
>
> My connection string which has worked up until now is
> "server=localhost;Trusted_Connection=true;database=bwdb".
>
> My ASP pages continue to work just fine.
>
> Set oConn = Server.CreateObject("ADODB.Connection")
> oConn.Open "bwdb","sa",""
> Set Rst = oConn.Execute(sqlStmt)
>
> I tried substituting the name of my computer for 'localhost' in the
> connection string and seem to be able to circumvent the problem this way.
> I
> don't really want to replace 'localhost' everywhere with a computer name
> because I am doing prototype development and will upload all this code to
> a
> different server with a different name.
>
> Advice?
>
>
- Next message: Hermit Dave: "Re: MailMessage Headers"
- Previous message: Hermit Dave: "Re: Mystery Variable Change"
- In reply to: Kerry Sorenson: "localhost SQL Server does not exist after XP SP2"
- Next in thread: Mark Rae: "Re: localhost SQL Server does not exist after XP SP2"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|