반응형 db driver1 초간단 소스 MS-SQL Driver Connect Adapter Test python Database ============================================================ import pymssql Ip = '192.168.0.146' Port = '1433' DB = 'ShopDB' ID = 'Wowcat' PW = 'cocoon115' conn = pymssql.connect( server=Ip, database=DB, user=ID, password=PW ) cursor = conn.cursor() cursor.execute("SELECT @@version;") row = cursor.fetchone() while row: print(row[0]) row = cursor.fetchone() =======================================.. 2021. 10. 6. 이전 1 다음 728x90 반응형