|
-
Jul 11th, 2000, 04:50 PM
#1
Thread Starter
Hyperactive Member
I have an Access database wich contains forms. WHen I open the database, I just see the form and I can't see the tables and the fields. It has any kind of protection.
Is there any way to know how many and the names of the tables that it have? Is there any way to see this structures in the current protected state?
I need to know the database structure.
Ulises Vázquez
[size=1.7]Oracle DBA Certified Professioanl
Visual Basic 6 Developer
Crystal Reports Designer
[/size]
-
Jul 11th, 2000, 05:17 PM
#2
first thing to try is 'F11'.
next thing is keep 'SHIFT' pressed while opening the db.
if that doesn't work, you could try to open th db from VB and use either DAO or ADOX to check the data structure. it could still be, that the db is password protected, then you are in trouble.
best regards
Sascha
-
Jul 11th, 2000, 08:21 PM
#3
Thread Starter
Hyperactive Member
I have checked the reference: Microsoft ActiveX Data Objects 2.1 Library. But it doesn't provide me with the ADOX datatype.
What reference do I need?
Ulises Vázquez
[size=1.7]Oracle DBA Certified Professioanl
Visual Basic 6 Developer
Crystal Reports Designer
[/size]
-
Jul 11th, 2000, 08:34 PM
#4
Fanatic Member
If you want the ADO data control you must add it from the Components. It's Microsoft ADO Data Control 6.0 and add the Reference to Microsoft ActiveX Data Objects 2.0 Library.
-
Jul 12th, 2000, 08:18 AM
#5
Thread Starter
Hyperactive Member
Thanks for the info! NO, I don't have the code.
Ulises Vázquez
[size=1.7]Oracle DBA Certified Professioanl
Visual Basic 6 Developer
Crystal Reports Designer
[/size]
-
Jul 13th, 2000, 01:37 AM
#6
Guru
here is some code I wrote previously to list all tables and stored procedures in a DB
Code:
'uses ADO 2.x and ADO 2.x for DDL and Security
Dim objCn As New Connection
Dim objCat As ADOX.Catalog
Dim objProc As ADOX.Procedure
Dim objTable As ADOX.Table
objCn.Open <ConnectionString>
Set objCat = New Catalog
objCat.ActiveConnection = objCn
Debug.Print "============== TABLES ============="
For Each objTable In objCat.Tables
Debug.Print objTable.Name
Next objTable
Debug.Print "============== STORED PROCEDURES =================="
For Each objProc In objCat.Procedures
Debug.Print objProc.Name
Next objProc
objCn.Close
Set objCat = Nothing
Set objCn = Nothing
-
Jul 13th, 2000, 08:46 AM
#7
Thread Starter
Hyperactive Member
A thousand of THANKS for your halep!
Ulises Vázquez
[size=1.7]Oracle DBA Certified Professioanl
Visual Basic 6 Developer
Crystal Reports Designer
[/size]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|