July 28, 2008 at 5:20 am
select c.name, t.name from sys.columns c inner join sys.types t on c.user_type_id=t.user_type_id
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 28, 2008 at 6:59 am
or:
sp_Help
July 28, 2008 at 7:27 am
or:
[font="Courier New"]SELECT
Table_Schema,
Table_Name,
Column_Name,
Data_Type
FROM
information_schema.columns
WHERE
table_name =
AND
table_schema = [schema][/font]
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply