This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
[TableName] = so.name, | |
[RowCount] = MAX(si.ROWS) | |
FROM | |
sysobjects so, | |
sysindexes si | |
WHERE | |
so.xtype = 'U' AND | |
si.id = OBJECT_ID(so.name) | |
GROUP BY so.name ORDER BY so.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace System | |
{ | |
public static class UnixTimeExtensions | |
{ | |
public static long ToUnixTime(this DateTime datetime) | |
{ | |
return (long)(datetime.ToUniversalTime() - new DateTime(1970, 1, 1, 0, 0, 0)).TotalSeconds; | |
} | |
public static DateTime FromUnixTime(long time) |
NewerOlder