I'm a little bit new in Java, and I can open a data base SQLServer but I do with an ODBC, I know that when I want to run the application I need to create ODBC, is there any way to connect to the data base without ODBC?
this is my code
con = DriverManager.getConnection("jdbc:odbc:SIGSA", "sa", "admin");
stm = con.createStatement();
You count with JDBC = Java Database Connectivity
This is the standard to connect to a data base from java. The API defines the method and interfaces to connect
You have to download the jar, and then put it in the classpath of your application
1. classpath = "path_of_files_jar"
2 add them to environment variables
3 in cmd write set classpath=".;path_of_files_jar"
and that is!