Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear All, I am trying to connect to SQL Server using c# with bellow connection string
C#
Data Source=xxxx;Initial Catalog=db;Persist Security Info=True;User ID=xxx;Password=xxx;Connect Timeout=60


I also enabled remote connection in sql server (TCP/IP and Name Pipes) and i am getting bellow error:
A connection was successfully established with the server, but then an error occurred during the login process. (provider:TCP Provider, error - The specified network name is no longer available.)

any ideas why the error appears?
Posted

if the error is:
A connection was successfully established with the server, but then an error occurred during the login process.

then the combination of username/password is incorrect.
 
Share this answer
 
Comments
Abdul Rahman Hamidy 1-Mar-12 2:45am    
Thanks, I find it, ISP didn't allow port 1433 through their policy.
Thanks, I find it, ISP didn't allow port 1433 through their policy.
 
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