This file contains hidden or 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
-- From : Michael J Swart (https://sqlperformance.com/2017/07/sql-performance/find-database-connection-leaks) | |
declare @database_name sysname = N'YOUR_DATABASE_NAME_HERE'; | |
declare @program_name sysname = N'.Net SqlClient Data Provider'; | |
select | |
datediff(SECOND, s.last_request_end_time, getdate()) as seconds_asleep, | |
s.last_request_start_time as lastreq, | |
s.session_id, | |
db_name(s.database_id) as database_name, |
This file contains hidden or 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
AzureStorageEmulator.exe clear all | |
AzureStorageEmulator.exe init | |
AzureStorageEmulator.exe start |
This file contains hidden or 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
// Razor | |
// ------------------------------------------------------------------- | |
<timeago>@comment.UtcCreatedDateTime</timeago> | |
// Helper | |
// ------------------------------------------------------------------- | |
using Microsoft.AspNetCore.Razor.TagHelpers; | |
using System; | |
using System.Threading.Tasks; |