Hi @prasad k ,
It may not be a statement issue, it could be a network related issue with the service provider, your application is unable to connect the database engine. Check your firewall for any blocked setting and raise it with your service provider.
You also can check your error log first to see if there are any messages which seem to correlate with this error. Try to use DBCC to check if there is any corruption in the database: https://learn.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-checkdb-transact-sql?view=sql-server-ver15