473,385 Members | 1,325 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

TCP Provider errors in SQL Server

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

✓ answered by Vikki McCormick

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. :)

2 3721
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
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.