Search the web
Sign In
New User? Sign Up
CSharpNET · C# .NET (C-Sharp) Developers' Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
ADO.Net: How do I do a simple update?   Message List  
Reply | Forward Message #18971 of 19704 |
RE: UDPATE: RE: [C#.NET] ADO.Net: How do I do a simple update?

Rob,

Doing simple database operations does not have to be this hard. Check out
LLBLGen, a great OR Mapping tool. It supports several databases, including
PostGRESQL. We are using it in a large project and we are very happy. It costs a
little money, but is well worth the expense.

http://www.llblgen.com/defaultgeneric.aspx

Prasad



From: CSharpNET@yahoogroups.com [mailto:CSharpNET@yahoogroups.com] On Behalf Of
Rob Richardson
Sent: Tuesday, January 06, 2009 2:12 PM
To: CSharpNET@yahoogroups.com
Subject: UDPATE: RE: [C#.NET] ADO.Net: How do I do a simple update?


I seem to be getting someplace, however slowly.

My first mistake was using a piece-of-@!$#%# provider to talk to my
PostGRESQL database. I believe I'm using the PgOleDb providr from
PGFoundry (http://www.pgfoundry.org), but its last state is noted to be
"beta", and that version was released in 2006. I tried using ODBC
instead (OdbcConnection and related classes), and things started
happening.

Not all good: my attempt to update using the update command generated
behind the scenes by the OdbcCommandBuilder object failed, throwing an
exception that said that I was trying to access
"great_lakes_10_09.public.base_type", and cross-database queries are not
supported (despite the fact that that is the proper fully-qualifed name
of the table I'm working with). But when I tried with an explicitly
generated update command, it worked.

I am developing a Windows Forms application (not ASP.Net) using Visual
Studio 2008 and trying to talk to a PostGRESQL 8.1 database.

RobR



[Non-text portions of this message have been removed]




Tue Jan 6, 2009 7:31 pm

pvparuchuri
Offline Offline
Send Email Send Email

Forward
Message #18971 of 19704 |
Expand Messages Author Sort by Date

Greetings! A while back I mentioned that our senior developer does not like ADO.Net, and prefers to use COM Interop to work with the old ADODB classes that we...
Rob Richardson
interrobang
Offline Send Email
Jan 5, 2009
9:51 pm

I'll take a little bit of a stab at answering my own question before I leave. Tell me how close I am. Basically, a collection of DataRows is read-only. It is...
Rob Richardson
interrobang
Offline Send Email
Jan 5, 2009
10:03 pm

Rob, Does this help? http://www.scribd.com/doc/3284731/Changing-Data-with-a-DataSet M....
mneale1
Online Now Send Email
Jan 6, 2009
4:31 pm

M., Thanks, but it didn't help. That link shows the use of an OleDbCommandBuilder. If you look at the code in my original post, you will see that I am trying...
Rob Richardson
interrobang
Offline Send Email
Jan 6, 2009
5:40 pm

I seem to be getting someplace, however slowly. My first mistake was using a piece-of-@!$#%# provider to talk to my PostGRESQL database. I believe I'm using...
Rob Richardson
interrobang
Offline Send Email
Jan 6, 2009
7:13 pm

Rob, Doing simple database operations does not have to be this hard. Check out LLBLGen, a great OR Mapping tool. It supports several databases, including...
Prasad Paruchuri
pvparuchuri
Offline Send Email
Jan 6, 2009
7:41 pm

Basically, a collection of DataRows is read-only. It's not. The only way to update a table is to walk through the... Nope, you can perform batch or bulk...
alvin bruney
vapor_dan
Offline Send Email
Jan 6, 2009
5:13 pm

Updating tables directly works well for demo projects but find little use in the real world because implementors prefer fine grain control over when, where and...
alvin bruney
vapor_dan
Offline Send Email
Jan 6, 2009
5:08 pm

Thank you very much for your reply, Alvin. We don't have a well-defined n-tier architecture. Our application is written in C++. The nearest we come to a data...
Rob Richardson
interrobang
Offline Send Email
Jan 6, 2009
6:01 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help