Link to home
Start Free TrialLog in
Avatar of venkatesh Sarivisetty
venkatesh SarivisettyFlag for India

asked on

JAVA & SQL Automation

I have 5 Quiries which will pull the data from the oracle database and show the results

Now I am planning to work on a project like as below

1. JAVA program to use the Quries and pull those information and
2. Write into a spreadsheet with individual sheet names and
3. Finally send out an mail to the team with the link where I have copied the sheets.

Please share your thoughts

Thanks
Venkatesh.
Avatar of Geert G
Geert G
Flag of Belgium image

why not create a spreadsheet with a query per sheet ?

when they hit refresh in the sheet, the data gets reloaded.
Seems way easier
Avatar of venkatesh Sarivisetty

ASKER

How to do that , As I am fresher in JAVA and SQL DB combination . Please share any samples
Also the final should be it should work as automated,, every day the team should the mail notification with the output what they are seeing in the spreadsheet.. Hope you have understood the req..
Let me know if you need more details.
there are many examples of how to connect excel to an oracle database

sample via lmgtfy:
http://bfy.tw/Grwa
there is no point for the mail
just open the spreadsheet and hit refresh
it is asking user name and password. Datasorce and Location
from where I can get this information..
from the same place you run your query ?
No this is not my requirment. Thanks for your help!!!
I am looking for a java script which can be helpful to write into the spreadsheet and send the mail to the team

Thanks
Venkatesh.
SOLUTION
Avatar of venkatesh Sarivisetty
venkatesh Sarivisetty
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

I'm not a Java person but if you can create a spreadsheet with one query, it should be a simple matter to add a loop to run through several queries and create a new sheet on each loop.

Since you say you are new to Java, where did the Java requirement come from?  Do you not have Java developers that work with you that can help?

I posted some .Net code back in 2013 that shows how to create a spreadsheet from table data.

Hopefully it can give you some ideas:
https://www.experts-exchange.com/questions/28225475/Best-way-to-export-to-excel-from-OracledataReader-in-c.html?anchorAnswerId=39450396#a39450396
Thank you NetMinder, But I am keenly looking for Javascript . becoz I can add this code into a scheduler by adding a mail to the code..  Hope you have understood. thanks much for sharing your thoughts.

Thanks
Venkatesh.
Java and JavaScript are two different things.

Not fully understanding but that is OK.  I don't have to.  You can schedule and email from just about any language.
If who can able to help on my requirent can help me to add the Mail notification at the end with the path where I am placing the output file is really helpful

Thanks
Venkatesh
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If possible, please post your code and accept that so others may benefit from it.
As my own solution worked here rather than the suggestiong shared by the members