About 609,000 results
Open links in new tab
  1. How to connect Java to Microsoft SQL server - Stack Overflow

    May 15, 2014 · This answer is presented for next visitors on this kind of question. Configuring the java driver connection for SQL Server can be quite confusing for new users. I'll guide you here through SQL Server Management Studio (SSMS): There're 2 kinds of authentification accepted on SQL Server. They are Windows & SQL Server authentification.

  2. How do you configure a DataSource in Java to connect to MS SQL …

    I'm trying to follow Java's JDBC tutorials to write a Java program that can connect to SQL Server 2008. I'm getting lost at the point of making a connection. The following snippet is from the tutorial:

  3. java - JDBC connection to MSSQL server in windows …

    May 11, 2013 · If it doesnt work, you can open your SQL Server 2019 Configuration Manager -> SQL Server Network Configuration , all protocol's name should be Enabled. After that you should click on (TCP/IP) / IP Addresses, you will see that IPALL-> TCP PORT should be 1433.

  4. java - How do I connect to a SQL Server 2008 database using JDBC ...

    Mar 16, 2010 · You can try configure SQL server: Step 1: Open SQL server 20xx Configuration Manager ; Step 2: Click Protocols for SQL.. in SQL server configuration. Then, right click TCP/IP, choose Properties ; Step 3: Click tab IP Address, Edit All TCP. Port is 1433; NOTE: ALL TCP port is 1433 Finally, restart the server.

  5. SSL Connection to mssql from a Java Program - Stack Overflow

    Jun 25, 2015 · Now open SQL Server Configuration Manager. SQL server network configuration, properties; Set Force Encryption to Yes, In certificate Tab, Choose the Certificate recently added. Restart SQL Server Services. Try encryption connection to database and connect. But how to connect it with java program?

  6. How to make Java work with SQL Server? - Stack Overflow

    Dec 1, 2012 · The JTDs driver seems to work on some cases. In a certain server, the jTDS worked fine for an 2008 R2 instance. In another server, though, I had to use Microsoft's JBDC driver sqljdbc4.jar. But then, it would only work after setting the JRE environment to 1.6(or higher). I used 1.5 for the other server, so I waisted a lot of time on this ...

  7. java - Which jar to use for connecting to MS SQL server - Stack …

    Jul 13, 2018 · Java connect to a remote MS SQL server database. 1. Connection Java application with SQL Server. Hot ...

  8. Java program to connect to Sql Server and running the sample …

    Sep 27, 2013 · download Microsoft JDBC Driver 4.0 for SQL Server which supports: SQL Server versions: 2005, 2008, 2008 R2, and 2012. JDK version: 5.0 and 6.0. Run the downloaded program sqljdbc__.exe. It will extract the files into a specified directory (default is Microsoft JDBC Driver 4.0 for SQL Server).

  9. java - MS SQL Server and JDBC: closed connection - Stack Overflow

    Jun 27, 2012 · Im getting I/O Error: DB server closed connection. while connecting to MS SQL server 2008 from java code . SQL server is in mixed mode and its in local machine.My connection string is jTDS jdbc:

  10. How do I execute a MS SQL Server stored procedure in java/jsp ...

    java.sql.ResultSet ResultSet = cs.executeQuery(); And this: java.sql.CallableStatement cs = conn.prepareCall("{execute sp_test}"); And this: java.sql.CallableStatement cs = conn.prepareCall("{exec sp_test}"); And nothing worked. Once I can get this working, then I can run an actual stored procedure that returns table data from a select statement.

Refresh