Solved

Cannot connect to MSSQL on TCP 1433

Posted on 2009-07-10
8
409 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
ID: 24824260
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
ID: 24824422
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
ID: 24824443
I am not sure whether sql 2005 supports OSQL, you have to use sqlcmd utility
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 7

Expert Comment

by:wilje
ID: 24824763
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
 
LVL 32

Author Comment

by:DrDamnit
ID: 24825292
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
ID: 24825930
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
ID: 24825937
You enable TCPIP in Surface Configuration
0
 
LVL 7

Expert Comment

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

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
convert in derived column 7 30
Sql server insert 13 31
SQL - Update field defined as Text 6 17
SQL server vNext 18 29
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
In this article I will describe the Backup & Restore 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.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

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