Reputation: 41
I just created a table in SQL Server Management Studio and now I forget what datatypes I assigned to some of the fields. How do I access that information?
Upvotes: 1
Views: 17436
Reputation: 1556
If you select a table name in the query window of Sql Server Management Studio and press ALT + F1 it will display the details of that table.
In the background shortcut key will execute sp_help on your behalf, so in this example it executes: sp_help users, which is much quicker than typing it.
Upvotes: 6
Reputation: 982
sp_help tablename . Gives you information about your table including fields and datatypes
Upvotes: 2
Reputation: 23228
select * from information_schema.columns where table_name = <yourtable>
Upvotes: 1