【python for MSSQLserver】教程文章相关的互联网学习教程文章

python for MSSQLserver

# -*- coding: utf-8 -*-‘‘‘python coded by written in 2016/8/31Used for get win os log for each windows server‘‘‘ ‘‘‘pymssql 帮助文档http://pymssql.org/en/stable/pymssql_examples.html‘‘‘import pymssqlimport MySQLdbimport time#全局变量host = "192.168.33.190"user = "sa"password = "1111"dbname = "testdb"port = 1433 def fetch_row(): try: #conn = pymssql.connect(host,port,user,password,dbna...