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 DB_NAME(database_id) AS DatabaseName, | |
Name AS Logical_Name, | |
Physical_Name, (size*8)/1024 SizeMB | |
FROM sys.master_files | |
ORDER BY SizeMB DESC |
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
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d *svn') do ( | |
rd /s /q "%%i" | |
) |
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
public static string GuidToShortGuid(Guid gooid) | |
{ | |
string encoded = Convert.ToBase64String(gooid.ToByteArray()); | |
encoded = encoded.Replace("/", "_").Replace("+", "-"); | |
return encoded.Substring(0, 22); | |
} |
NewerOlder