Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Oracle and Dotnet
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Larry  
View profile  
 More options Jun 2 2005, 4:17 pm
Newsgroups: comp.databases.oracle.server
From: Larry <la...@larry.com>
Date: Thu, 02 Jun 2005 20:17:16 GMT
Local: Thurs, Jun 2 2005 4:17 pm
Subject: 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();
   }

}


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.