Sql Object Schema

So inorder to Find a table schema in sql you have two options



-- this will show all tables within this database
SP_TABLES

-- this is a more selective search
select * from
INFORMATION_SCHEMA.tables
WHERE TABLE_NAME =


this can also be done with columns



-- this will show all column definations within the table specfied
SP_Columns

-- this is a more selective search on one or many views at one time
select * from
INFORMATION_SCHEMA.columns
WHERE TABLE_NAME =


This entry was posted in SQL. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>