Re: SQL Server 2005 with VB.net 2005
- From: "Russell Fields" <russellfields@xxxxxxxxxx>
- Date: Tue, 12 Jun 2007 08:37:48 -0400
Omar,
All of these commands return rowsets. Just read the rows from your query
and do whatever you want in VB, such as putting then into a string array.
(If I understand your question.)
RLF
"Omar Abid" <omar.abid2006@xxxxxxxxx> wrote in message
news:1181553716.912264.245270@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 9 juin, 15:04, "Russell Fields" <russellfie...@xxxxxxxxxx> wrote:
Omar,
For tables to which the user has rights:
EXEC sp_tables
For all tables:
In SQL Server 2000 and 2005
SELECT * FROM INFORMATION_SCHEMA.TABLES
In SQL Server 2005
SELECT * FROM sys.tables
For SQL Server 2005 permissions to this information is more restricted
and
may require the user to have VIEW DEFINITIONS rights in order to see
everything.
RLF
"Omar Abid" <omar.abid2...@xxxxxxxxx> wrote in message
news:1181389760.532598.147360@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi every body,
Im using VB 2005 to create a program that open SQL Data base
The problem that i want to detect the tables of a database
so how can i know a data base tables instantly
Thank you
omar.a...@xxxxxxxxxxx
omar.abid2...@xxxxxxxxx
Omar abid
thx, but how to get the tables name into strings ?
.
- References:
- SQL Server 2005 with VB.net 2005
- From: Omar Abid
- Re: SQL Server 2005 with VB.net 2005
- From: Russell Fields
- Re: SQL Server 2005 with VB.net 2005
- From: Omar Abid
- SQL Server 2005 with VB.net 2005
- Prev by Date: Connecting database server from application server
- Next by Date: Data connection in Crystal Reports XI
- Previous by thread: Re: SQL Server 2005 with VB.net 2005
- Next by thread: Re: Transferring to a new computer
- Index(es):
Relevant Pages
|
Loading