SQL
datapandasadmin

Pyodbc Sqlalchemy Python 2 and 3 SQL Server Native Client 11.0

This is a sample code to use Python to connect to SQL Server Native Client. import sqlalchemy import pyodbc try: import urllib params = urllib.quote_plus(“DRIVER={SQL Server Native Client 11.0};SERVER=.\MSSQLSERVER_ENT;DATABASE=MagicDirect;Trusted_Connection=yes;”) engine = sqlalchemy.create_engine(‘mssql+pyodbc:///?odbc_connect=%s”‘ % params) results.to_sql(“clusterSegments”, engine, if_exists = ‘replace’)# except (RuntimeError, TypeError, NameError): print(‘Error in Conneccting’) print(RuntimeError, TypeError, NameError) finally: print(“connected”)

Read More »
Data Warehousing
datapandasadmin

Free Entity Relationship and Relational Schema Diagram Tool

ERDPLUS One tool I generally use when working on a projects, mini tasks and exploration is the ERDPLUS tool . It is quite simple and easy to use. It is a Free tool as well. Below are some diagrams I generated when i first got in contact with with tool. ERD DIAGRAMS: 1. 2.  A

Read More »