Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle and Dotnet
Maybe the CSharp code will help...
using System;
using Oracle.DataAccess.Client;
class insert
{
static void Main()
{
String cs = "User Id=nopusr;Password=nopusr;Data Source=nop"; OracleConnection con = new OracleConnection(cs); con.Open(); OracleCommand cmd = new OracleCommand(); cmd.Connection = con; for (int x = 1; x<1000; x++) { string SQL = "insert into test values ('" + x.ToString() + "')"; cmd.CommandText = SQL; cmd.ExecuteNonQuery(); } cmd.CommandText = "commit"; cmd.ExecuteNonQuery(); cmd.Dispose(); con.Close(); con.Dispose();
![]() |
![]() |