public SqlConnection getConn() { public SqlConnection conn = new SqlConnection("server = host_name;uid = sa ;pwd =sa;database = dbName;"); conn.Open(); return conn; }