can ASP get a list of databases and tables of SQL Server at run time?

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default can ASP get a list of databases and tables of SQL Server at run time?

    When we want to get data access, we need to specify the datasource name and
    table name in ASP page. I want to know if we can get the list of databases
    and tables of SQL Server at run time? i.e. The user can choose the database
    or table to open, and get the records of the table?

    Please advice. Thanks!
    John



    John Davis Guest

  2. Similar Questions and Discussions

    1. tables vs databases
      This is probably a stupid question but is how is there much of a difference in performance in storing all tables in the one database and spreading...
    2. populating dropdown using tables from two databases
      I tried it with populating the values from the first qury to an array and using that array inside NOT IN clause of second query. But its giving...
    3. QUERY two tables from different databases
      We have a billing system in house that runs on a SCO box. Fortunately I'm able to use the Progress 9.1 odbc driver to generate reports only and the...
    4. No tables show up under databases/connections
      I have a home network and run testing server (IIS5) on another machine. So I create database connections both strings and DSN from Dreamweaver on...
    5. Joining Tables Across Databases
      This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ...
  3. #2

    Default can ASP get a list of databases and tables of SQL Server at run time?

    When we want to get data access, we need to specify the datasource name and
    table name in ASP page. I want to know if we can get the list of databases
    and tables of SQL Server at run time? i.e. The user can choose the database
    or table to open, and get the records of the table?

    Please advice. Thanks!
    John



    John Davis Guest

  4. #3

    Default Re: can ASP get a list of databases and tables of SQL Server at run time?

    Yes, you can! :-)

    There are three ways that I can think of:
    a) query the system tables
    b) use ADOX
    c) use the ADO Schema

    Cheers
    Ken


    "John Davis" <jrefactor@hotmail.com> wrote in message
    news:elqSUrTZDHA.2352@TK2MSFTNGP12.phx.gbl...
    : When we want to get data access, we need to specify the datasource name
    and
    : table name in ASP page. I want to know if we can get the list of databases
    : and tables of SQL Server at run time? i.e. The user can choose the
    database
    : or table to open, and get the records of the table?
    :
    : Please advice. Thanks!
    : John
    :
    :
    :


    Ken Schaefer Guest

  5. #4

    Default Re: can ASP get a list of databases and tables of SQL Server at run time?

    Yes, you can! :-)

    There are three ways that I can think of:
    a) query the system tables
    b) use ADOX
    c) use the ADO Schema

    Cheers
    Ken


    "John Davis" <jrefactor@hotmail.com> wrote in message
    news:elqSUrTZDHA.2352@TK2MSFTNGP12.phx.gbl...
    : When we want to get data access, we need to specify the datasource name
    and
    : table name in ASP page. I want to know if we can get the list of databases
    : and tables of SQL Server at run time? i.e. The user can choose the
    database
    : or table to open, and get the records of the table?
    :
    : Please advice. Thanks!
    : John
    :
    :
    :


    Ken Schaefer Guest

  6. #5

    Default Re: can ASP get a list of databases and tables of SQL Server at run time?

    [url]http://www.darkfalz.com/1065/[/url]

    --
    ----------------------------------------------------------
    Curt Christianson (Software_AT_Darkfalz.Com)
    Owner/Lead Designer, DF-Software
    [url]http://www.Darkfalz.com[/url]
    ---------------------------------------------------------
    ...Offering free scripts & code snippits for everyone...
    ---------------------------------------------------------


    "John Davis" <jrefactor@hotmail.com> wrote in message
    news:elqSUrTZDHA.2352@TK2MSFTNGP12.phx.gbl...
    > When we want to get data access, we need to specify the datasource name
    and
    > table name in ASP page. I want to know if we can get the list of databases
    > and tables of SQL Server at run time? i.e. The user can choose the
    database
    > or table to open, and get the records of the table?
    >
    > Please advice. Thanks!
    > John
    >
    >
    >

    Curt_C [MVP] Guest

  7. #6

    Default Re: can ASP get a list of databases and tables of SQL Server at run time?

    [url]http://www.darkfalz.com/1065/[/url]

    --
    ----------------------------------------------------------
    Curt Christianson (Software_AT_Darkfalz.Com)
    Owner/Lead Designer, DF-Software
    [url]http://www.Darkfalz.com[/url]
    ---------------------------------------------------------
    ...Offering free scripts & code snippits for everyone...
    ---------------------------------------------------------


    "John Davis" <jrefactor@hotmail.com> wrote in message
    news:elqSUrTZDHA.2352@TK2MSFTNGP12.phx.gbl...
    > When we want to get data access, we need to specify the datasource name
    and
    > table name in ASP page. I want to know if we can get the list of databases
    > and tables of SQL Server at run time? i.e. The user can choose the
    database
    > or table to open, and get the records of the table?
    >
    > Please advice. Thanks!
    > John
    >
    >
    >

    Curt_C [MVP] Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139