Re: bind variables with jdbc

From: Eugene Staten (estaten_at_NOSPAMPLZcox.net)
Date: 03/31/04

  • Next message: Herman Timmermans: "Re: Good written jdbc app or not ?"
    Date: Tue, 30 Mar 2004 20:37:48 -0800
    
    

    Use prepared statments like Jim explained.
    It would not hurt to place some of your more common queries and inserts into
    Stored Procedures.

    SPs help with big queries updates, or inserts.

    "Ivan" <ilee@bigpond.net.au> wrote in message
    news:90137e1b.0403301523.55aed707@posting.google.com...
    > Hi all,
    >
    > I have an application that is written in servlets that connects to an
    > oracle database 8.1.7 via jdbc. My DBA has just notify me that I am
    > not using bind variables in my code and was wondering what i'll need
    > to change to utilise this.
    >
    > At the moment i am just opening a connection, making a statement (sql
    > query) and executing it to return a resultset. Would i need to change
    > all my queries to stored procedures so that bind variables are used or
    > is there another way.
    >
    > thanks all


  • Next message: Herman Timmermans: "Re: Good written jdbc app or not ?"

    Relevant Pages

    • Re: Access migration to SQL Server
      ... caveat in the first sentence, i.e. remove access all together and you don't ... > about having to convert all your queries to views and stored procedures. ... > using a named query parameter to look up a value from a form control and ...
      (microsoft.public.access.conversion)
    • Re: Access migration to SQL Server
      ... caveat in the first sentence, i.e. remove access all together and you don't ... > about having to convert all your queries to views and stored procedures. ... > using a named query parameter to look up a value from a form control and ...
      (microsoft.public.sqlserver.server)
    • Re: Off Topic - Access to Postgres
      ... >>However, I find that using views, stored procedures and pass through queries ... >procedures and pass-through queries. ... >The reason pass-through queries are a problem for Access (and stored ... - To the extent that your application relies on server-side objects, ...
      (comp.databases.ms-access)
    • Re: Off Topic - Access to Postgres
      ... If sprocs and pass through queries are not the solution then ... >However, I find that using views, stored procedures and pass through queries ... The reason pass-through queries are a problem for Access (and stored ... may have to create a saved pass-through query, ...
      (comp.databases.ms-access)
    • Re: queries Vs Stored Procs
      ... > queries in one stored procedure rule. ... > should put each branch into its own stored procedures. ... to have a chain of Procs rather than a chain of queries. ... a single procedure can execute and use the results from several ...
      (microsoft.public.sqlserver.programming)