As I know I can get the databases from SQL Server using sys.databases, however it's listing offline databases also. I keep checking for a flag which shows database online/offline status.
Can anyone help me with this ?
I want the databases from SQL Server which are online, just need to ignore the offline ones