Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hello, quick question :

 

is it possible to use msAccess in a web application, using a relative path ? my client would like to manage his data locally with access, and update one single file via FTP when he feels like it (and the web application would read that file, obviously). the web app is not on my machine, nor his. it is within a hosting company.

 

when i create a connection string to an access database, visual studio requires a full path "c:\ ...\data\db1.mdb" whereas i'd like to be able to set "data/db1.mdb"

 

any hints on this ? is it possible at all ?

 

thank you,

 

Huby.

there are 10 kinds of people on earth:

those who understand binary, and those who don't.

Posted

Use Server.MapPath("data/db1.mdb")

try putting ur mdb file in the root directory of your web application (in the bin it didn't work for me)

Posted
Use Server.MapPath("data/db1.mdb")

try putting ur mdb file in the root directory of your web application (in the bin it didn't work for me)

 

Please do not put your mdb file in web directory (wwwroot) or it's subdirectory, for security reason.

Posted
Please do not put your mdb file in web directory (wwwroot) or it's subdirectory' date=' for security reason.[/quote']

 

You can generally put your mdb file anywhere (except the root) but remember to give the folder read/write permissions or it wont work!

Everything is possible!!
Posted
Remember this: if you put the mdb file under web folder' date=' then user able to download your 'database'![/quote']

its not too difficult to rip away web browsing permissions on a folder.....

If you make it idiot proof, they'll build a better idiot :-)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...