Using windows authentication:
String url ="jdbc:sqlserver://PC01\inst01;databaseName=DB01;integratedSecurity=true";
Using SQL authentication:
String url ="jdbc:sqlserver://PC01\inst01;databaseName=DB01";
More Related Contents:
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- Show JDBC ResultSet in HTML in JSP page using MVC and DAO pattern
- Solving a “communications link failure” with JDBC and MySQL [duplicate]
- How to establish a connection pool in JDBC?
- java.sql.SQLException: – ORA-01000: maximum open cursors exceeded
- Cannot issue data manipulation statements with executeQuery()
- Why do I get java.lang.AbstractMethodError when trying to load a blob in the db?
- JDBC Class.forName vs DriverManager.registerDriver
- IO Error: The Network Adapter could not establish the connection
- java.sql.SQLException: Column count doesn’t match value count at row 1
- How to call oracle stored procedure which include user-defined type in java?
- How do I connect to a SQL Server 2008 database using JDBC?
- Java JDBC Access denied for user [closed]
- How often should Connection, Statement and ResultSet be closed in JDBC?
- How is driver class located in JDBC4
- Getting output from dbms_output.get_lines using JDBC
- JDBC ODBC Driver Connection
- Java – Can’t use ResultSet after connection close
- Timezones in SQL DATE vs java.sql.Date
- runtime error: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- How do I use PostgreSQL JSON(B) operators containing a question mark “?” via JDBC
- oracle.jdbc.driver.OracleDriver ClassNotFoundException
- MySQL connector error “The server time zone value Central European Time” [duplicate]
- Connect To SQL Server With Windows Authentication From A Linux Machine Through JDBC
- Oracle’s RETURNING INTO usage in Java (JDBC, Prepared Statement)
- Connection cannot be cast to oracle.jdbc.OracleConnection
- How to map a ResultSet with unknown amount of columns to a List and display it in a HTML table?
- NoClassDefFoundError sun/io/ByteToCharConverter with InterBase JDBC driver
- Performance of MySQL Insert statements in Java: Batch mode prepared statements vs single insert with multiple values
- Iterating a ResultSet using the JDBC for Oracle takes a lot of time about 16s?