473,473 Members | 1,951 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

TCP Provider errors in SQL Server

46 New Member
Hi,

I have a SQL Clustered instance in a hyper-v, virtualized environment. Every server (5 of them) except for one server cannot connect to the default SQL Cluster Instance via TCP/IP on port 1433 using just the name of server (i.e. SQLDEVCLUSTER) in the connection string. I keep getting the following error. It can't be the SQL Cluster since all other servers are connecting to it just fine and everything works normal. Not having a lot of luck with connections this month.

Steps I have taken to determine issue:
  • Test with telnet to the server using the IP:Port - successful
  • Test with packet Sender, send packets to the IP:Port - successful
  • Run powershell script to connect to SQL Cluster Instance using just the Servername - fails
  • Run powershell script to connect to SQL Cluster Instance using Servername:Port - successful
  • Turned off firewall completely
  • All TCP\IP protocols are enabled in SQL Config
  • Verified the port in SQL Config
  • Started, stopped, disabled, enabled SQL Browser several times
  • Verified the port is listening using netstat -an and netstat -ano

At first I thought something with the cluster was off, but 4 machines have no issues. So I have to surmise that it's that one application server. If I can't figure it out, I am blowing the server away and just building new. Any thoughts? Just wondering if there is a setting on the app server VM that I missed.


Error associated with connection failure when Powershell fails most it has to do with not being able to obtain the data for the query I posted that script below:
Exception calling "Fill" with "1" argument(s): "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that
the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - No such host is known.)"

At line:16 char:2
+ $SqlAdapter.Fill($DataSet)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SqlException




Expand|Select|Wrap|Line Numbers
  1.  $SqlServer = “SQLDEVCLUSTER”
  2.  $SqlCatalog = “MASTER”
  3.  
  4. #########-----Check connection and grab some data-------------------
  5.  $SqlQuery = “Select top 1 object_id from sys.objects"
  6.  $SqlConnection = New-Object System.Data.SqlClient.SqlConnection
  7.  $SqlConnection.ConnectionString = “Server = $SqlServer; Database = $SqlCatalog; Integrated Security = True”
  8.  $SqlCmd = New-Object System.Data.SqlClient.SqlCommand
  9.  $SqlCmd.CommandText = $SqlQuery
  10.  $SqlCmd.Connection = $SqlConnection
  11.  $SqlAdapter = New-Object System.Data.SqlClient.SqlDataAdapter
  12.  $SqlAdapter.SelectCommand = $SqlCmd
  13.  $DataSet = New-Object System.Data.DataSet
  14.  $SqlAdapter.Fill($DataSet)
  15.  $DataSet.Tables[0]
  16.  $RunDateLong = Get-Date
  17.  $RunDateShort = $RunDateLong.ToShortDateString()
  18.  
  19.  
  20.  $results = $DataSet.Tables | format-table -autosize | out-string
  21.  $body1 =”$results”
  22.  
  23.  
Oct 1 '15 #1
2 3724
Vikki McCormick
46 New Member
We rebuilt the server everything works. No solution. Something in the install must have messed up or a setting got changed.
Oct 4 '15 #2
Vikki McCormick
46 New Member
Okay as a follow up. I found the issue.

I ran c:\windows\system32\cliconfg.exe

Someone put in an incorrect alias with incorrect data. I fixed it, and it worked.

Now that is the best answer. Figuring it out! Thanks me. :)
Oct 6 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Chad Richardson | last post by:
Yes, it should be easy.... I have a single box hosing IIS and SQL Server 2000. In my ASP script I've tried using the following connection strings to attempt to connect to no avail: ...
3
by: BS | last post by:
Hello everybody We are currently writting a small app that will be delivered on an Informix DB and a Sql Server DB. We will be doing some performance check pretty soon for both databases. Is...
10
by: MVChauhan | last post by:
Hi We are planning to move over to SQL Server 2005 in near future. At the moment Website is on a seperate server then the Database. OS for both the server is Window 2003 and currently our data...
3
by: tc | last post by:
Does anyone have an example of how to connect to an SQL server and create a new database, then add a user and assign permissions? One problem is that users may be user authenticated, not Windows...
1
by: Vikram S | last post by:
Hi All, I have an ASP.NET 2.0 web application on a web server and a separate machine for SQL Server 2000 Database. I am using a Connectionstring based on Sql Authentication to connect to the...
7
by: Swagener | last post by:
The aim is to get it working on this machine so I can port everything to a Enterprise Version but can't get around this error for the last two days. Any help is much appreciated, as I am not...
4
by: Siv Hansen | last post by:
I'm currently working with a server with error reporting level 0, which is good if this was purely a production server. It's not. I have fourty students trying to learn php programming on this...
1
by: =?Utf-8?B?WmhlbmcgQ2hlbg==?= | last post by:
I have an aspnetdb database sitting in different domain with the web server. To authenticate a user and populate membership provider, WCF is used. However, I have no idea how to pass the membership...
1
by: abel009 | last post by:
i need to register a provider on a server and once registered the server has to store all the info regarding that provider in a data structure..i have a vague idea of using remoting and hash tables...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.