Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sqlServerConnect():
- jdbc_url = '127.0.0.1'
- username = "username"
- password = "password"
- driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver"
- try:
- conn = zxJDBC.connect(jdbc_url, username, password, driver)
- print "Connection successful"
- except zxJDBC.DatabaseError, e:
- print "Connection failed:", e
- Connection failed: driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] not found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement