?
Solved

SQL Server Remote Connection Problem

Posted on 2011-09-12
6
Medium Priority
?
269 Views
Last Modified: 2012-05-12
I am running SQL Server 2008 R2 Express on a dedicated server and I'm having problems connecting to it from an ASP script on another server.

I can connect to it fine via ASP scripts on the dedicated server and via a remote copy of SQL Server 2008 MS.

The remote SQL Server 2008 MS connects using servers IP, the ASP scripts use the server name ".\sqlexpress"

If I run
TELNET IP 1433 on the dedicated server I connect fine.

If I run
TELNET IP 1433 on a remote PC I can't connect.
"Could not open connection to host, on port 1433"

I've attached screen grabs of my firewall settings.



 Firewall settings
0
Comment
Question by:benners70
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 10

Expert Comment

by:Ramesh Babu Vavilla
ID: 36521932
did u try to acces it by ip ?
0
 
LVL 4

Expert Comment

by:Ryan Weaver
ID: 36521936
I believe you need to turn on remote connections in Express: http://www.linglom.com/2009/03/28/enable-remote-connection-on-sql-server-2008-express/
0
 

Author Comment

by:benners70
ID: 36522033
sqlservr: did u try to acces it by ip ?
What do you mean? A ping gives a reply.

Fryguy: I've enable TCP/IP and SQL Server browser. I've attached a screen grab as I'm wondering if there's some kind of conflict to do with 32bit configuration. SQL Server Config SQL Server Config
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 1000 total points
ID: 36522289
please check this article to start the troubleshooting:
http://www.experts-exchange.com/A_1881.html
0
 
LVL 21

Expert Comment

by:Alpesh Patel
ID: 36522420
Please make sure exception is added in Firewall
Remote connection is enabled from Surface area
TCP/IP and pipelines are enabled.


0
 

Author Comment

by:benners70
ID: 36522519
I can now connect via telnet on a remote PC. I can also use SQLCMD on remote PC and can connect to a DB and run a query, but I still get errors using the ASP connection, see below.

[Microsoft][ODBC SQL Server Driver][DBNETLIB]Invalid connection.

Application("connectionString") = "Driver={SQL Server};IP;Database=DBNAME;Uid=USER;Pwd=PWD;"
set globalConn = Server.CreateObject("ADODB.Connection")
globalConn.connectionString = Application("connectionString")
globalConn.Open

I can connect to other SQL DBs with the code above.
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating and Managing Databases with phpMyAdmin in cPanel.
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question