Re: SQL Server does not exist or access denied.
- From: "Ed Sowell" <jag_man__REM0VE__653@xxxxxxxxxxxxx>
- Date: Thu, 23 Apr 2009 20:20:43 -0700
Armin,
Yes, I can see sqlsvr.exe in Task manager and MSSQL$VSdotNET in Services. The Pid of sqlsvr.exe is 1652.
netstat -noa shows a bunch of local local processes, but I don't see 1652.
The command args you suggest gave me the same error.
Is the firewall an issue here, in viewof the fact that it's all local?
Thanks
Ed
"Armin Zingler" <az.nospam@xxxxxxxxxx> wrote in message news:eoCPd5HxJHA.1088@xxxxxxxxxxxxxxxxxxxxxxx
Ed wrote:Still thinking about switching to a Windows machine for my hosting
service I thought I'd try to make things work locally on my XP Pro
machine using IIS. I was going to try some of the examples in the book
Building Web Services and .NET Applications by Wall and Lader. Didn't
get past first base since the provided .bat file for building the
samples (downloaded from Osborne) failed. This simple console examples
shows the problem:
E:\WebAppSamples\WallLader\Data>osql -H goliathxp -U ed -P sioux -S
MSSQL$VSdotNET
[DBNETLIB]SQL Server does not exist or access denied.
[DBNETLIB]ConnectionOpen (Connect()).
Try
osql -E ed -S goliathxp\MSSQL$VSdotNET
Dumb question first: The server is running? Look for the process ID of the server process in task manager (or in SQL server configuration manager). Then, in the command line, type:
netstat -noa
Look for a line that ends with the process ID of the server process. Do you find it? What's in the "local address" column?
I did a Google on this error and was overwhelmed by the hits. Tips at
a Microsoft site suggested many possible causes, including the server
not being able to connect with port 1443. Somewhere else I read to try
telnet to the port:
E:\WebAppSamples\WallLader\Data>telnet 1433
Connecting To 1433...Could not open connection to the host, on port
23: Connect failed
1433 is the host, not the port. Try the values you got from netstat (without the ":"), like "telnet 192.168.1.1 2169".
The question is then what to do about this. If it doesn't work at the
command line I'm sure it can't work in a VB program.
Any suggestions?
Try with deactivated firewall (if possible).
Armin
.
- Follow-Ups:
- Re: SQL Server does not exist or access denied.
- From: Armin Zingler
- Re: SQL Server does not exist or access denied.
- References:
- SQL Server does not exist or access denied.
- From: Ed
- Re: SQL Server does not exist or access denied.
- From: Armin Zingler
- SQL Server does not exist or access denied.
- Prev by Date: Newbie - book
- Next by Date: Re: show changes in Listview?
- Previous by thread: Re: SQL Server does not exist or access denied.
- Next by thread: Re: SQL Server does not exist or access denied.
- Index(es):
Relevant Pages
|