|
-
January 11th, 2005, 10:10 PM
#1
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?
-
January 12th, 2005, 01:01 AM
#2
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.
-
January 15th, 2005, 03:37 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|