Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle and Dotnet

Re: Oracle and Dotnet

From: <pobox002_at_bebub.com>
Date: 2 Jun 2005 13:24:15 -0700
Message-ID: <1117743855.500810.313870@f14g2000cwb.googlegroups.com>


You are not using bind variables and over parsing. Each time you build that string it is a unique statement that needs validating and compiling.

You should have something like

string SQL = "insert into test values (?)";

and bind the placeholder. Sorry I am not a C# programmer so I don't have the syntax, but there should be ODP.NET code examples on http://otn.oracle.com

-- 
MJB
Received on Thu Jun 02 2005 - 15:24:15 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US