Click to See Complete Forum and Search --> : ADO 2.1 / OpenSchema?
JasonGS
Jul 13th, 2000, 04:58 PM
Does anyone know how to use ADO to A) get a list of table names and B) get the date & time that the table was last modified?
Learning
Jul 14th, 2000, 03:27 PM
You can use ADO OpenSchema to get tablenames, but I am not sure whether you can get date using that.
Clunietp
Jul 15th, 2000, 11:18 AM
'uses ADO 2.x and Ado 2.x Ext 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
For Each objTable In objCat.Tables
Debug.Print objTable.Name & ": " & objTable.DateModified
Next objTable
objCn.Close
Set objCat = Nothing
Set objCn = Nothing
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.