Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT
DB_NAME() AS DatabaseName,
T.[name] AS Table_Name,
AC.[name] AS Column_Name,
AC.column_id AS Ordinal_Position,
TY.[name] AS Data_type,
CASE WHEN AC.[precision] = 0 THEN AC.max_length ELSE AC.[precision] END AS CLength,
OBJECT_DEFINITION(AC.default_object_id) AS Column_Default
,AC.is_identity
,AC.is_nullable
FROM sys.tables T
INNER JOIN sys.all_columns AC ON T.[object_id] = AC.[object_id]
INNER JOIN sys.types TY ON AC.[system_type_id] = TY.[system_type_id]
AND AC.[user_type_id] = TY.[user_type_id]
WHERE T.[is_ms_shipped] = 0
AND T.[name] IN ('MyTable1', 'MyTable2')
ORDER BY DatabaseName, Table_Name, Ordinal_Position;