Where to store static SQL (Application or Database) and why? [message #576591] |
Wed, 06 February 2013 06:59 |
manubatham20
Messages: 566 Registered: September 2010 Location: Seattle, WA, USA
|
Senior Member |
|
|
Hi,
Can anyone help me understanding where to store the static SQL code (Database or Application).
Consider a scenario, that I am executing a simple SQL from Java which is returning some value, and it will not be changed in future.
Can anyone suggest me, should I store this sql in java application code or in database in form of procedure/function and returning the result to Java. Is there any security/performance impact?
Thanks,
Manu
|
|
|
|
|
|