Jeff Taylor
Principal Data Consultant
Database Consulting, LLC
Your Daily Driver
Got an Overhaul
What's new in SSMS 21 and SSMS 22
Jeff Taylor
Principal Data Consultant
Database Consulting, LLC
Super Hero Suit
64-bit, new installer, dark theme
64-bit
Install
Theme
Tabs
Results
Connect
Projects
Security
Security
Copilot
GitHub Copilot, Database DevOps, and more
Connect
Connect
Demo
Connect, dark theme, vertical tabs, NULL coloring.
Arm64
Copilot
Autocomplete
Instructions
Copilot
Agent Mode
Security
Who does Copilot run as?
You.
Demo
-- Prompts I actually use in the chat window
Write a query to find the top 10 customers by total order value
Explain what this stored procedure does
Why is this query slow, and how would you rewrite it?
Add error handling and a transaction to this script
-- Then hand Agent Mode a job
Why is this server slow right now?Projects
Projects
Demo
Create a project from SSMSDemo, open it in Solution Explorer.
Demo
SSMSDemo vs. its project, save the .scmp, publish.
Before
select o.OrderId,c.Name,sum(od.Qty*od.Price) total from Orders o join Customers c on c.Id=o.CustId join OrderDetail od on od.OrderId=o.OrderId group by o.OrderId,c.NameUSE [SSMSDemo];
GO
-- BEFORE: paste this as one line, then run the formatter live.
select o.OrderId,c.Name,sum(od.Qty*od.Price) total from Orders o join Customers c on c.Id=o.CustId join OrderDetail od
on od.OrderId=o.OrderId group by o.OrderId,c.Name
GOAfter
SELECT
o.OrderId,
c.Name,
SUM(od.Qty * od.Price) AS total
FROM Orders o
JOIN Customers c ON c.Id = o.CustId
JOIN OrderDetail od ON od.OrderId = o.OrderId
GROUP BY
o.OrderId,
c.Name;-- AFTER: what the formatter produces (shown here so you have the target).
SELECT
o.OrderId,
c.Name,
SUM(od.Qty * od.Price) AS total
FROM Orders o
JOIN Customers c ON c.Id = o.CustId
JOIN OrderDetail od ON od.OrderId = o.OrderId
GROUP BY
o.OrderId,
c.Name;
GOSettings
Demo
Format the one-liner, change a setting, format it again.
Results
Results
Demo
Zoom, aggregates, Save as Markdown, plan defaults.
New types
Fabric
More
Gotchas
Next steps
Thank you for attending my session today.
If you have any additional questions, please don't hesitate to reach out.