world wide web development problems asp net php html xhtml css javascript jquery w3dproblems
Wednesday, August 21, 2013
CSS 3 Gradient Editor
Color Zilla Gradient Editor
http://colorzilla.com/gradient-editor/
http://colorzilla.com/gradient-editor/
Replace / Remove a newline or carriage return in T SQL
REPLACE({String}, CHAR(13)+CHAR(10), '')Source:http://stackoverflow.com/questions/951518/replace-a-newline-in-tsql
Get size of all tables in database sql server
SELECT s.name AS SchemaName , t.NAME AS TableName , p.rows AS RowCounts , FORMAT(SUM(a.total_pages) * 8 / 1024.0, 'N2') AS TotalSpaceMB , FORMAT(SUM(a.used_pages) * 8/ 1024.0, 'N2') AS UsedSpaceMB , FORMAT((SUM(a.total_pages) - SUM(a.used_pages)) * 8 / 1024.0, 'N2') AS UnusedSpaceMB FROM sys.tables t INNER JOIN sys.schemas s ON t.schema_id = s.schema_id INNER JOIN sys.indexes i ON t.OBJECT_ID = i.object_id INNER JOIN sys.partitions p ON i.object_id = p.OBJECT_ID AND i.index_id = p.index_id INNER JOIN sys.allocation_units a ON p.partition_id = a.container_id WHERE t.NAME NOT LIKE 'dt%' AND t.is_ms_shipped = 0 AND i.OBJECT_ID > 255 GROUP BY s.name , t.Name , p.Rows ORDER BY p.Rows DESC
Subscribe to:
Posts (Atom)