sitelink1 https://www.microsoft.com/ko-kr/download...px?id=2505 
sitelink2  
sitelink3  
sitelink4  
sitelink5  
sitelink6  

Java 플랫폼, Enterprise Edition 5에서 사용 가능한 표준 JDBC API(응용 프로그래밍 인터페이스)를 통해

데이터베이스 연결을 제공하는 Type 4 JDBC 드라이버인 SQL Server JDBC 드라이버 2.0을 다운로드하십시오.

 

버전:

2.0

 

File Name:

SQL_Server_JDBC_Driver_20_EULA_KOR.htm

 

게시 날짜:

2009-04-03

 

File Size:

314 KB

 

상호 운용성 개선을 위한 끊임 없는 노력의 일환으로, Microsoft는 새 JDBC(Java Database Connectivity) 드라이버를 출시했습니다. 

SQL Server JDBC 드라이버 2.0은 추가 비용 없이 모든 SQL Server 사용자가 다운로드할 수 있으며, Java 응용 프로그램, 응용 프로그램 서버 또는 Java 사용 애플릿에서 SQL Server 2000, SQL Server 2005 및 SQL Server 2008에 액세스하는 데 사용할 수 있습니다. 

이 드라이버는 Java 플랫폼, Enterprise Edition 5에서 사용 가능한 표준 JDBC API(응용 프로그래밍 인터페이스)를 통해 데이터베이스 연결을 제공하는 Type 4 JDBC 드라이버입니다. 

이번 JDBC 드라이버 릴리스는 JDBC 4.0과 호환되며 JDK(Java Development Kit) 버전 5.0 이상에서 실행됩니다. 

또한 BEA WebLogic, IBM WebSphere 및 JBoss를 포함하여 대부분의 주요 응용 프로그램 서버에서 테스트되었습니다. 

 

참고: SQL Server JDBC 드라이버 2.0을 다운로드하려면 EULA(최종 사용자 사용권 계약)에 동의해야 합니다. 

이 페이지 맨 위의 다운로드 단추를 클릭하여 시작하면 EULA가 나타납니다. EULA를 읽고 동의함 링크를 클릭하여 패키지를 다운로드하십시오. 

보관을 위해 EULA 복사본을 인쇄하십시오. 

참고: 피어 투 피어 지원은 SQL Server 포럼에서 제공됩니다. 이 JDBC 드라이버 릴리스에 대한 의견을 보내려면 SQL Server 사용자 의견 센터를 방문하십시오.

 

 

 

지원되는 운영 체제

HP-UX, Linux, Solaris, Unix, Windows Server 2003 Service Pack 2, Windows Server 2008, Windows Vista Service Pack 1, Windows XP Service Pack 3

 

요구사항

Java Development Kit: 5.0 이상

SQL Server 2008, SQL Server 2005 또는 SQL Server 2000

 

 

 

 

Sample Code

//=====================================================================
//
//  File:    connectURL.java     
//  Summary: This Microsoft JDBC Driver for SQL Server sample application
//         demonstrates how to connect to a SQL Server database by using
//         a connection URL. It also demonstrates how to retrieve data
//         from a SQL Server database by using an SQL statement.
//
//---------------------------------------------------------------------
//
//  This file is part of the Microsoft JDBC Driver for SQL Server Code Samples.
//  Copyright (C) Microsoft Corporation.  All rights reserved.
//
//  This source code is intended only as a supplement to Microsoft
//  Development Tools and/or on-line documentation.  See these other
//  materials for detailed information regarding Microsoft code samples.
//
//  THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF
//  ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//  PARTICULAR PURPOSE.
//
//=====================================================================

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

public class connectURL {

    public static void main(String[] args) {
       
        // Create a variable for the connection string.
        String connectionUrl = "jdbc:sqlserver://localhost:1433;" +
            "databaseName=AdventureWorks;integratedSecurity=true;";

        // Declare the JDBC objects.
        Connection con = null;
        Statement stmt = null;
        ResultSet rs = null;
       
            try {
                // Establish the connection.
                Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
                    con = DriverManager.getConnection(connectionUrl);
           
                    // Create and execute an SQL statement that returns some data.
                    String SQL = "SELECT TOP 10 * FROM Person.Contact";
                    stmt = con.createStatement();
                    rs = stmt.executeQuery(SQL);
           
                    // Iterate through the data in the result set and display it.
                    while (rs.next()) {
                        System.out.println(rs.getString(4) + " " + rs.getString(6));
                    }
            }
       
        // Handle any errors that may have occurred.
        catch (Exception e) {
            e.printStackTrace();
        }

        finally {
            if (rs != null) try { rs.close(); } catch(Exception e) {}
                if (stmt != null) try { stmt.close(); } catch(Exception e) {}
                if (con != null) try { con.close(); } catch(Exception e) {}
        }
    }
}