Answers for "how to create connection string programmatically c#"

C#
2

c# connection string

"ConnectionStrings": {
    "DefaultConnection": "Server=DESKTOP-V4RQQ32\\SQLEXPRESS;Database=SchoolManagementDB;Trusted_Connection=True;"
  },
Posted by: Guest on August-02-2021
0

c# connection string

using System.Data.SqlClient;

SqlConnection conn = new SqlConnection();
conn.ConnectionString =
  "Data Source=ServerName;" +
  "Initial Catalog=DataBaseName;" +
  "User id=UserName;" +
  "Password=Secret;";
conn.Open();
Posted by: Guest on March-23-2022

Code answers related to "how to create connection string programmatically c#"

C# Answers by Framework

Browse Popular Code Answers by Language