Who are these scripts for? You need to troubleshoot performance problems with SQL Server, and you need to do it now. You don't have time to track down a bunch of DMVs, figure out Extended Events, ...
CREATE TABLE users ( id BIGSERIAL PRIMARY KEY, full_name VARCHAR (100) NOT NULL, email VARCHAR (100) NOT NULL UNIQUE, phone VARCHAR (20) UNIQUE, hash_password TEXT NOT NULL, role VARCHAR (20) NOT NULL ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results