MSSQL Database Trigger
Hi!
Can LinqPad show Database Triggers in the tree (and possibly give the edit../drop.. right mouse menu for it)?
If yes, how/where/what do I have to change on the connetion properties to see it?
If no, would be a nice to have.
BR, Reinhard
Comments
@JoeAlbahari sorry to bother but is this possible with LinqPad - maybe some hidden feature I am unable to find the correct settings for?
LINQPad doesn't show constraints, triggers, indexes or statistics. The Schema Explorer displays only things that can be queried.
What do you mean by "only things that can be queried"?
Couldn't you use something like this (or am I missing the obvious here?)?
MSSQL Triggers:
Yes, it could be done, but it all has to be coded up in the UI and tested on various versions of SQL Server, SQL Azure, Synapse Classic, Synapse Serverless and Azure Data Explorer. Also, the query to retrieve constraints, triggers and indexes may work correctly but end up running slowly under certain conditions with certain schemas, causing poor performance or timeouts that for some customers prevent LINQPad from querying at all. This all has to be extensively checked and guarded with metering and opt-in/opt-out flags. I'm not saying it can't be done, but it's non-trivial to do it safely.
Thanks for clarification.