It seems that you want your Groovy code (Test Case) to connect to SQL server. Katalon Studio does not provide any special magic that let you do it easily. You need to develop your custom solution.
There are many articles how to write a Java code to connect SQL server, for example.