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
 General SQL Server Forums
 New to SQL Server Programming
 print

Author  Topic 

Remya
Starting Member

1 Post

Posted - 2009-01-09 : 05:38:04
print a structure of a table

Nageswar9
Aged Yak Warrior

600 Posts

Posted - 2009-01-09 : 06:04:11
Can U Explain Whats ur Requirement?
Go to Top of Page

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2009-01-09 : 06:05:47
Waste of paper..

But if you want to get the SQL for table creation then right click on the table and Generate Scipt as Create To..

If you want to document the table structure, use sp_help <tablename>
Go to Top of Page

Jai Krishna
Constraint Violating Yak Guru

333 Posts

Posted - 2009-01-09 : 06:07:21
To my knowledge I think its not possible to print the structure of a table using print keyword

Jai Krishna
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-09 : 06:51:47
quote:
Originally posted by Jai Krishna

To my knowledge I think its not possible to print the structure of a table using print keyword

Jai Krishna


who told its possible?
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-01-09 : 07:33:02
sp_help tablename


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

raky
Aged Yak Warrior

767 Posts

Posted - 2009-01-09 : 08:02:02
quote:
Originally posted by webfred

sp_help tablename


No, you're never too old to Yak'n'Roll if you're too young to die.



This is what RickD had already told
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-01-09 : 09:09:00
Oh, now I see!
I am sorry.

Webfred


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -