{{|
|}}
1. ADO? ¶
{{|Microsoft ADO (ActiveX Data Objects) is a Component object model object for accessing data sources. It provides a layer between programming languages and databases, which allows a developer to write programs which access data, without knowing how the database is implemented. No knowledge of SQL is required to access a database when using ADO, although one can use ADO to execute arbitrary SQL commands. The disadvantage of this is that this introduces a dependency upon the database.
|}}
๋ง์ดํฌ๋ก์ํํธ ADO(ActiveX Data Objects)๋ ๋ฐ์ดํฐ ์์ค์ ์ ๊ทผํ๋ ค๊ณ ๊ณ ์๋ COM๊ฐ์ฒด์ด๋ค. ์ด๊ฒ์ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด์ ๋ฐ์ดํฐ ๋ฒ ์ด์ค ์ฌ์ด์ ์ธต์ ๋ง๋ค์ด์ค๋ค. ์ด ์ธต์ ๊ฐ๋ฐ์๋ค์ด DB์ ๊ตฌํ๋ถ์ ์ ๊ฒฝ์ฐ์ง ์๊ณ ๋ฐ์ดํฐ๋ฅผ ๋ค๋ฃจ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํ๋๋ก ํด์ค๋ค. ADO ๋ฅผ ์ด์ฉํ ๊ฒฝ์ฐ, ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ ๊ทผํ๊ธฐ ์ํด์ SQL ์ ์ ํ์๋ ์๋ค. ๋ฌผ๋ก , SQL ์ปค๋งจ๋๋ฅผ ์ํํ๊ธฐ ์ํด ADO ๋ฅผ ์ด์ฉํ ์ ์๋ค. ํ์ง๋ง, SQL ์ปค๋งจ๋๋ฅผ ์ง์ ์ด์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ํ ์์กด์ฑ์ ๊ฐ์ ธ์จ๋ค๋ ๋จ์ ์ด ์๋ค.
MS ADO
|}}
๋ง์ดํฌ๋ก์ํํธ ADO(ActiveX Data Objects)๋ ๋ฐ์ดํฐ ์์ค์ ์ ๊ทผํ๋ ค๊ณ ๊ณ ์๋ COM๊ฐ์ฒด์ด๋ค. ์ด๊ฒ์ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด์ ๋ฐ์ดํฐ ๋ฒ ์ด์ค ์ฌ์ด์ ์ธต์ ๋ง๋ค์ด์ค๋ค. ์ด ์ธต์ ๊ฐ๋ฐ์๋ค์ด DB์ ๊ตฌํ๋ถ์ ์ ๊ฒฝ์ฐ์ง ์๊ณ ๋ฐ์ดํฐ๋ฅผ ๋ค๋ฃจ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํ๋๋ก ํด์ค๋ค. ADO ๋ฅผ ์ด์ฉํ ๊ฒฝ์ฐ, ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ ๊ทผํ๊ธฐ ์ํด์ SQL ์ ์ ํ์๋ ์๋ค. ๋ฌผ๋ก , SQL ์ปค๋งจ๋๋ฅผ ์ํํ๊ธฐ ์ํด ADO ๋ฅผ ์ด์ฉํ ์ ์๋ค. ํ์ง๋ง, SQL ์ปค๋งจ๋๋ฅผ ์ง์ ์ด์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ํ ์์กด์ฑ์ ๊ฐ์ ธ์จ๋ค๋ ๋จ์ ์ด ์๋ค.
MS ADO
2. in .NET Framework ¶
{{|In the newer programming framework of .NET, Microsoft also present an upgraded version of ADO called ADO.NET, its object structure is quite different from that of traditional ADO. But ADO.NET is still not quite popular and mature till now.
|}}
์๋ก์ด ํ๋ก๊ทธ๋๋ฐ ํ๋ ์์์ธ .NET์์ MS๋ ADO์ ์ ๊ทธ๋ ์ด๋ ๋ฒ์ ์ธ ADO.NET์ ๋ง๋ค์๋ค. ADO.NET์ ๊ฐ์ฒด ๊ตฌ์กฐ๋ ๊ธฐ์กด์ ADO์๋ ๊ฝค ๋ค๋ฅด๋ค. ํ์ง๋ง ADO.NET์ ์์ง๊น์ง๋ ๋์คํ๋๊ฑฐ๋ ์ฑ์ํ๋์ง ๋ชปํ๋ค.
|}}
์๋ก์ด ํ๋ก๊ทธ๋๋ฐ ํ๋ ์์์ธ .NET์์ MS๋ ADO์ ์ ๊ทธ๋ ์ด๋ ๋ฒ์ ์ธ ADO.NET์ ๋ง๋ค์๋ค. ADO.NET์ ๊ฐ์ฒด ๊ตฌ์กฐ๋ ๊ธฐ์กด์ ADO์๋ ๊ฝค ๋ค๋ฅด๋ค. ํ์ง๋ง ADO.NET์ ์์ง๊น์ง๋ ๋์คํ๋๊ฑฐ๋ ์ฑ์ํ๋์ง ๋ชปํ๋ค.
3. Thread ¶
ADO ๋ ActiveX ์ด๋ฏ๋ก C++ ์ด๊ฑด VB ์ด๊ฑด Python ์ด๊ฑด ์ด๋์๋ ์ง ์ด์ฉ๊ฐ๋ฅ. ํ์ง๋ง, ์ญ์๋ VB ๋ Python ๋ฑ์์ ์ฐ๋๊ฒ ํธ๋ฆฌ. ๊ฐ์ธ์ ์ผ๋ก๋ ODBC ์ฐ๋์ ์ํ๊ณ ๋ฐ๋ก ADO ๋ก C++ Database Programming ์ ํ์๋๋ฐ, ํฐ ๋ฌธ์ ๋ ์์๋ ๊ธฐ์ต. (ํ๊ธด, C++ ๋ก DB Programming ํ ์ผ ์์ฒด๊ฐ ๊ฑฐ์ ์์๊ฒจ์..) --1002