Re: MS Access on IIS 5.0
From: Jeff Cochran (jeff.nospam_at_zina.com)
Date: 06/16/04
- Next message: Jeff Cochran: "Re: MS Access on IIS 5.0"
- Previous message: Paul Lynch: "Re: MS Access on IIS 5.0"
- In reply to: Robin: "Re: MS Access on IIS 5.0"
- Next in thread: Robin: "Re: MS Access on IIS 5.0"
- Reply: Robin: "Re: MS Access on IIS 5.0"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 16 Jun 2004 13:43:03 GMT
On Wed, 16 Jun 2004 02:56:21 -0700, "Robin"
<anonymous@discussions.microsoft.com> wrote:
>I do in fact have an include file which will save me from
>having to modify each page. I know this is another
>problem which I have to fix but I think I can manage this
>myself *fingers crossed*
>
>I moved the databases to another folder but now I can't
>get the site to pull the info out of them or post into
>it. Page simply displays blank fields where the data
>should populate!?!?!
When you move the file, you need to change the connection string to
match the new location.
>What code do I need in the include file? I'd like to
>avoid configuring any DSN.
>Currently the code looks something like this:
><% Session("databasepath")
>= "D:\Inetpub\wwwroot\sitename\data\databasename.mdb" %>
>Do I leave it this way or change it? If I leave it how
>do I get the database's to work now that I've moved them!
Change this path to wherever you moved the file. If it's moved to
D:\Databases\Sitename\Database.mdb for example, replace the path in
your code with the correct path.
Jeff
>Thanks again for your help!!!
>Very appreciative!
>
>
>>Normally a designer would use an include file for the
>database
>>connections, but some code this into every page and
>unfortunately
>>you'd need to change those pages individually. As for
>permissions,
>>usually just the system account needs access, but if the
>folder is
>>outside that defined in IIS it can't be accessed by a
>HTTP request to
>>download it, no matter what security the folder/file
>has. Also use
>>URLScan if you're on IIS5 to defeat parent paths or
>directory
>>traversing, and make sure the server has current
>security patches.
>>
>>Jeff
- Next message: Jeff Cochran: "Re: MS Access on IIS 5.0"
- Previous message: Paul Lynch: "Re: MS Access on IIS 5.0"
- In reply to: Robin: "Re: MS Access on IIS 5.0"
- Next in thread: Robin: "Re: MS Access on IIS 5.0"
- Reply: Robin: "Re: MS Access on IIS 5.0"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|