Hi,
I need to run a particular query on all the databases of an enviroment. The report must include the database name which I thing I can obtain it from (
set isolation to dirty read;
database sysmaster;
select name from sysdatabases
where name not in ('sysmaster','sysutils')
and to check if a user has connect to any database in this database or not (select count(username) from sysusers where username = 'user001'.
How can I implement it, so that I can run an SQL script
I need to run a particular query on all the databases of an enviroment. The report must include the database name which I thing I can obtain it from (
set isolation to dirty read;
database sysmaster;
select name from sysdatabases
where name not in ('sysmaster','sysutils')
and to check if a user has connect to any database in this database or not (select count(username) from sysusers where username = 'user001'.
How can I implement it, so that I can run an SQL script