Skip to content

Instantly share code, notes, and snippets.

View technetbytes's full-sized avatar
🎯
Focusing

Saqib Ullah Siddiqui technetbytes

🎯
Focusing
View GitHub Profile
@technetbytes
technetbytes / pyodbc-azure.py
Created July 11, 2016 15:41
Create Azure SQL Table using pyodbc
# -*- 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.
# -*- 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
@technetbytes
technetbytes / mysql-drivers-test.py
Created February 8, 2016 19:05
3 Mysql Drivers for python
#!/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()