Answer the question
In order to leave comments, you need to log in
How to correctly specify the connection port to MS SQL Exrpess 2012?
The database server is online on the SERVER computer. I'm trying to connect like this
private string server_adress = @"SERVER\SQLEXPRESS,64256";
SqlConnectionStringBuilder scsBuilder = new SqlConnectionStringBuilder();
scsBuilder.UserID = "log";
scsBuilder.Password = "1111";
scsBuilder.DataSource = server_adress;
scsBuilder.InitialCatalog = "main_data";
scsBuilder.IntegratedSecurity = false;
con = new SqlConnection(scsBuilder.ConnectionString);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question