Python/DB (1) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ [Python] SQL Server (pyodbc) local class Database(): def __init__(self): self.server = 'localhost' self.database = 'adb' self.cnxn = pyodbc.connect('Trusted_Connection=yes', DRIVER=self.driver, SERVER=self.server, PORT=1433, DATABASE=self.database) import pyodbc import pandas as pd class aDb(): def __init__(self): self.server = '130.1.1.1' self.database = 'adb' self.username = 'sa' self.password = '1234' self.driver = '{ODB.. ์ด์ 1 ๋ค์ ํฐ์คํ ๋ฆฌํด๋ฐ Developer๐ค๊ตฌ๋ ํ๊ธฐ