Advertisement
dzukp

Untitled

Nov 27th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. import pyodbc
  2. conn = pyodbc.connect(driver='{SQL Server}', server='localhost', database='gips', uid='sa', pwd='123')
  3. curs = conn.cursor()
  4. curs.execute("insert into messages (message, level, time) values ('123123', 10, '2011-10-19')")
  5. curs.commit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement