This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun July 10 10:09:54 2016 | |
@author: saqibullah | |
@email: saqibullah@gmail.com | |
""" | |
import pyodbc | |
# Using pyodbc library create Azure SQL table and insert single record. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Nov 26 19:29:54 2015 | |
@author: saqibullah | |
@email: saqibullah@gmail.com | |
""" | |
import urllib2 | |
import getpass | |
from datetime import date, timedelta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
hostname = '127.0.0.1' | |
username = 'root' | |
password = 'root' | |
database = 'schooldb' | |
# Simple routine to run a query on a database and print the results: | |
def doQuery( conn ) : | |
cur = conn.cursor() |