SQL
-
[ADO.NET] DSN없이 ODBC 연결로 DB에 대한 Table 정보 가져오기.NET/개념 및 유용한 팁 2015. 2. 7. 22:27
ADO.NET 및 ODBC를 이용한 전통적인 쿼리 연동 방식은 더 이상 선호되지 않습니다. EntityFramework 또는 Dapper를 이용한 ORM 방식의 DB연동을 사용해보세요. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; using System.Data.Odbc; namespace DynamicDBread { class Program { /// /// DB가 구축된 서버의 IP /// static string IP = "localhost"; /// /// DB 드라이버명 'odbc 데..