1. Click connect in the upper right corner
2.Select other Repositories
3.Select database
4. Select the sqlserver connection and fill in the address, database name, user name, and password
Some users will report an error, "Driver class 'net.sourceforge.jtds.jdbc.Driver' could not be found, make sure the 'MS SQL Server' driver (jar file) is installed.
net.sourceforge.jtds.jdbc.Driver" , because the sqlserver connection jar package is not introduced
Download address: https://www.microsoft.com/en-us/download/details.aspx?id=11774
Put sqljdbc42.jar in the lib directory. An error will still be reported during testing, so you need to download jtds-1.3.1.jar and put it in the lib directory.
Test the connection again successfully