Results 1 to 4 of 4

Thread: JAVA: General JDBC connection for web application made in JAVA

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    27

    JAVA: General JDBC connection for web application made in JAVA

    Code:
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    String connectionUrl = "jdbc:sqlserver://localhost:1433;database=AdventureWorks;integratedSecurity=true;"
    Connection con = DriverManager.getConnection(connectionUrl);
    OR

    Code:
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    String connectionUrl = "jdbc:sqlserver://localhost:1433;database=AdventureWorks;user=sa;password=123321"
    Connection con = DriverManager.getConnection(connectionUrl);
    Last edited by dotnet; 05-01-2014 at 03:48 PM. Reason: Adding more info

  2. #2

    Re: JAVA: General JDBC connection for web application made in JAVA

    Lưu lại tối về tìm hiểu mới được

  3. #3

    Re: JAVA: General JDBC connection for web application made in JAVA

    Lưu lại t* về tìm hiểu mới được

  4. #4
    Quote Originally Posted by maitrang7995 View Post
    Lưu lại t�* về tìm hiểu mới được
    Lưu lại tối về tìm hiểu mới được

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •