자바 연결 sqlserver

package com.erke.service;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.db.DBHelper;



public class GetUserInfoService {
	
	
	public static void main(String[] args){
		getInfoData("003536", "12121");
		
	}
	
	public static List> getInfoData(String ID,String name){
		System.out.println("fdfdf");
		String driverName="com.microsoft.sqlserver.jdbc.SQLServerDriver";
	     String dbUrl="jdbc:sqlserver://     ;DatabaseName=    ";
	     String us="    ";
	     String pw="     ";
	     
		
		List> resultlist=new ArrayList>();
		String sqlLine="     ";
		try{
			
			 Class.forName(driverName);

			 Connection dbConn=DriverManager.getConnection(dbUrl,us,pw);

			   System.out.println("       ");
			
			
			
		}catch(Exception e){
			
		}
		return resultlist;
		
		
	}

}

좋은 웹페이지 즐겨찾기