r/SQLServer • u/jaango123 • Jul 10 '26
Question How connect claude to sql server to analyse
I have a sql server with SSIS packages running and multiple stored procedures. Any way to use my Claude to get the logs connect to sql server and analyse the ssis executions/ analyse stored procs and queries?
0
Upvotes
24
u/VladDBA Microsoft MVP Jul 10 '26
Instead of causing a security incident by giving an external LLM access to your entire instance, why not run something like the First Responder Kit or PSBlitz and then feed the execution plans and findings to Claude?
18
u/mkt853 Jul 10 '26
It's wild to me that we've spent so many years drumming security into people's heads, but AI comes along and everyone just willingly throws the front door wide open no questions asked.
5
u/kill-t Jul 10 '26
Id never let this connect to my instance. You can export definitions of your schema if you want an AI to have better context
6
u/brytarn Jul 10 '26
Have you asked Claude?
2
u/taspeotis Jul 10 '26
Yeah just tell it to connect to it? It can drive anything from the cli e.g. if you want it to read data just use sqlcmd.
Anything more complicated it can write C# and run it.
(This is for Claude Code.)
1
u/RodCoolBeansKimble Jul 11 '26
I save the relevant schema, queries, and dmv results into a local folder and use my enterprise Claude instance to go over them and figure things out. I ask Claude if there are other queries I can run to help sort out whatever I'm trying to do.
0
u/PinkyPonk10 Jul 10 '26
Just get copilot instead
-1
u/SunnyFIREwave Jul 10 '26
Yes you can do that! It can even build Total etl flows and packages for you