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) {}
        }
    }
}

 

번호 제목 글쓴이 날짜 조회 수
303 [AWS, 웹 프로젝트] AWS+MySQL+SpringFrameWork5+JAVA8+ React+Gradle+Webpack+GIT+Jenkins file 황제낙엽 2020.04.08 553
302 Runtime 클래스의 exec() 함수 실행시의 실행 결과 수집 황제낙엽 2020.03.26 359
301 SQLite JDBC Driver 황제낙엽 2020.02.25 3625
300 MySQL 한글깨짐현상 제거 ( UTF8 ) 황제낙엽 2019.12.08 825
299 java.util.ConcurrentModificationException 황제낙엽 2019.09.08 346
298 String, StringBuilder, StringBuffer file 황제낙엽 2019.08.03 499
297 String vs StringBuffer vs StringBuilder in Java 황제낙엽 2019.08.03 747
296 Calendar.set() - 날짜 설정하기, Calendar.add() - 날짜 더하기, Calendar.roll() - 그 부분만 날짜 더하기 황제낙엽 2019.08.02 423
295 File 클래스 정리 황제낙엽 2019.07.29 437
294 파일 사이즈를 반환하는 유틸 함수 황제낙엽 2019.07.29 481
293 BufferedReader, BufferedWriter를 활용한 빠른 입출력 황제낙엽 2019.07.29 448
292 현재날짜, 현재시간을 원하는 형태로 출력하는(Format) 다양한 방법 file 황제낙엽 2019.07.29 386
291 자바 소수점 n번째 자리까지 반올림하기 황제낙엽 2019.07.29 473
290 java base64 encodeing,decoding 사용법 황제낙엽 2019.07.24 476
289 java.lang.StackTraceElement Class의 내용 출력 황제낙엽 2019.07.03 453
288 세션의 timeout 설정 >> HttpSession.setMaxInactiveInterval() 황제낙엽 2019.07.03 8579
287 jQuery JSON 데이터 통신의 특성 (HttpServletRequest) 황제낙엽 2019.06.23 523
286 [HttpURLConnection] 서버와의 통신 시도 시점 관련 황제낙엽 2019.06.23 577
285 역컴파일러 (decompiler, jad.exe) file 황제낙엽 2019.06.20 507
» Microsoft SQL Server JDBC 드라이버 2.0 file 황제낙엽 2019.05.22 470