How to connect sql server through java code?
问题 I am creating application where I need to connect my services to sql server. When I run the test code after adding dependency, it runs successfully. This is the test code which runs successfully : import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.sql.*; public class SQLConnection { public static void main(String[] args) throws ClassNotFoundException,