Re: Sql Remote Connection issue
- From: "Lez" <lj_nospam_girvan@/noSpam\hotmail.co.uk>
- Date: Thu, 13 Aug 2009 21:22:19 +0100
Hi Guys,
Sorry to jump into this thread, but as I am having a similar problem, it might be helpful to keep to this thread.
I have gone through the steps to ensure that the SQL Database is setup to accept remote connections.
I have spoken to the server support team and they have confirmed that my firewall settings are correct:
port 1433 TCP Allow
port 1434 TCP Allow
IP Packet filtering have been updated to NO to allow access.
I can access the server via Remote Desktop and can connect to the database via the on server version of studio manager.
My Server is windows server 2008 with SQL 2005 (SQLEXPRESS)
I have tried the following and get these results
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\>osql -S tcp:MYSEVER 1433 -Uxxxx -Pxxxxxxxx
Microsoft (R) SQL Server Command Line Tool
Version 9.00.4035.00 NT INTEL X86
Copyright (c) Microsoft Corporation. All rights reserved.
Note: osql does not support all features of SQL Server 2005.
Use sqlcmd instead. See SQL Server Books Online for details.
usage: osql [-U login id] [-P password]
[-S server] [-H hostname] [-E trusted connection]
[-d use database name] [-l login timeout] [-t query timeout]
[-h headers] [-s colseparator] [-w columnwidth]
[-a packetsize] [-e echo input] [-I Enable Quoted Identifiers]
[-L list servers] [-c cmdend] [-D ODBC DSN name]
[-q "cmdline query"] [-Q "cmdline query" and exit]
[-n remove numbering] [-m errorlevel]
[-r msgs to stderr] [-V severitylevel]
[-i inputfile] [-o outputfile]
[-p print statistics] [-b On error batch abort]
[-X[1] disable commands [and exit with warning]]
[-O use Old ISQL behavior disables the following]
<EOF> batch processing
Auto console width scaling
Wide messages
default errorlevel is -1 vs 1
[-? show syntax summary]
C:\>sqlcmd -SMYSEVER, -Uxxx -Pxxxxxxx
HResult 0x57, Level 16, State 1
SQL Network Interfaces: Connection string is not valid [87].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not
allow remote connections..
Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
C:\>telnet sMYSEVER 1433
Connecting To MYSEVER...Could not open connection to the host, on port 1433: Connect failed
I have tried to view the server logs, by my version of Studio Manager does not have an option to view error logs ??
Many thanks
Lez
"Sylvain Lafontaine" <sylvainlafontaine2009@xxxxxxxx> wrote in message news:e9XvXp3GKHA.4432@xxxxxxxxxxxxxxxxxxxxxxx
Here's another suggestion: are you sure that the SQL-Server Mixed Authentication is activated and that you are using a sql-server login account, not a windows account?
--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
Independent consultant and remote programming for Access and SQL-Server (French)
"Ocean City" <OceanCity@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:B027FDF4-F608-4CD2-88A2-E39291854CB5@xxxxxxxxxxxxxxxxHi Rick,
Anymore ideas on resolving this issue.
"Rick Byham, MSFT" wrote:
Check the SQL Server error log to see if SQL Server is actually using port
1433 instead of some other port. It should have the port number somewhere
shortly after startup.
--
Rick Byham, MSFT
(Implies no warranty or rights)
"Ocean City" <Ocean City@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7A590E21-6BBF-4F60-AB52-BE4A058A8DC1@xxxxxxxxxxxxxxxx
> I'm trying to setup Sql Server 2000 to handle remote connections from > the
> web. I have setup the firewall to allow port 1433 to be redirected > back
> to
> the internal Sql Server which I know is working.
>
> To verify the connection I'm using telnet to verify communications is
> working as advertised, however when I telnet to the box I get the
> following
> error message:
>
> Connecting to 12.X.X.9....Could not open connection to the host, on > port
> 1433: Connect Failed
>
> Any ideas or solutions to the above problem would be greatly > appreciated.
>
.
- Follow-Ups:
- Re: Sql Remote Connection issue
- From: Erland Sommarskog
- Re: Sql Remote Connection issue
- References:
- Sql Remote Connection issue
- From: Ocean City
- Re: Sql Remote Connection issue
- From: Rick Byham, MSFT
- Re: Sql Remote Connection issue
- From: Ocean City
- Re: Sql Remote Connection issue
- From: Sylvain Lafontaine
- Sql Remote Connection issue
- Prev by Date: Re: connection to database
- Next by Date: Re: Sql Remote Connection issue
- Previous by thread: Re: Sql Remote Connection issue
- Next by thread: Re: Sql Remote Connection issue
- Index(es):
Relevant Pages
|