473,386 Members | 1,699 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,386 software developers and data experts.

how to add access database to asp.net application on server

TM
I am trying to learn ASP.net and created an ASP.net application on my
windows 2003 server on my home LAN, and was wondering the correct way to add
an access database to this application ?

Do I just copy it to the application folder, where do I put it ?

Also, how can I allow my application to access this file correctly ?

I know most applications use SQL databases but I am trying to start small
and work my way up to that.

Any help is greatly appreciated. Thanks

--
Tony


Nov 18 '05 #1
2 1694
Hi Tony,

1. Ensure you have Microsoft Jet OLEDB provider installed on your server
2. Copy the database to a folder that is not accessible through Web requests
(that is, either outside the Inetpub folder, or at least disable ALL web
access for that folder in IIS). Not so important for home use, but you can
run into trouble on a bigger project.
3. Employ the System.Data.OleDb provider to access the database. You will
need a connection string first, please refer to the Microsoft Jet OLEDB
provider documentation on how to build the connection string for that
provider.

Please feel free to ask additional questions if you'll have any.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"TM" <no********@nothing.com> wrote in message
news:O2**************@tk2msftngp13.phx.gbl...
I am trying to learn ASP.net and created an ASP.net application on my
windows 2003 server on my home LAN, and was wondering the correct way to add an access database to this application ?

Do I just copy it to the application folder, where do I put it ?

Also, how can I allow my application to access this file correctly ?

I know most applications use SQL databases but I am trying to start small
and work my way up to that.

Any help is greatly appreciated. Thanks

--
Tony


Nov 18 '05 #2
TM
Awesome dud. That worked like a charm. Thank you
--
Tony

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:uL**************@TK2MSFTNGP10.phx.gbl...
Hi Tony,

1. Ensure you have Microsoft Jet OLEDB provider installed on your server
2. Copy the database to a folder that is not accessible through Web requests (that is, either outside the Inetpub folder, or at least disable ALL web
access for that folder in IIS). Not so important for home use, but you can
run into trouble on a bigger project.
3. Employ the System.Data.OleDb provider to access the database. You will
need a connection string first, please refer to the Microsoft Jet OLEDB
provider documentation on how to build the connection string for that
provider.

Please feel free to ask additional questions if you'll have any.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"TM" <no********@nothing.com> wrote in message
news:O2**************@tk2msftngp13.phx.gbl...
I am trying to learn ASP.net and created an ASP.net application on my
windows 2003 server on my home LAN, and was wondering the correct way to

add
an access database to this application ?

Do I just copy it to the application folder, where do I put it ?

Also, how can I allow my application to access this file correctly ?

I know most applications use SQL databases but I am trying to start small and work my way up to that.

Any help is greatly appreciated. Thanks

--
Tony

Nov 18 '05 #3

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

Similar topics

5
by: kackson | last post by:
Hi. I would like to access my database outside of my company. I read many documents but they are all pertaining to accessing the database via ASP or some form of web application. Is there no...
63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
25
by: cory | last post by:
Hi, I have an Access database and am having an ASP.NEt application written for it. It is almost complete. I have a hosting company that I signed up with a month ago but before I did anything I...
64
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
4
by: dorpnospam | last post by:
We have an old but very critical application that was written in VB 6 against Access 95 dbs. We need to ditch this decrepit old unstable db platform but we are trying to determine the best...
38
by: kavsak | last post by:
Hi. Not sure that this is the right place to ask but here goes. I have an application based on access97 and VB6 which I need to upgrade. It has to handle up to 20 concurrent users on a Win2k...
21
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.