Home | Software | WebLog | Contact | Wish List

.net Database Utility Library

Overview

Accessing your database can be a very repetitive task. This Database Utility class can help reduce a lot of the repetitious code.

This library will work in any .net or asp.net project; using C#, VB.net or any other .net language.

Features

Installation

If you using VisualStudio.net... Open your Project. In the Solution Explorer right click on References and select Add Reference. Click Browse and browse to the Joel.Net.DatabaseUtility.dll library.

If you are not using VisualStudio.net, simply copy the Joel.Net.DatabaseUtility.dll library into your ~/bin directory.

At the top of your class add "using Joel.Net; // C#" or "Imports Joel.Net; ' VB.NET". You can alternatively use the full name (example: Joel.Net.DatabaseUtility.ExecuteDataTable(...)).


post reply to this comment Comment by Peter Annandale [Dec 13, 2005 @ 1:22 AM]
Hi,
   Been trying to use your control to carry out a DataBase update. The DataBase has some Bit Values and these are causung some headaches in getting the DB to accept them. I eventually converted them to Integers and this worked. Do you have any examples of carrying out an update??

Regards..
Peter.
post reply to this comment Comment by Tom Pearson [Dec 18, 2005 @ 5:05 PM]
Joel,

This code is excellent! saves alot of repeated tasks.

Keep up the good work dude!

Tom
post reply to this comment Comment by Peter Annandale [Dec 22, 2005 @ 3:23 AM]
Joel,
     It's working okay so I'm not too fussed with the conversion to integers.

Next question though, does your control work with SQLCommandBuilder functions. I have been doing multiple updates to a data table and then writing them back to the DataBase using the SQLCommandBuilder function with the DataAdapter.

Any code snippet would be apreciated.

Regards..

Peter.
post reply to this comment Comment by Scott [Jan 26, 2006 @ 2:10 AM]
I know this is probably a bit of a n00b question, but is there a method of returning a SqlDataReader, which the calling methods don't explicitly have to use, "reader.close()"  I just find having to do this clumbsy.
post reply to this comment Comment by Cris [Feb 03, 2006 @ 8:45 PM]
Joel,

great code!  anyway, can you post a similar item for oledb?

best,
-cris
post reply to this comment Comment by Andrew Jones [Apr 03, 2006 @ 12:16 AM]
Is there any way I can access a ODBC datasource using this library?
post reply to this comment Comment by anatali [Jan 18, 2010 @ 4:24 AM]
Try EffiPRoz Database (www.EffiProz.com).
EffiProz is a database written entirely in C#. EffiProz has full-blown SQL support, including SQL Stored Procedures, Functions, and Triggers.
Comes with Visual Studio ad-in, ADO.Net provider, Entity Framework
Leave Your Comment
Name:
Email:  (gravatar enabled)
URL:
Comment:
or Cancel