Select querry in SQL Server using Execute Command

Hi,
Check if the connection is still open, or somewhere on the line you closed the connection, for me that was the issue .
Hope this may help you ! ( also if the connection is not open then the query won’t work)

Regards,
Serban

1 Like