I want to generate inserts of a database in MSSQL (create an insert statement for each data in my database). In other words, I want to do exactly the same what SSMS can do by Generate Script described here. However, I want to achieve this functionality from Java code, via JDBC.
I was looking through the internet, but the only possible solution I could find, was to use stored procedure - for example, this INSERT statement(s) generator (with some improvements)
EDIT: Since it seems my question was too broad, I would like to clarify it: is there any way, despite stored procedure, to generate inserts vis JDBC?