September 15, 2022 at 8:59 am
September 15, 2022 at 10:45 am
Thanks!
Thom A wrote:but I'm not a massive fan of such things.
Can you please specify? Are there any pitfalls when I use it
Pitfuls? A couple would be how to maintain it and the risk that involves.
You would either need to put all the logic in the trigger, which makes things difficult to maintain (as you have to make changes to the trigger every time your rules change), which is less than ideal and needs a high level of permissions.
Alternatively, you could use a database to store the data, however, then you need to ensure that that data is accessible for all LOGIN
s when accessing the server, but if the database or table isn't available when trying to authenticate to the server all login attempts would fail. The advantage, however, is that management of access would be easier.
There is a section of the documentation specifically on Logon Triggers.
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
September 15, 2022 at 6:30 pm
You could restrict this via firewall rules, and possibly some of the things built into Active Directory.
But really, this sound like a maintenance nightmare. What are you trying to accomplish?
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
September 16, 2022 at 7:00 am
Thanks all,
to be honest I didn't knew logon triggers before. Now I learnt something new 🙂
But I agree that these things are too "buggy". Maybe easy to setup, but hard to maintain and risky to accidentally allow unwanted connections.
Basically I like to keep things simple and avoid (if possible) complex solutions in server/system administration.
Firewall rules are what I am using at the moment in our setup. I only wondered if there was some kind of host-based authentication in SQL-Server.
Now I know its not - so thanks again 🙂
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply