I guess you are trying to run the SQL query on BP Database itself from the run time resource which is not advisable.
BP App Server name is internal to BP and SQL server VBO accepts alias or hostname or Ip to configure the connection as per basic dotnet guideines.
------------------------------
Vivek Goel
RPA Architect
Asia/Singapore
https://www.rpatools.com/"If you like this post, please press the "Recommend" Button.
------------------------------