Solved

Cannot connect to MSSQL on TCP 1433

Posted on 2009-07-10
8
406 Views
Last Modified: 2015-01-05
osql -E fails, so then I tried to do telnet localhost 1433, and that fails as well.

No firewall in place.

A piece of custom software runs on this machine and is able to access MSSQL server.

My goal is to be able to run osql to do backups from a script.

How do I fix the osql / telnet 1433 connectivity problem?

Equipment: W2k3 SBS R2 Server (non-premium), SQL Server 2005 with Management Studio Express.
0
Comment
Question by:DrDamnit
  • 2
  • 2
  • 2
  • +1
8 Comments
 
LVL 32

Author Comment

by:DrDamnit
Comment Utility
Actual SQL Server Info:
Microsoft SQL Server Management Studio Express                                    9.00.2047.00
Microsoft Data Access Components (MDAC)                                    2000.086.3959.00 (srv03_sp2_rtm.070216-1710)
Microsoft MSXML                                    2.6 3.0 4.0 6.0
Microsoft Internet Explorer                                    6.0.3790.3959
Microsoft .NET Framework                                    2.0.50727.1433
Operating System                                    5.2.3790
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
Comment Utility
Hello DrDamnit,

Whats the Authentication ? if it is mixed mode, did u try it using
OSQL -u username -p password ?

Regards,

Aneesh
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
Comment Utility
I am not sure whether sql 2005 supports OSQL, you have to use sqlcmd utility
0
 
LVL 7

Expert Comment

by:wilje
Comment Utility
If the is SQL Server 2005 Express - TCP/IP is disabled by default.  You have to go in an enable TCP/IP before you can use that protocol to connect.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 32

Author Comment

by:DrDamnit
Comment Utility
Mixed mode. Tried user / pass, no joy.
sqlcmd is giving me the same problem...probably because telnet cannot connect to it either.
wilje: Please confirm how I enable TCPIP.
0
 
LVL 18

Accepted Solution

by:
jmoss111 earned 500 total points
Comment Utility
hi Dr,

Why don't you just load up SQL Schedule from lazycoding.com and let that do your backups? It's a free scheduler and works great with SQL Express
0
 
LVL 18

Expert Comment

by:jmoss111
Comment Utility
You enable TCPIP in Surface Configuration
0
 
LVL 7

Expert Comment

by:wilje
Comment Utility
You use the surface area configuration tool - navigate to the network section and enable TCP/IP.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

744 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

13 Experts available now in Live!

Get 1:1 Help Now