Hi i have a requirement to insert values into sql server table in my jira plugin , i created a new table with three columns , i wrote the following code to insert values into database table , but the values are not inserting , following is my code snipet
namevalue = getName(); desvalue = getDescription(); roleValue = getRole(); Class.forName("net.sourceforge.jtds.jdbc.Driver" ); Connection con =DriverManager.getConnection("jdbc:jtds:sqlserver://localhost:1433/jiradb","jirauser","jirauser"); log.info("test connection.."); String query = "insert into jiradb.dbo.testworklog values(namevalue,desvalue,rolevalue)"; Statement stmt = con.createStatement(); stmt.executeQuery(query); log.info("values inserted in database table.. "); con.close();
Can any body guide me where i did the mistake .
Thanks in advance
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs