Solved

SQL Server Remote Connection Problem

Posted on 2011-09-12
6
258 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
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 142

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Suggested Solutions

In this article I will describe the Detach & Attach 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.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now