using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Reflection;
using System.Configuration.Install;
using System.Collections;
using System.Management;
namespace DLL
{
public class CreatSQL
{
//成員定義
private System.Data.SqlClient.SqlConnection sqlConn=new SqlConnection();
private System.Data.SqlClient.SqlCommand Command=new SqlCommand();
private string _ServerName = ".";
private string _dbname = "";
private string _userid = "sa";
private string _pwd = "sa";
private string _sqlfile = "dbsql.sql";
//屬性定義
//服務器名稱
public string ServerName
{
set { _ServerName = value; }
get { return _ServerName; }
}
//數(shù)據(jù)庫名稱
public string dbname
{
set { _dbname = value; }
get { return _dbname; }
}
//用戶名
public string userid
{
set { _userid = value; }
get { return _userid; }
}
//密碼
public string pwd
{
set { _pwd = value; }
get { return _pwd; }
}
//sql腳本文件名
public string sqlfile
{
set { _sqlfile = value; }
get { return _sqlfile; }