473,327 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

GetOleDbSchemaTable

GetOleDbSchemaTable
________________________________________
With the code down here, I can find all the Table Names of a database in Access, but ........ I like to know also the query-names of that database.

Can anybody tell me how to do this ? ?
I can't find it.


Greetings Bas.


Try
objConnection.Open()
dbTableNames = objConnection.GetOleDbSchemaTable(System.Data.OleD b.OleDbSchemaGuid.Tables, New Object() {Nothing, Nothing, Nothing, "TABLE"})
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

objConnection.Close()
Dim TabelNaam As String
Dim nr As Int16 = 0

For Each drTabelNamen In dbTableNames.Rows
TabelNaam = drTabelNamen.Item(2).ToString
MakeTableButtons(TabelNaam, nr)
nr = nr + 1
Next

.........
.........
May 2 '06 #1
0 2495

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Siegfried Heintze | last post by:
Someone in the Access forum explained that I could retrieve metadata from Access with the DAO API. I specifically what to retrieve the comments for each column and table. I also want to retrieve...
1
by: Job Lot | last post by:
I have written 6 Queries in an Access DB, which are executed in a For Each…Next loop to populate DataSet object. A new DataTable object is created in DataSet for each query, as follows Private...
5
by: mwn | last post by:
In a C# WinApp how do I display column properties? For example, I want to display from pubs.employee all columns and properties ColumnName DataType Length Precision Scale Default Value Collation...
1
by: pete | last post by:
Hi All, I am trying to get the field desriptions from SQL Server 2000 using GetOleDbSchemaTable (see code below) Now this returns a description field to the DataTable, but the field is empty....
0
by: cosmos | last post by:
Hello, I am using Microsoft Indexing Server, and it seems that ADO.NET OLEDB Connection object doesn't support the GetOleDbSchemaTable method with MSIDXS OLE DB provider. I get the following...
6
by: Frank | last post by:
Hi, I use Dim cnn As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Test.xls;Extended Properties=""Excel 8.0;HDR=YES;""") Dim da As New OleDb.OleDbDataAdapter("Select...
9
by: Carl Fenley | last post by:
I am successfully adding stored procedures to an Access database. However, I need to be able to check if the stored procedure of the same name already exists. Is there a way to do this other...
7
by: Marcus | last post by:
I need to write a VB.Net application that will take an mdb file (Access 2000) and create corresponding copy of it in SQL Express, creating all the tables and relationships, and transferring over...
0
by: Radu | last post by:
Hi. I'm trying to read the structure of some Excel 2000 file that the user is expected to upload. The file must be an excel file (solved) and it must contain a column named "PIN". That's all. Now...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.