Exemplo n.º 1
0
 public DB_Access()
 {
     try
     {
         conn = DB_Connect.GetConnection();
         conn.Open();
     }
     catch (System.TypeInitializationException) { }
 }
Exemplo n.º 2
0
        public DataTable getTable(string sp)
        {
            conn = DB_Connect.GetConnection();
            conn.Open();
            SqlDataAdapter _sqlda = new SqlDataAdapter(sp, conn);
            DataTable      dt     = new DataTable();

            _sqlda.Fill(dt);

            conn.Close();
            return(dt);
        }