首页上一页 1 下一页尾页 1 条记录 1/1页
C#典型模块与项目实战大全-人事管理系统SQL数据库问题
发表在C#图书答疑
2013-05-20
是否精华
是
否
版块置顶:
是
否
#region 全局变量
public static string Login_ID = ""; //定义全局变量,记录当前登录的用户编号
public static string Login_Name = ""; //定义全局变量,记录当前登录的用户名
public static string Mean_SQL = "", Mean_Table = "", Mean_Field = ""; //定义全局变量,记录“基础信息”各窗体中的表名及SQL语句
public static SqlConnection My_con; //定义一个SqlConnection类型的公共变量My_con,用于判断数据库是否连接成功
public static string M_str_sqlcon = "Data Source=mr-nxt\\xt;Database=db_PWMS;User id=sa;PWD=";
//public static string M_str_sqlcon = @"Data Source=MRDEL\SQLEXPRESS;Initial Catalog=db_PWMS;Integrated Security=True";
public static int Login_n = 0; //用户登录与重新登录的标识
public static string AllSql = "Select * from tb_Stuffbusic"; //存储职工基本信息表中的SQL语句
//public static int res = 0;
#endregion
怎样连别的服务器,例:192.168.1.4
public static string Login_ID = ""; //定义全局变量,记录当前登录的用户编号
public static string Login_Name = ""; //定义全局变量,记录当前登录的用户名
public static string Mean_SQL = "", Mean_Table = "", Mean_Field = ""; //定义全局变量,记录“基础信息”各窗体中的表名及SQL语句
public static SqlConnection My_con; //定义一个SqlConnection类型的公共变量My_con,用于判断数据库是否连接成功
public static string M_str_sqlcon = "Data Source=mr-nxt\\xt;Database=db_PWMS;User id=sa;PWD=";
//public static string M_str_sqlcon = @"Data Source=MRDEL\SQLEXPRESS;Initial Catalog=db_PWMS;Integrated Security=True";
public static int Login_n = 0; //用户登录与重新登录的标识
public static string AllSql = "Select * from tb_Stuffbusic"; //存储职工基本信息表中的SQL语句
//public static int res = 0;
#endregion
怎样连别的服务器,例:192.168.1.4