Describe table structure in MS SQL Server


I liked the describe MyTable in MySQL and missed it on SQL Server when I started to work with it. Turns out, there is a way to do the same there as well:

exec sp_columns MyTable

This is not exactly the same as describe MyTable but it serves similar purpose.

Advertisements

One thought on “Describe table structure in MS SQL Server

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s