Click here to Skip to main content
16,022,971 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
Dim sConn As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\english.mdb"
        Dim olecon As New OleDbConnection(sConn)
        olecon.Open()
        Dim dt As DataTable = olecon.GetSchema("tables")
        olecon.Close()
        GridView1.DataSource = dt
        GridView1.DataBind()


is giving system.data.datarowview

how to get table name from ms access database in c# and bind it in combobox
Posted
Updated 28-Sep-11 8:48am
v2

1 solution

you can try ...

it works in MS-Sql

SQL
select * from sys.tables


to get all the tables in the database ..
. but i'm not sure it works in Ms-Access
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900