Where · SSMS Query WindowConnect to your local learning server → New Query. Check the database selector before Execute. SQLTool guide↗
In New Query, check the connected server and select master in the database selector. Paste the query, select it and click Execute.