SqlServer 2005: trucs et astuces¶
http://sqlserver.developpez.com/ port standart 1433
Information générale¶
liste des tables¶
SELECT '[' + TABLE_CATALOG + '].[' + TABLE_SCHEMA + '].[' + TABLE_NAME + ']'
FROM information_schema.tables
WHERE table_type='BASE TABLE'
order by table_name
liste des colonnes¶
SELECT COLUMN_NAME, ORDINAL_POSITION, DATA_TYPE
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME='MA_TABLE'