//打开数据库连接
SqlConnection conn = new SqlConnection("server=FL-PC; uid=sa; pwd=sql");
if (conn.State != ConnectionState.Open)
{
}
string sql = "CREATE DATABASE AOS_Finance_AuditProjectId_000 on primary" + "(name=AOS_Finance_AuditProjectId_000,filename='F:\\AOS_Finance_AuditProjectId_000.mdf',size=3, maxsize=5,filegrowth=10%)";
sql += "log on" + "(name=AOS_Finance_AuditProjectId_000_log,filename='F:\\AOS_Finance_AuditProjectId_000_log.ldf',size=3,filegrowth=1)";
SqlCommand cmd = new SqlCommand(sql, conn);
try
{
}
catch (SqlException ae)
{
}
联系客服