l ๐Ÿค– ์ฝ”๋“œ l

์ดํด๋ฆฝ์Šค mssql ์—ฐ๋™ํ•˜๊ธฐ

์ฝ”๋“œ๊ทธ๋ฆผ 2020. 5. 21.
๋ฐ˜์‘ํ˜•

1. jdbc ๋“œ๋ผ์ด๋ฒ„๋ฅผ ๋‹ค์šด๋ฐ›์•„์ค๋‹ˆ๋‹ค.

https://docs.microsoft.com/en-us/sql/connect/jdbc/microsoft-jdbc-driver-for-sql-server?view=sql-server-ver15

 

Microsoft JDBC Driver for SQL Server - SQL Server

Microsoft provides a JDBC driver for use with SQL Server and Azure SQL Database, enabling connectivity from any Java application, server, or applet.

docs.microsoft.com

์œ„์˜ ๋งํฌ๋กœ ๋“ค์–ด๊ฐ€์…”์„œ ์ € ๋นจ๊ฐ„๋ฐ•์Šค ๋ถ€๋ถ„์„ ๋ˆŒ๋Ÿฌ์ฃผ๋ฉด ๋ฉ๋‹ˆ๋‹น.

 

 

 

2. ์••์ถ• ํ•ด์ œํ•˜์‹œ๊ณ  ์ดํด๋ฆฝ์Šค๋กœ ๋“ค์–ด๊ฐ€์ค๋‹ˆ๋‹ค.

 

 

3. ์ดํด๋ฆฝ์Šค Data Source Explorer์—์„œ Database Connections ์˜ค๋ฅธ์ชฝ ํด๋ฆญ !! new ์„ ํƒํ•ด์ค๋‹ˆ๋‹ค.

 

 

 

 

4. mssql ์€ SQL Server ๋ฅผ ์„ ํƒํ•ด ์ฃผ์„ธ์š”.

 

 

 

 

5. ๋“œ๋ผ์ด๋ฒ„ ์ด๋ฆ„ ์˜†์—์žˆ๋Š” ์ชผ๊ผฌ๋งŒ ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ์ฃผ์„ธ์š”.

 

 

 

 

 

 

6. ์ €๋Š” 2005๋ฒ„์ „์œผ๋กœ ์„ ํƒํ–ˆ๋Š”๋ฐ ์ตœ์‹ ๋ฒ„์ „์˜ jdbc๋ฅผ ๋ฐ›์œผ์…จ๋‹ค๋ฉด ์ดํ•˜ ๋ฒ„์ „์€ ๋‹ค ํ˜ธํ™˜๋œ๋‹ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.

 

 

 

 

 

7. JAR List์— ๊ฐ€์…”์„œ ์›๋ž˜ ์žˆ๋˜ sqljdbc.jar๋Š” remove ํ•ด์ฃผ์„ธ์š”!

 

 

 

 

8. ์ƒˆ๋กœ๋ฐ›์€ mssql-jdbc jar๋ฅผ addํ•ด์ค๋‹ˆ๋‹ค~

 

OK ํ•ด์ฃผ์„ธ์š”~~~

 

 

 

9. ๋‚˜๋จธ์ง€ ์„ค์ •๊ฐ’๋“ค์„ ๋„ฃ์œผ์‹œ๊ณ ~ Test Connection์—์„œ ping succeeded! ๊ฐ€ ๋‚˜์˜ค๋ฉด ์„ฑ๊ณต์ž…๋‹ˆ๋‹ค!

 

๋งจ์œ„์— Database์ด๋ฆ„์„ ๋‚ด๊ฐ€ ์ƒ์„ฑํ•œ ๋ฐ์ดํ„ฐ ๋ฒ ์ด์Šค ์ด๋ฆ„์œผ๋กœ ๋ฐ”๊พธ๋Š” ๊ฒƒ ์žŠ์ง€๋งˆ์„ธ์š”~!!!

 

 

 

 

 

10. ์ด์ œ sql ํŒŒ์ผ ํ•˜๋‚˜ ๋งŒ๋“œ์‹œ๊ณ  ํšŒ์ƒ‰์„ค์ •๊ฐ’๋“ค ๋„ฃ์–ด์ฃผ์‹œ๊ณ ~ ์ฟผ๋ฆฌ ์‹คํ–‰ ํ•ด ๋ณด์„ธ์š”~~

 

 

์ฟผ๋ฆฌ ์‹คํ–‰ ๋‹จ์ถ•ํ‚ค๋Š” ์ฟผ๋ฆฌ ๋“œ๋ž˜๊ทธ ํ›„ alt+x  ์ž…๋‹ˆ๋‹ค.

 

 

๊นƒํ—ˆ๋ธŒ ๋ณด๋Ÿฌ ๋†€๋Ÿฌ์˜ค์„ธ์š” ๐Ÿ‘‡ (๋งžํŒ”ํ™˜์˜)

https://github.com/Joowon0220

 

Joowon0220 - Overview

๐™„ ๐™๐™ค๐™ฅ๐™š ๐™ข๐™ฎ ๐™˜๐™ค๐™™๐™š'๐™จ ๐™ฌ๐™–๐™ง๐™ข๐™ฉ๐™ ๐™ฉ๐™ค๐™ช๐™˜๐™๐™š๐™จ ๐™ฎ๐™ค๐™ช :) . Joowon0220 has 14 repositories available. Follow their code on GitHub.

github.com

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€

๐Ÿ’ฒ ์ถ”์ฒœ ๊ธ€