Click here to Skip to main content
15,915,093 members
Home / Discussions / Database
   

Database

 
Generalideas please Pin
Djibril3-Dec-01 18:50
professionalDjibril3-Dec-01 18:50 
GeneralSQL Server -> Access Pin
Michael Martin25-Nov-01 14:16
professionalMichael Martin25-Nov-01 14:16 
GeneralRe: SQL Server -> Access Pin
Matt Gullett25-Nov-01 14:40
Matt Gullett25-Nov-01 14:40 
GeneralRe: SQL Server -> Access Pin
Michael Martin25-Nov-01 19:19
professionalMichael Martin25-Nov-01 19:19 
GeneralRe: SQL Server -> Access Pin
Rashid Thadha26-Nov-01 2:43
Rashid Thadha26-Nov-01 2:43 
GeneralTwo difficult ADO questions Pin
ssteo23-Nov-01 23:21
ssteo23-Nov-01 23:21 
GeneralRe: Two difficult ADO questions Pin
Rashid Thadha26-Nov-01 2:45
Rashid Thadha26-Nov-01 2:45 
GeneralRe: Two difficult ADO questions Pin
Giles26-Nov-01 3:09
Giles26-Nov-01 3:09 
In VB for a data source named MYDB,

Dim cnn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim i As Long, j As Long

cnn.Open "MYDB"

Set rs = cnn.OpenSchema(adSchemaTables)

Debug.Print "Number of Records ", rs.RecordCount
Debug.Print "No of Fields : ", rs.Fields.Count


For j = 0 To rs.Fields.Count - 1
    Debug.Print rs.Fields(j).Name & " ";
Next j


Debug.Print


For i = 0 To rs.RecordCount - 1
    For j = 0 To rs.Fields.Count - 1
        Debug.Print rs.Fields(j).Value & " ",
    Next j
    
    Debug.Print
    
    rs.MoveNext
Next i


rs.Close
cnn.Close

This should enumerate what tables the database contains. Its a bit like opening a recordset of what tables exist. Tables in tables......

Hope this helps.

Giles
GeneralRe: Two difficult ADO questions Pin
Earl Allen20-Feb-02 12:13
Earl Allen20-Feb-02 12:13 
QuestionHow can I export database from SQL to Interbase? Pin
21-Nov-01 23:05
suss21-Nov-01 23:05 
AnswerRe: How can I export database from SQL to Interbase? Pin
Rashid Thadha22-Nov-01 1:15
Rashid Thadha22-Nov-01 1:15 
GeneralRe: How can I export database from SQL to Interbase? Pin
22-Nov-01 15:10
suss22-Nov-01 15:10 
GeneralRe: How can I export database from SQL to Interbase? Pin
Rashid Thadha22-Nov-01 22:27
Rashid Thadha22-Nov-01 22:27 
Generalresetting id while deleting records in runtime Pin
ginola21-Nov-01 14:10
ginola21-Nov-01 14:10 
GeneralRe: resetting id while deleting records in runtime Pin
Peter Zajac29-Nov-01 9:05
Peter Zajac29-Nov-01 9:05 
GeneralDynamic Recordset Pin
Laksh21-Nov-01 1:09
Laksh21-Nov-01 1:09 
GeneralRe: Dynamic Recordset Pin
Rashid Thadha21-Nov-01 4:28
Rashid Thadha21-Nov-01 4:28 
Generalresetting id after deleting records Pin
ginola20-Nov-01 14:31
ginola20-Nov-01 14:31 
GeneralRe: resetting id after deleting records Pin
Rashid Thadha21-Nov-01 4:19
Rashid Thadha21-Nov-01 4:19 
GeneralDatabase pagination Pin
JEi16-Nov-01 0:31
JEi16-Nov-01 0:31 
GeneralRe: Database pagination Pin
Chris Maunder16-Nov-01 0:56
cofounderChris Maunder16-Nov-01 0:56 
GeneralRe: Database pagination Pin
JEi16-Nov-01 1:10
JEi16-Nov-01 1:10 
GeneralRe: Database pagination Pin
Andrew Peace24-Nov-01 4:13
Andrew Peace24-Nov-01 4:13 
GeneralRe: Database pagination Pin
blueei5-Dec-01 21:59
blueei5-Dec-01 21:59 
GeneralRe: Database pagination Pin
Nick Parker30-Nov-01 8:40
protectorNick Parker30-Nov-01 8:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.