[2.0] How to get Data Tables list only from access database?
Hello friends,
I have to develop an application which will list the access database tables along with the count of the rows in front of each table.
But How to achieve this task as I am using getOledbSchemaTable method of connection object but getting unnecessary columns on my datagrid.
Re: [2.0] How to get Data Tables list only from access database?
Dear mendrek I only want to extract the table name (Table_Name) column. I'm also facing same problem in my project as that of dsuraj. The code present in the link is not giving the expected output.
waiting for reply.
Re: [2.0] How to get Data Tables list only from access database?
If it isn't the expected output, then tell us if you're getting any error messages, what output you're getting, and what you're expecting. AND the code you're running.
Re: [2.0] How to get Data Tables list only from access database?
Good Morning Sir.
This is my code.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
namespace CountTableRows
{
public partial class RowCount : Form
{
string file;
OleDbConnection oconn;