Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am connecting to a remote SQL server have static IP .
I enabled the TCP/IP and Named pipe for MSSQLSERVER and SQLEXPRESS also.
I am using the following connection string:
"Integrated Security=False;Initial Catalog=DB1;Data Source=tcp:100.100.182.219,80;user id=user;password=user123;"

But I am unable to connect to Remote SQL Server.How to Configure Remote SQl Server Completely. Are there any solution for this.


While opening the connection I am getting the following error :<br />
A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)



What all steps are required, and where I am making the mistake?

Please reply,Thanx..
Appreciate Your reply
Thanking You
Posted

1 solution

I replied you some time back. Looks like you deleted your earlier question. Kindly avoid that. As said:

It might be surface area configuration error or sql service configuration issue. Have a look at this thread for potential reasons and resolutions: Resolving A network-related or instance-specific error occurred while establishing a connection to SQL Server[^]

If needed, See steps for setting up Surface area configuration here..

If this does not resolve your issue, have a look at these thread:
http://forums.asp.net/t/1334649.aspx[^]
SQL SERVER FIX ERROR (provider: Named Pipes [^]
Quite few possible reasons and resolutions are proposed here too.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900