Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sp_BlitzLock fails on Azure SQL DB and Managed Instances #1842

Closed
BrentOzar opened this issue Nov 2, 2018 · 5 comments
Closed

sp_BlitzLock fails on Azure SQL DB and Managed Instances #1842

BrentOzar opened this issue Nov 2, 2018 · 5 comments
Assignees

Comments

@BrentOzar
Copy link
Member

What is the current behavior?
sp_BlitzLock produces:

Msg 40538, Level 16, State 3, Procedure sp_BlitzLock, Line 170 [Batch Start Line 0]
A valid URL beginning with 'https://' is required as value for any filepath specified.

Will dig into why.

@BrentOzar BrentOzar self-assigned this Nov 2, 2018
@BrentOzar BrentOzar changed the title sp_BlitzLock fails on Azure Managed Instances sp_BlitzLock fails on Azure SQL DB and Managed Instances Nov 2, 2018
@BlitzErik
Copy link
Contributor

It's going to be for this section of code:

        WITH xml
        AS ( SELECT CONVERT(XML, event_data) AS deadlock_xml
             FROM   sys.fn_xe_file_target_read_file(@EventSessionPath, NULL, NULL, NULL) )
        SELECT TOP ( @Top ) xml.deadlock_xml
        INTO   #deadlock_data
        FROM   xml
        WHERE  xml.deadlock_xml.value('(/event/@name)[1]', 'VARCHAR(256)') = 'xml_deadlock_report'
               AND xml.deadlock_xml.value('(/event/@timestamp)[1]', 'datetime') >= @StartDate
               AND xml.deadlock_xml.value('(/event/@timestamp)[1]', 'datetime') < @EndDate
			   ORDER BY xml.deadlock_xml.value('(/event/@timestamp)[1]', 'datetime')
			   OPTION ( RECOMPILE );

We can get to the system health file normally just by doing this:

@EventSessionPath VARCHAR(256) = 'system_health*.xel',

@BlitzErik
Copy link
Contributor

Closed via #1860

@KoiMundi
Copy link

Hi,

Just curious, I see this was closed, but I am still getting the same error when running SP_BlitzLock on SQL Managed Instance?

@LukaszSwiatekMeniga
Copy link

Hi,
I have a similar issue on SQL Managed Instance.

@BrentOzar
Copy link
Member Author

@LukaszSwiatekMeniga feel free to open a new issue with your details. Make sure to include everything that's asked in the new issue, like the exact version of the scripts you're using, the exact error you're getting, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants