Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Get Table details & lts field(attribute) Values?

Author  Topic 

anwarul.haque
Starting Member

7 Posts

Posted - 2008-11-24 : 07:19:08
Hi All,

with this
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME ='Your Table name here'

I'm getting table detail info
but i need table details as well as field values also, is this possible?

Please help me to out.

Thanks in advance

Haque



Haque

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-11-24 : 07:33:19
you need union this with

select columns from yourtable

to get it
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-11-24 : 07:36:15
If you send resultset to front end, you can easily get the table information there

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -