Execute Query

I am trying to get the data from Database (MSSQL) using select command. But getting below error
Error at Execute query in main.neek : Database: Connection is closed… Please refer to Help Center to make sure the activity ‘Execute query’ was set up correctly and also How to save this data in variable in studio?

@AnkitDwivedi It is possible a firewall or virus/malware program is blocking the connection. cross check once by connecting to DB from the machine where you are trying to run a bot and see if firewall or virus/malware program is blocking the connection