13

If you could live with a finite time (minimum 10-seconds) between executions to catch new/restored databases, you could create a scheduled SQL Server Agent Job and put something like this in a T-SQL Job Step:- SET NOCOUNT ON DECLARE @command nvarchar(max) ; SET @command = N'SET NOCOUNT ON DECLARE @UserName sysname ; SELECT @UserName = USRS.[name] FROM ...


3

Management wants to split the production database which uses Oracle Apex because the Apex application will be on the public internet and therefore security is an issue. If Management don't want the database server that hosts the Apex application on the "public internet" then that's what they want. That database server will move to somewhere "...


2

A few thoughts: If I read this right, you're talking about separate schemas for your test and production databases, vs. physically separate test and production databases. If this is what you're describing, then management is completely correct, not "insane". In this case, you must keep them separate; they shouldn't even exist on the same server. ...


1

I'm not sure there is a good answer. In general, string concatenation to build your SQL is always a bad idea and should be avoided whenever possible. That said, it would be difficult to avoid in your case except for replacing user_id references with bind variables. Other than that, you will have to come up with some custom logic to validate the content of ...


1

SQL Server doesn't really interact directly with a domain controller, or even read group policies directly. That is all handled by Windows.


1

This is because of the "ownership chaining" feature in SQL Server. It means that if one object (in your case a synonym) is calling another object (in your case a table), then it checks if the owner of the objects is the same. If the owner of both objects is the same then the access on the called objects (so your table) is not checked. This feature ...


1

See the documentation about configuring multiple listeners in listener.ora, and about static service registration for each. https://docs.oracle.com/en/database/oracle/oracle-database/19/netag/configuring-and-administering-oracle-net-listener.html#GUID-C3C40DBA-4282-41E1-9562-4B8B10947C4E LISTENER = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (...


Only top voted, non community-wiki answers of a minimum length are eligible