English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3 answers

select * from sysobjects where xtype='U'

this will give you list of all user defined objects - from which you can further filter down to tables.

2006-06-19 06:53:01 · answer #1 · answered by r_ranjith 4 · 0 0

First you will need to set up an ado connection (connection object) to the database using a proper connection string. Once you have that you can access the table using a command object which you execute through your connection object. The command object can either have a reference to a stored procedure on the database or you can assign a text query to use.

2006-06-19 12:31:41 · answer #2 · answered by Doug B 3 · 0 0

Please be more specific, do you want a SQL query so you can find a table or you just want to connect to a specific database?

2006-06-19 12:34:18 · answer #3 · answered by Robles 2 · 0 0

fedest.com, questions and answers