|
-
Mar 30th, 2006, 08:39 AM
#1
Thread Starter
Junior Member
Get Table name OF Sql Server
AOA
I want to get SQL SERVER Table names in VB6 (In ODBC driver for sql server I pass database name like: Sale)
how can i get all table names in a combobox of database Sale.
thanks & regard
-
Mar 30th, 2006, 08:43 AM
#2
Re: Get Table name OF Sql Server
-
Mar 30th, 2006, 11:08 AM
#3
Re: Get Table name OF Sql Server
Personally, I would use the schema views rather than query the system objects. Much easier to use and they are version specific, so changes to the system objects do not affect your code.
Select Table_Name From Information_Schema.Tables Where Table_Type = 'BASE TABLE'
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
|