August 12, 2009 at 3:11 pm
what is the select statement for retriving only column names in a table.
August 12, 2009 at 3:35 pm
SELECT * FROM YourTableName WHERE 1=0
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
August 12, 2009 at 3:38 pm
select
a.[name]
from
sys.columns a join sys.tables b on
a.object_id = b.object_id
where
b.[name] = ''
August 12, 2009 at 3:43 pm
thanks...............
August 12, 2009 at 3:46 pm
what is select statement for retreiving the list of table in a database.
August 12, 2009 at 3:49 pm
got it.........
select * from sys.tables
thanks.......................
August 12, 2009 at 3:51 pm
Glad we could help ... 😉
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply