Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2005

Tip: Looking for answers? Try searching our database.

Problems in OleDb for Oracle

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sunny076@yahoo.com - 04 May 2005 23:28 GMT
Hi,

I am using the same code below for ADO.NET and MS OLEDB provider for
Oracle but in OLEDB, I get the error "ORA-01008: Not all variables
bound". I don't have a clue what was wrong. IN ADO.Net I can inser,
update and delete but I can't with OLEDB.

myConnection = new OracleConnection("user id=system;"+
"data source=ORATEST.SOFTWARE-LABS.NET;password=test");

myConnection.Open();

String updateCmd = "INSERT INTO Authors (au_id,au_lname) VALUES (:Id,
:LName);

SqlCommand myCommand = new SqlCommand(updateCmd, myConnection);

myCommand.Parameters.Add(new SqlParameter(":Id",
SqlDbType.VarChar));

myCommand.Parameters.Add(new SqlParameter(":LName",
SqlDbType.VarChar));

myCommand.ExecuteNonQuery();

Thanks in advance,

Sunny
Cowboy (Gregory A. Beamer) - MVP - 05 May 2005 16:21 GMT
Ponder this for the answer:
Where are you accutally putting values into the parameters you created?

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

> Hi,
>
[quoted text clipped - 24 lines]
>
> Sunny
sunny076@yahoo.com - 05 May 2005 17:58 GMT
In my Code, I declare the parameter in directly. In the project I am
working on, we have mapped columns from source and destnation table.

Sunny

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.