Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

Post Timeline

added 5 characters in body
Source Link
strange_098
  • 1.4k
  • 7
  • 26
  • 44

I made a Java appletapplication to connect to a MySQL database. The connection was made ​​in this way:

public class Connection {
 
 public static Connection getConexao() throws SQLException {
 try {
 Class.forName("com.mysql.jdbc.Driver");
 //System.out.println("Conectado");
 return DriverManager.getConnection("jdbc:mysql://localhost/world","root", "rootadmin");
 } catch (ClassNotFoundException e) {
 throw new SQLException(e.getMessage());
 }
 }
}

Now I needed to change the connection from MySQL to Microsoft SQL Server 2012.

Can anyone help me change the connection to the database?

Thank you all very much.

I made a Java applet to connect to a MySQL database. The connection was made ​​in this way:

public class Connection {
 
 public static Connection getConexao() throws SQLException {
 try {
 Class.forName("com.mysql.jdbc.Driver");
 //System.out.println("Conectado");
 return DriverManager.getConnection("jdbc:mysql://localhost/world","root", "rootadmin");
 } catch (ClassNotFoundException e) {
 throw new SQLException(e.getMessage());
 }
 }
}

Now I needed to change the connection from MySQL to Microsoft SQL Server 2012.

Can anyone help me change the connection to the database?

Thank you all very much.

I made a Java application to connect to a MySQL database. The connection was made ​​in this way:

public class Connection {
 
 public static Connection getConexao() throws SQLException {
 try {
 Class.forName("com.mysql.jdbc.Driver");
 //System.out.println("Conectado");
 return DriverManager.getConnection("jdbc:mysql://localhost/world","root", "rootadmin");
 } catch (ClassNotFoundException e) {
 throw new SQLException(e.getMessage());
 }
 }
}

Now I needed to change the connection from MySQL to Microsoft SQL Server 2012.

Can anyone help me change the connection to the database?

Thank you all very much.

How Connect javato connect Java to Microsoft SQL server

I made a javaJava applet to connect to a mysqlMySQL database. The connection was made ​​in this way:

public class Connection {

public static Connection getConexao()throws SQLException{
 try{
 Class.forName("com.mysql.jdbc.Driver");
 //System.out.println("Conectado");
 return DriverManager.getConnection("jdbc:mysql://localhost/world","root", "rootadmin");
 }catch(ClassNotFoundException e) {
 throw new SQLException(e.getMessage());
 }
}
}

Now I needed to change the connection. Instead of being in mysql need to be taken from MySQL to MS SQL 2012Microsoft SQL Server 2012.

DoesCan anyone can help help me change the connection to the database?

Thank you all very much. Sincere greetings.

How Connect java to Microsoft SQL server

I made a java applet to connect to a mysql database. The connection was made ​​in this way:

public class Connection {
public static Connection getConexao()throws SQLException{
 try{
 Class.forName("com.mysql.jdbc.Driver");
 //System.out.println("Conectado");
 return DriverManager.getConnection("jdbc:mysql://localhost/world","root", "rootadmin");
 }catch(ClassNotFoundException e) {
 throw new SQLException(e.getMessage());
 }
}
}

Now I needed to change the connection. Instead of being in mysql need to be taken to MS SQL 2012.

Does anyone can help me change the connection to the database?

Thank you all very much. Sincere greetings.

How to connect Java to Microsoft SQL server

I made a Java applet to connect to a MySQL database. The connection was made ​​in this way:

public class Connection {

public static Connection getConexao()throws SQLException{
 try{
 Class.forName("com.mysql.jdbc.Driver");
 //System.out.println("Conectado");
 return DriverManager.getConnection("jdbc:mysql://localhost/world","root", "rootadmin");
 }catch(ClassNotFoundException e) {
 throw new SQLException(e.getMessage());
 }
}
}

Now I needed to change the connection from MySQL to Microsoft SQL Server 2012.

Can anyone help me change the connection to the database?

Thank you all very much.

deleted 20 characters in body; edited title
Source Link
Sleiman Jneidi
  • 23.4k
  • 14
  • 60
  • 80

How Connect java to Microsoft SQL server Management Studio

I made a java applet to connect to a mysql database. The connection was made ​​in this way:

public class Connection {
public static Connection getConexao()throws SQLException{
 try{
 Class.forName("com.mysql.jdbc.Driver");
 //System.out.println("Conectado");
 return DriverManager.getConnection("jdbc:mysql://localhost/world","root", "rootadmin");
 
 }catch(ClassNotFoundException e) {
 throw new SQLException(e.getMessage());
 }
}
}

Now I needed to change the connection. Instead of being in mysql need to be taken to sql server management studio 2012MS SQL 2012.

Does anyone can help me change the connection to the database?

Thank you all very much. Sincere greetings.

How Connect java to Microsoft SQL server Management Studio

I made a java applet to connect to a mysql database. The connection was made ​​in this way:

public class Connection {
public static Connection getConexao()throws SQLException{
 try{
 Class.forName("com.mysql.jdbc.Driver");
 //System.out.println("Conectado");
 return DriverManager.getConnection("jdbc:mysql://localhost/world","root", "rootadmin");
 
 }catch(ClassNotFoundException e) {
 throw new SQLException(e.getMessage());
 }
}
}

Now I needed to change the connection. Instead of being in mysql need to be taken to sql server management studio 2012.

Does anyone can help me change the connection to the database?

Thank you all very much. Sincere greetings.

How Connect java to Microsoft SQL server

I made a java applet to connect to a mysql database. The connection was made ​​in this way:

public class Connection {
public static Connection getConexao()throws SQLException{
 try{
 Class.forName("com.mysql.jdbc.Driver");
 //System.out.println("Conectado");
 return DriverManager.getConnection("jdbc:mysql://localhost/world","root", "rootadmin");
 
 }catch(ClassNotFoundException e) {
 throw new SQLException(e.getMessage());
 }
}
}

Now I needed to change the connection. Instead of being in mysql need to be taken to MS SQL 2012.

Does anyone can help me change the connection to the database?

Thank you all very much. Sincere greetings.

Source Link
strange_098
  • 1.4k
  • 7
  • 26
  • 44
Loading
default

AltStyle によって変換されたページ (->オリジナル) /