This is my blog in where I'll share all my DBA experience and sql scripts.
Este es mi blog donde comparto toda mi experiencia como DBA y algunos scripts.
Thursday, February 25, 2016
"SQL Advanced Monitoring" Session for PASS DBA Virtual Chapter
On February 24th 2016 I have presented my session "SQL Advanced Monitoring" for PASS DBA Virtual Chapter. Here you can find the recording
one of the functions was left out (dbo.FN_Str2VarBinary64). Trying to set up your DeadLock XEVENT Advance Monitoring
ReplyDeleteHere we go
DeleteCreate function dbo.FN_Str2VarBinary64 ( @Str varchar(max) )
returns varbinary(64)
as
Begin
if @Str is null return null
Declare @Ret varbinary(64)
Declare @HexStr varchar(max)
Declare @I smallint
Declare @C smallint
Set @Str = replace(@Str, '0x', '' )
Set @I = 2
Set @HexStr = ''
while 1=1
Begin
Set @C = charindex( substring(@Str, @I, 1), '0123456789abcdef' ) - 1
if @C = -1
break
Set @HexStr = @HexStr + char( (16 * (charindex( substring(@Str, @I-1, 1), '0123456789abcdef' ) - 1) ) + @C )
Set @I = @I + 2
End
Set @Ret = convert(varbinary(64), @HexStr)
return @Ret
End
This comment has been removed by the author.
ReplyDeletegood information Sql Server dba Online Training Bangalore
ReplyDeleteIt was so nice article. I was really satisfied by seeing this article. SQL server dba Online Training
ReplyDeleteIt was so nice article. I was really satisfied by seeing this article. SQL server dba Online Training
ReplyDelete