首页 > 代码库 > C# 数据库连接字符串拼接

C# 数据库连接字符串拼接

string connectionString = string.Format(@"Data Source={0};User ID={1};Password={2};Initial Catalog={3};Pooling=true",                                             dataSource, userID, password, databaseName);

 

C# 数据库连接字符串拼接