Re: MS SQL server Meata data question

From: Chung Leong (chernyshevsky_at_hotmail.com)
Date: 01/14/04


Date: Tue, 13 Jan 2004 20:49:50 -0500

Call the store procedure sp_databases and sp_tables to get a list of
databases and tables (in the current database). sp_columns will get your a
list of a table's columns. Look in your MS SQL help file for more info.

Uzytkownik "Tom Jones" <tomjones@lucent.com> napisal w wiadomosci
news:btvarb$9sb@netnews.proxy.lucent.com...
> I need to use php's native mssql api in order to read the meta data from
an
> entire DBMS ... I have sql server 2000 up and running and using the
provided
> browsing tools poked around and found that the databases in the system
were
> listed under a database named "master" in a table named "sysdatabases" ...
> there is a "syscolumns" table there too but it looks like i need specific
> info about the architecture of sql server's inner workings to use it.
>
> the native php support for sql server doesn't have meta data functions
like
> are provided for things like mysql and odbc. I can't use adodb or pear
for
> alot of reasons ...
>
> can anyone help me or point me to a souce for how to get:
>
> databases -- I have done this one in a round about way
> tables in those databases
> attributes in those tables
> and attribute types
>
> I need to do this for Oracle too but I think the native support for Oracle
> is better and the tools built in ... I think Oracle supports something
they
> call show commands that just do what I want.
>
> Thanks
> Tom
>
>



Relevant Pages

  • Re: Oracle vs MSSQL Parameters
    ... My SQL is ... ported between those databases. ... The instance of the DbCommand ... Oracle directly); the MS Data Set Generator tool used in the VS.NET IDE also ...
    (microsoft.public.dotnet.framework.adonet)
  • GUID default value
    ... We are developing a complex system, which will run on Oracle, MS SQL ... All the databases are to be replicated. ... GUID column, which is filled once a new record is inserted. ...
    (microsoft.public.access.tablesdbdesign)
  • GUID default value
    ... We are developing a complex system, which will run on Oracle, MS SQL ... All the databases are to be replicated. ... GUID column, which is filled once a new record is inserted. ...
    (microsoft.public.access.replication)
  • Re: Need design advice. Whats my best approach for storing this data?
    ... With something like DB2 or Oracle here, ... relational databases work, but I think it's with the trouble. ... a declarative language, and in principle, your SQL code ...
    (comp.lang.python)
  • Re: BizTalk eating up SQL Server (Virii Behaviour)
    ... Yes, one gig is the least to run sql & bts in the same box, ... uninstall procedure, i manually deleted all databases, and run the ... and it was leaving like 20 mbs free memory, ... BizTalk Solution Developer ...
    (microsoft.public.biztalk.general)