← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #697555]: Connecting to a DB in Sikuli- is there a widely used method for Sikuli 2.0.5?

 

Question #697555 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/697555

Description changed to:
Hi, I have connected to a DB in Sikuli before the 2.X versions. In the 2.0.5 version, I can no longer get my scripts to connect to the DB.  For reference, the issue I get is similar to this: https://answers.launchpad.net/sikuli/+question/202408
I have tried changing the classpath via launching Sikuli using cmd files as is suggested in that question, this has not solved the issue.
I have used zxJDBC.jar for connecting.

Is there a standard way people have been able to connect to DB in the
2.0.5 version? I can't find anything that helps but I could easily be
looking in the wrong places.

Any help/suggestions appreciated. I will include below a snippet of how
I have connected to DB in the past.


from com.ziclix.python.sql import zxJDBC
connection = zxJDBC.connect(DB URL, Username, Password,'com.microsoft.sqlserver.jdbc.SQLServerDriver')
cursor = connection.cursor()


Thank you.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.