Jes Sie

Jes Sie

  • 663
  • 1.2k
  • 282k

How to create a public connection string

Dec 5 2018 10:08 PM

My friend and I are developing a web application project. The SQL server is located here in Laos while he is in the Philippines. I tried to create a connection string but it gives me a "system.componentmodel.win32exception:the wait operation timed out".

Below is my connection string:

string con = "Data Source=public ip,1433; Network Library=DBMSSOCN; Initial Catalog=MyDB; TrustServerCertificate=True; User ID=myUser; Password=myPass"; 
 
Hoping someone can assist me in this. Thanks in advance. 

Answers (7)