Results 1 to 2 of 2

Thread: how to get an Oracle database / table schema using vb6

  1. #1

    Thread Starter
    Fanatic Member ZeBula8's Avatar
    Join Date
    Oct 2002
    Posts
    548

    how to get an Oracle database / table schema using vb6

    I would like to get the schema information for Oracle database and tables.

    Such as the table names of the database and all table field names, datatypes, etc using vb6.

    How?

    Thanks for help in advance.
    Last edited by ZeBula8; Oct 20th, 2006 at 11:30 PM.

  2. #2
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: how to get an Oracle database / table schema using vb6

    You need to know some information to start with. First who owns the tables? Hopefully it is not the sys or system user and it is the person who's login you used to connect to the Oracle database. If that is the case you can issue an SQL statement to get tables like this:

    Code:
      strSQL = "Select table_name from UserTables"
    that will return all of the tables owned by the login connected.

    If you need table information from a schema other then the person who is logged in then you need to use something lile this:
    Code:
        strSQL = "Select Owner,table_Name from all_tables Where Owner Not IN ('SYS','SYSTEM')"
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width