Created
August 6, 2014 20:51
-
-
Save chenrui333/2aa3943ebef4b80bd65b to your computer and use it in GitHub Desktop.
SQLServer find the table and column info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select TABLE_NAME, COLUMN_NAME, IS_NULLABLE, DATA_TYPE | |
from Information_schema.columns | |
where Table_name in ( | |
SELECT name | |
AS SchemaTable | |
FROM sys.tables | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment