CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2004
    Posts
    37

    Wink table names collection in SQL Server 2000

    Need your help plzzzzzzzzz....
    i need to extract table and fiald names in visual C++ from an SQL database and use these table nad field names to perform String matching with a Natural language in a Natural language query analyzer. i don't know how to extract these names. Is there a direct SQL Query with which i can obtain these names?

  2. #2
    Join Date
    Nov 2004
    Location
    Poland
    Posts
    1,355

    Re: table names collection in SQL Server 2000

    OpenSchema if U use ADO/oledb. There is also similar function in ODBC.

    As a "direct query" U can use some standard stored procedures:

    EXEC sp_tables
    EXEC sp_pkeys
    etc.

    OR U can select directly from system tables...

    (sysobjects,syscolumns,....)

    Best regards,
    Krzemo.

  3. #3
    Join Date
    Sep 2004
    Posts
    247

    Re: table names collection in SQL Server 2000

    Have a look at the INFORMATION_SCHEMA.* views,

    e.g.

    Code:
    select * from information_schema.tables

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

Featured