473,394 Members | 1,806 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,394 software developers and data experts.

Access Database Column metadata

RSH
I am writing an app to extract Access database schemas. The issue is that
while I have everything working, I am having trouble decyphering the
returned values with regards to the column values. Specifically the columns
have a number of items returned as metadata attributes such as column name
etc. Since I am accessing them using array notation I dont have a real
clear idea of what is being returned. i know the datatype is in the
collection but it is returned in numeric form. So in short I'm having
trouble figuring out what each item is...and how to decypher it.

Ron

objDTColumns =
objConn.GetOleDbSchemaTable(System.Data.OleDb.OleD bSchemaGuid.Columns, New
Object() {Nothing, Nothing, strTablename})

Dim RowCount As Int32

For RowCount = 0 To objDTColumns.Rows.Count - 1

'\\\\\\\\\\Display Text\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

DisplayArea.Text += "<tr bgcolor='#ffffff'>"

DisplayArea.Text += "<td>" & objDTColumns.Rows(RowCount).Item(3).ToString &
"</td>"

DisplayArea.Text += "<td>" & objDTColumns.Rows(RowCount).Item(6).ToString &
"</td>"

DisplayArea.Text += "<td>" & objDTColumns.Rows(RowCount).Item(7).ToString &
"</td>"

DisplayArea.Text += "<td>" & objDTColumns.Rows(RowCount).Item(9).ToString &
"</td>"

DisplayArea.Text += "<td>" & objDTColumns.Rows(RowCount).Item(10).ToString &
"</td>"

DisplayArea.Text += "<td>" & objDTColumns.Rows(RowCount).Item(11).ToString &
"</td>"

DisplayArea.Text += "<td>" & objDTColumns.Rows(RowCount).Item(13).ToString &
"</td>"

DisplayArea.Text += "<td>" & objDTColumns.Rows(RowCount).Item(14).ToString &
"</td>"

Next

Output:

CompanyTimeUsage
CompanyID 4 False 106 True 130 10 20
CompanyName 5 False 106 True 130 100 200
ElapsedTime 8 False 106 True 130 20 40
EndTime 7 False 122 True 7
ID 1 False 90 False 3
LastModBy 14 False 106 True 130 10 20
LastModDate 15 False 122 True 7
Modified 13 False 90 False 11 2
OfficeID 3 False 106 True 130 10 20
PayDate 10 False 122 True 7
PayrollID 9 False 106 True 130 50 100
ProcessName 11 False 106 True 130 50 100
StartTime 6 False 122 True 7
Status 12 False 106 True 130 50 100
UserID 2 False 106 True 130 10 20

Nov 19 '05 #1
0 991

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: ScottyBaby | last post by:
Hi, I've run into a curious problem with MS SQL Server 8.0. Using sp_help and SQL Query Analyzer's object browser to view the columns returned by a view, I find that sp_help is reporting stale...
14
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB...
8
by: Vladimir | last post by:
Hello, I have a table in MS Access database. It has one field (with BYTE datatype) that has several properties set in Lookup tab of table Design View. Display Control = Combo Box. Row Source...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
7
by: carl.manaster | last post by:
I'm new to this game. I can find my way around C# without any trouble, and I've used Access, a little bit, in the past. Now a friend wants an application of mine to read from his Access database....
3
by: Daniel M | last post by:
I'm building a medium-scale data-entry web application, which involves creating data entry forms, record listings and detail screens for lots of database tables. Rather than designing a series...
1
by: Dan Manes | last post by:
Wondering what other people do about this issue... You're writing a web app in asp.net that requires user input. Data will be stored in SQL Server Express database. You want to make sure data...
3
by: Peter Kirk | last post by:
Hi I am reading metadata from a database (sql server) - for example metadata describing columns in a table. This metadata includes information about the datatype of the column - for example...
2
by: dvawdrey | last post by:
Can someone help me please with the following code: try { DatabaseMetaData metadata=con.getMetaData(); System.out.println(metadata.getDriverName()); System.out.println("Driver version:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.