473,395 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Database class for MS Access

Tee
Hi, can anyone show me a sample database class that suitable for MS Access ?
I can't find it over the internet, what I found is only SQL, which is not
what I want.

Anyone have any ?
Thanks,
Tee
Nov 18 '05 #1
5 1120
Hi -

Use the OleDB classes with namespace System.Data.Oledb.

Shankar
Hi, can anyone show me a sample database class that suitable for MS Access ?
I can't find it over the internet, what I found is only SQL, which is not
what I want. Anyone have any ? Thanks, Tee

Nov 18 '05 #2
Tee
No, I don't meant this. Perhaps you can't understand what I am trying to
ask.
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.
Anyone have such class can share ?
Thanks.


"Shankar" <js*****@hotmail.com> wrote in message
news:OW**************@TK2MSFTNGP12.phx.gbl...
Hi -

Use the OleDB classes with namespace System.Data.Oledb.

Shankar
Hi, can anyone show me a sample database class that suitable for MS

Access ?
I can't find it over the internet, what I found is only SQL, which

is not
what I want.


Anyone have any ?



Thanks,

Tee

Nov 18 '05 #3
You're asking for a complete middle tier for your n-tier application
tailored to your Access database. Don't expect anyone to provide it for
free. You also seem to expect someone to provide a SQL oriented middle tier,
also for free, at some time in the future.

Let me know if you find someone willing to do all that for you. I have loads
of work I'd like someone else to do without having to pay them.

Bran Lowe
---------@

"Tee" <th*@streamyx.com> wrote in message
news:OI**************@TK2MSFTNGP11.phx.gbl...
No, I don't meant this. Perhaps you can't understand what I am trying to
ask.
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.
Anyone have such class can share ?
Thanks.


"Shankar" <js*****@hotmail.com> wrote in message
news:OW**************@TK2MSFTNGP12.phx.gbl...
Hi -

Use the OleDB classes with namespace System.Data.Oledb.

Shankar
Hi, can anyone show me a sample database class that suitable for MS

Access ?
I can't find it over the internet, what I found is only SQL, which

is not
what I want.


Anyone have any ?



Thanks,

Tee


Nov 18 '05 #4
Just take the class examples you have found for sql server
and replace all the occurances of SQL with OLEDB.
Nov 18 '05 #5
Tee,

Just store your connection string in the web config file.. then you
only have to change 1 line to update entire application..
<appSettings>
<add key="connString" value="data source=localhost;initial
catalog=Navigation;integrated security=SSPI;persist security
info=False;workstation id=DRDAVE;" />
<add key="connectionstring"
value="User Id=dave;Password=slappy;
Data Source=oogly_boogly" />
</appSettings>
then in your code something like:

Dim Strdbcon As String

Strdbcon=ConfigurationSettings.AppSettings("connec tionstring")
conn = New OracleConnection(Strdbcon)
conn.Open ()

4 guys explains it..

http://aspnet.4guysfromrolla.com/articles/053102-1.aspx
HTH

Dave

"Tee" <th*@streamyx.com> wrote in message news:<OI**************@TK2MSFTNGP11.phx.gbl>...
No, I don't meant this. Perhaps you can't understand what I am trying to
ask.
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.
Anyone have such class can share ?
Thanks.


"Shankar" <js*****@hotmail.com> wrote in message
news:OW**************@TK2MSFTNGP12.phx.gbl...
Hi -

Use the OleDB classes with namespace System.Data.Oledb.

Shankar
Hi, can anyone show me a sample database class that suitable for MS

Access ?
I can't find it over the internet, what I found is only SQL, which

is not
what I want. Anyone have any ? Thanks, Tee

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mdh | last post by:
I am trying to learn the basics of MVC applications using a Tomcat infrastructure. I'm starting by building a simple application with: * a login.jsp page for a basic login form with a action...
7
by: News | last post by:
Hello, I have to build a program with the future in mind and I need a bit of guidance from a guru or two. My program will start as a multi-user Windows Application built with VB.Net and using an...
4
by: Val P | last post by:
How does everyone design the database access layer in an asp.net application? Two options that come to mind is: 1. create a database class and instanciate it as needed, local to a function or...
2
by: George | last post by:
Hi all, I am trying to convert to vb.net from VB6 and I am haveing a major problem with connecting to an Access database and adding, updating, deleting data. This is what I usually use in vb6:...
35
by: Terry Jolly | last post by:
Web Solution Goal: Have a global database connection Why: (There will be 30+ tables, represented by 30+ classes) I only want to reference the database connection once. I put the connection...
3
by: josh.kuo | last post by:
Sorry about the subject, I can't think of a better one. I recently wrote some PHP classes that I think might be of interest to this group. Since I have been reaping the benefits of reading news...
5
by: Slant | last post by:
Here's a question that most will have different answers to. I'm just dying to find a solution that seems halfway automated!! There really are two seperate issues which might be answered by the...
22
by: amygdala | last post by:
Hi, I'm trying to grasp OOP to build an interface using class objects that lets me access database tables easily. You have probably seen this before, or maybe even built it yourself at some...
7
by: =?Utf-8?B?Um9nZWxpbw==?= | last post by:
hey, I have 2 threads, th and th2, both of them run a method. each of these 2 methods requires database access. sometimes I get an error, that database requires an open connection, and that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.