You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
USE master;
GO
CREATE CERTIFICATE diagnostics_cert
ENCRYPTION BY PASSWORD ='5OClockSomewhere'
WITH SUBJECT ='Certificate for sp_BlitzFirst',
START_DATE ='20130711', EXPIRY_DATE ='21000101';
GO
CREATE LOGIN diagnostics_login FROM CERTIFICATE diagnostics_cert;
GO
CREATEUSERsp_BlitzFirst_loginFROM CERTIFICATE diagnostics_cert;
GO
-- add database exec permissionsGRANT EXECUTE ONdbo.sp_BlitzFirst TO sp_BlitzFirst_login;
GRANT EXECUTE ONdbo.sp_BlitzCache TO sp_BlitzFirst_login;
GRANT EXECUTE ONdbo.sp_BlitzIndex TO sp_BlitzFirst_login;
GRANT EXECUTE ONdbo.sp_Blitz TO sp_BlitzFirst_login;
GO
GRANT EXECUTE ONdbo.sp_BlitzFirst TO [diagnostic_user];
GO
Install Toolkit
-- install Toolkit
ADD SIGNATURE TO sp_BlitzFirst BY CERTIFICATE sp_BlitzFirst_cert WITH PASSWORD ='5OClockSomewhere';
GO