How to get the table list of Access using ADO?
cunny
Member Posts: 129
Hello guys,
How could we get the table list of Access Database through C/SIDE?
any idear will be highly appreciated?
How could we get the table list of Access Database through C/SIDE?
any idear will be highly appreciated?
0
Answers
-
Hi,
try the following. I made a connection to an ORACLE DB and it works fine!
Automation Server: Microsoft ActiveX Data Objects 2.6 Library
Hope, i could help!
Ciao
Gregor0 -
Thanks GregorD,
In fact, I am trying the Microsoft ActiveX Data Objects 2.6 Library but not good at it. Thanks for your reference. I will try it
best regards,0 -
You can find tons of ADO samples in google. There is an ADO howto here in the download section that is very helpful. It will help you create the connection and open the database. You will have to program a loop to go through the returned recordset to process the data into NAV tables.0
-
Daniel! I have done a lot of investigation but I still can not figure out which method or property of ADO I can use to retrieve the table name from Access Database! What is the exactly name of the ADO howto do you mean?0
-
Hi there,
Yes, I found a solution. I found there is a system table in Access which was used to save all the tabel names called systemobjects(you need to show the system obejcts first). With quering this table thorugh ADO in C/SIDE, you can retrieve the table list which exists in Access database. I think for SQL we can use the same way and it's also not a problem but I didn't try it yet.
Best regards,
cunny,0 -
cunny wrote:Hi there,
I think for SQL we can use the same way and it's also not a problem but I didn't try it yet.
Best regards,
cunny,
Just want to clarify how to retrieve table list from SQL server 2005 dbs..
"select * from INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE'"
regards0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
