Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 9th, 2004, 04:58 AM
thy thy is offline
Registered User
 
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default help : Database class

Hi, can anyone show me a sample database class that suitable for MS Access ? From the book, all database classes is for SQL.

I need a database class that suitable for Access, and then my web
application will use that class to access database.
And maybe in the future, when the database is upgraded to SQL, then I just modify the class instead of update every page to change all Oledb to SQL.

Can anyone help ?

Thanks,
Tee

 
Old June 9th, 2004, 07:41 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

When you access SQL server you would use the System.Data.SQLClient namespace, as it seems you are aware. When you access Access you would use System.Data.OleDb or System.Data.Odbc namespace. Otherwise it's pretty much the same.
 
Old June 9th, 2004, 11:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

DataSet is not special for MS-SQL & Access has no special DataSet too! There r just a schema to fill. so u just make a DataSet & fill it & its not important what DB u use.
Bye the way u can make DataSet from ur Access DB using VS.NET: Make a connection in Server-Explorer to ur Access DB & Expand it till u reach desired Table, & then drog it to ur DataSet.
HTH.

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to customise class.database.php raoof PHP Databases 0 December 31st, 2007 11:48 AM
Property access from Class within Partial Class zoltac007 C# 2005 0 December 1st, 2006 01:01 AM
Database Session Class sw8370 Pro PHP 0 February 4th, 2006 12:19 PM
DataBase Class stu9820 ASP.NET 1.0 and 1.1 Basics 2 July 29th, 2004 02:39 PM
How to include c# class and vb class in the .vbprj umeshayk VS.NET 2002/2003 2 January 9th, 2004 12:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.