Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Remote connections problem

Author  Topic 

robbieleo
Starting Member

3 Posts

Posted - 2011-06-24 : 15:59:22
Hello all

I am in the process of moving a classic ASP application from win server 2003 / IIS6 / SQL 2000 to Winserver 2008 / IIS7 / SQL 2005 Express and have not been able to get remote connections to work.

Local connections are OK.

I have followed the instructions here:
http://support.microsoft.com/kb/914277

I have verified that port 1433 is open using canyouseeme.org

I don't know which other ports to check (eg for the sql server browser service ?)

I have tried connecting remotely using
1. ODBC client
2. SQL Server 2000 Query Analyzer
3. ASP application which works with existing SQL Server 2000 DB and a copy of the same code also works locally on the machine in question. The connection string is:
Provider=SQLOLEDB; Data Source=aaa.bbb.ccc\SQLEXPRESS;UID=abc; PWD=def; Initial Catalog=dbname;"

[note, on the local machine the only change to the code is that the ip address is replaced by "localhost" and this works fine.

The error generated is:

Microsoft OLE DB Provider for SQL Server error '80004005'

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

/LM/W3SVC/1/Root/blah/blah.asa, line 32

The only other thing i have wondered about is that the server is currently not licensed /activated - we are changing ISPs to a cloud service where the provider has given us a trial account which will be licensed/activated once we "go live" with them. Could this be the problem with remote connections ?

Any other suggestions/ideas/comments ?

Thanks in advance
RL

robbieleo
Starting Member

3 Posts

Posted - 2011-06-26 : 04:44:35
This problem is resolved now, by adding ,1433 to the connection string/server name

Go to Top of Page
   

- Advertisement -