SELECT SCHEMA_NAME(SCHEMA_ID) AS [Schema] ,SO.name AS [ObjectName] ,SO.Type_Desc AS [Ob...
SELECT ROW_NUMBER() OVER(ORDER BY name ASC) AS Row#, name, recovery_model_desc FROM sys.database...
SELECT SUBSTRING(a.FILENAME, 1, 1) Drive, [FILE_SIZE_MB] = convert(decimal(12, 2), round(a.size...
SELECT SUM (row_count) FROM sys.dm_db_partition_stats WHERE object_id=OBJECT_ID('TableName') AND (...
DECLARE @UTC BIGINT SET @UTC = 1348203320997 -- This is a comment SELECT DATEADD(MILLISECOND, @UTC...