in

SQL Server Blogs

Voices from the UK SQL Server Community

Browse by Tags

  • Maximum length of each column

    How do I find out the maximum length of each column in a table? Here is the answer declare @sql varchar ( 8000 ), @table sysname select @table = 'your_table' , @sql = '' select @sql = @sql + 'select ''' + @table + ''' as table_name,''' + column_name...
    Posted to Madhivanan (Weblog) by Madhivanan on Thu, Oct 1 2009
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems