If you have to use Data base SQL server Query into Apps. Then there is no direct connection but what you can do,
Create a process and use SQL execute activity to make a connection on your SQL server and execute command.
Based on command you can pass input and out from/In into UiPath Apps.
This way you can handle all SQL connection. Drawback this would be little bit slow compare to Data Service.
Thanks,
Arvind