Hi, I would create an generell SQL Script with following query:
select sum(state + user_access + is_read_only + is_in_standby) as Status from sys.databases where name in ('master', 'tempdb', 'DB1', 'DB2')
Now I have used the placeholder @prtg in the query but it didn't work
select sum(state + user_access + is_read_only + is_in_standby) as Status from sys.databases where name in (@prtg)
On the Sensor Settings: Input Parameter: 'master', 'tempdb', 'DB1', 'DB2'
Now I geht following back:
Id 3 is [DBNull]
When I only type master or DB1 in the Input Parameter it works. But I want to type more values in the paramater field.
Add comment