| Author |
Topic |
|
Zim327
Yak Posting Veteran
62 Posts |
Posted - 2006-07-19 : 09:56:45
|
| In Oracle (PL-SQL) I can simply type:desc sometableAnd it will display all the name, datatype, data length etc of all the columns in that table.Is there an equivalent function in T-SQL?Thanks,Best regards, Zim(Future Eternal Yak God Emperor) |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2006-07-19 : 09:59:39
|
no.SQL has inforamtion_schema.columns viewselect * from inforamtion_schema.columnswhere table_name = 'YourTableName'Go with the flow & have fun! Else fight the flow blog thingie: http://weblogs.sqlteam.com/mladenp |
 |
|
|
rockmoose
SQL Natt Alfen
3279 Posts |
Posted - 2006-07-19 : 10:04:21
|
| kind of.this works pretty well:exec sp_help 'tablename'there is also the undocumented:exec sp_mshelpcolumns 'tablename'rockmoose |
 |
|
|
Zim327
Yak Posting Veteran
62 Posts |
Posted - 2006-07-19 : 11:53:00
|
| You guys are awesome!this was just what I was looking for!Thanks again,Best regards, Zim(Future Eternal Yak God Emperor) |
 |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2006-07-19 : 11:56:11
|
quote: Future Eternal Yak God Emperor
Now that's funny! Go with the flow & have fun! Else fight the flow blog thingie: http://weblogs.sqlteam.com/mladenp |
 |
|
|
Zim327
Yak Posting Veteran
62 Posts |
Posted - 2006-07-19 : 12:10:46
|
| Thanks spirit1I'm glad you liked my attempt at humordo you think I could get them to add it under my display name? ;)Best regards, Zim(Future Eternal Yak God Emperor) |
 |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2006-07-19 : 12:16:59
|
honestly... you don't have a chance. Go with the flow & have fun! Else fight the flow blog thingie: http://weblogs.sqlteam.com/mladenp |
 |
|
|
Zim327
Yak Posting Veteran
62 Posts |
Posted - 2006-07-19 : 13:09:06
|
| LOL!that's the story of my life...Best regards, Zim(Future Eternal Yak God Emperor) |
 |
|
|
rockmoose
SQL Natt Alfen
3279 Posts |
Posted - 2006-07-19 : 16:23:08
|
| Ahh,but 100 years in the future and with great perseverence the title may be yours! |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-07-21 : 11:33:26
|
| Other method. Hoghlight the table name in QA and press Alt+F1MadhivananFailing to plan is Planning to fail |
 |
|
|
|