Solved

SQL Server Remote Connection Problem

Posted on 2011-09-12
6
264 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:sqlservr
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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 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