Hi,
Use the oledbconnection classes getoledbschematable method.
Dim strConn As String
Dim conn As OleDbConnection
strConn = "Provider = Microsoft.Jet.OLEDB.4.0;"
strConn &= "Data Source = Northwind.mdb;"
conn = New OleDbConnection(strConn)
conn.Open()
Dim dtTableNames As DataTable
dttablenames = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, _
New Object() {Nothing, Nothing, Nothing, "TABLE"})
conn.Close()
Dim dr As DataRow
For Each dr In dtTableNames.Rows
Trace.WriteLine(dr.Item("TABLE_NAME"))
Next
Ken
----------------------
"muhammad usman" <ro*****@hotmail.com> wrote in message
news:eB**************@TK2MSFTNGP15.phx.gbl...
MSysobjecst is not permiitted to access from outside.
What do i have to do to access it and get the table names
USMAN
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!