Working with Access databases that live outside of a Web site
We had a customer recently, who needed to access an Access database from both a classic ASP page and from another Access database. To prevent the database from being locked by IIS, the customer wanted to know if they could move the database out of the Web site directory. By default, FrontPage expects the database to be in the Web site. However, when they did this, it seemed to break FrontPage’s ability to work with the database connection as Front Page.
Bernardo Iturriaga Dubost, one of the FrontPage testers, came to the rescue of this customer. Here's his response:
The main reason that FrontPage stores the .mdb files in the web is so that you don’t need to access to the Web server to access the data in a database. However, you can provide dual access to a database by using a system DSN, and then using the DSN in FrontPage to connect to the database. Here's how:
First, you need to create a system DSN on the Web server that hosts the Web site:
- From the Start Menu, click All Programs.
- Select Administrative Tools, and click Data Sources (ODBC) .
- Go to the System DSN tab.
- Click Add.
- Select the appropriate driver type (for example, MS access driver).
- Click Finish.
- Provide a name and a description for the DSN.
- Click Select the navigate to the actual .mdb file located in another folder on the server.
- Click Ok when you're finish selecting the database.
- In most cases this is enough, but if the database requires a password, you'll need to provide one. To do this, click Advanced and provide the password.
- Click Ok again to create the DSN.
After you're finished, you'll see your new named DSN listed on the System DSN tab of the ODBC Data Source Administrator.
Next, you need tell FrontPage to use the DSN to connect to the database.
- Start FrontPage and open the Web site.
- From the Tools menu, click Site Settings.
- On the Database tab, click Add.
- In the dialog select System Data source on web server.
- Click Browse. FrontPage displays a list of system DSN on the Web server.
- The connection that you created in the previous steps should be there, select it and click Ok.
- Click Ok to the Site Settings dialog box, this will add the connection string to the global.asa file in the Web site.
- You can now use this connection to the database for database features in FrontPage for both ASP and ASP.NET.
Please note that in order to do this, you need to have access to the actual server that hosts the Web site. One benefit of this configuration is that you can have different permissions for the Web site and for the folder that contains the .mdb file. Please also note that for the users to get data when they browse, MACHINENAME_IUSR needs to have the appropriate read/write access permissions to the .mdb file; otherwise there will be an error.
Comments
- Anonymous
September 15, 2005
This makes me speechless :) Very well done! <a href="http://phentermine.webpark.pl/">phentermine</a>">http://phentermine.webpark.pl/">phentermine</a> ( http://phentermine.webpark.pl/ ) - Anonymous
October 10, 2005
Thanks for info! - Anonymous
October 22, 2005
The comment has been removed - Anonymous
October 25, 2005
I tried this some time ago and I can establish the connection but timestamps seem to be handled differently when accessed from within the web (using ADODB) and using ODBC. FP also complains about autonumber generated primary keys.
Has nobody run into this before? - Anonymous
October 31, 2005
The comment has been removed - Anonymous
December 25, 2005
<a href="http://sextoyscheap.loveslife.com/">http://sextoyscheap.loveslife.com/</a> best prices compare and cheap - Anonymous
December 25, 2005
<a href="http://sextoys.outride.com/">SEX">http://sextoys.outride.com/">SEX TOYS</a> http://sextoys.outride.com/ - sex toys online - Anonymous
January 10, 2006
The comment has been removed - Anonymous
January 10, 2006
Truely and amazing 888 http://www.tbns.net/888download/ 888 site. A new site on <a href="http://www.tbns.net/888download/">888</a>. - Anonymous
January 29, 2006
Thanks! http://www.dorank.com/contacts/">http://www.dorank.com/contacts/ google pr. [URL=http://www.dorank.com]pagerank 5[/URL]: google pagerank algorithm, testing of system, increase pagerank. Also [url=http://www.dorank.com]online pr16[/url] from google pr . - Anonymous
January 29, 2006
The comment has been removed - Anonymous
February 12, 2006
http://www.network54.com/Index/57574
http://www.network54.com/Index/57575 - Anonymous
February 12, 2006
http://www.network54.com/Index/57517
http://www.network54.com/Index/57518 - Anonymous
February 12, 2006
http://www.network54.com/Index/57519
http://www.network54.com/Index/57520
http://www.network54.com/Index/57521
http://www.network54.com/Index/57522 - Anonymous
February 12, 2006
http://www.network54.com/Index/57513
http://www.network54.com/Index/57514 - Anonymous
February 12, 2006
http://www.network54.com/Index/57515
http://www.network54.com/Index/57516
http://www.network54.com/Index/57517
http://www.network54.com/Index/57518 - Anonymous
February 12, 2006
http://www.network54.com/Index/57519
http://www.network54.com/Index/57520
http://www.network54.com/Index/57521
http://www.network54.com/Index/57522 - Anonymous
February 12, 2006
http://www.network54.com/Index/57523
http://www.network54.com/Index/57524
http://www.network54.com/Index/57525
http://www.network54.com/Index/57489 - Anonymous
February 12, 2006
http://www.network54.com/Index/57491
http://www.network54.com/Index/57492
http://www.network54.com/Index/57493
http://www.network54.com/Index/57494 - Anonymous
February 12, 2006
http://www.network54.com/Index/57495
http://www.network54.com/Index/57496
http://www.network54.com/Index/57497
http://www.network54.com/Index/57498 - Anonymous
February 12, 2006
http://www.network54.com/Index/57499
http://www.network54.com/Index/57500
http://www.network54.com/Index/57501
http://www.network54.com/Index/57502 - Anonymous
February 12, 2006
http://www.network54.com/Index/57503
http://www.network54.com/Index/57504
http://www.network54.com/Index/57505
http://www.network54.com/Index/57506 - Anonymous
February 12, 2006
http://www.network54.com/Index/57503
http://www.network54.com/Index/57504
http://www.network54.com/Index/57505
http://www.network54.com/Index/57506 - Anonymous
February 12, 2006
http://www.network54.com/Index/57507
http://www.network54.com/Index/57508
http://www.network54.com/Index/57509
http://www.network54.com/Index/57510 - Anonymous
February 12, 2006
http://www.network54.com/Index/57511
http://www.network54.com/Index/57512
http://www.network54.com/Index/57526
http://www.network54.com/Index/57527 - Anonymous
February 12, 2006
http://www.network54.com/Index/57528
http://www.network54.com/Index/57529
http://www.network54.com/Index/57530
http://www.network54.com/Index/57531 - Anonymous
February 12, 2006
http://www.network54.com/Index/57528
http://www.network54.com/Index/57529
http://www.network54.com/Index/57530
http://www.network54.com/Index/57531 - Anonymous
February 12, 2006
http://www.network54.com/Index/57532
http://www.network54.com/Index/57533
http://www.network54.com/Index/57534
http://www.network54.com/Index/57535 - Anonymous
February 12, 2006
http://www.network54.com/Index/57532
http://www.network54.com/Index/57533
http://www.network54.com/Index/57534
http://www.network54.com/Index/57535 - Anonymous
February 12, 2006
http://www.network54.com/Index/57536
http://www.network54.com/Index/57537
http://www.network54.com/Index/57538
http://www.network54.com/Index/57539 - Anonymous
February 12, 2006
http://www.network54.com/Index/57540
http://www.network54.com/Index/57541
http://www.network54.com/Index/57542
http://www.network54.com/Index/57550 - Anonymous
February 12, 2006
http://www.network54.com/Index/57543
http://www.network54.com/Index/57544
http://www.network54.com/Index/57545
http://www.network54.com/Index/57546 - Anonymous
February 12, 2006
http://www.network54.com/Index/57547
http://www.network54.com/Index/57548
http://www.network54.com/Index/57549
http://www.network54.com/Index/57551 - Anonymous
February 12, 2006
http://www.network54.com/Index/57552
http://www.network54.com/Index/57553
http://www.network54.com/Index/57554
http://www.network54.com/Index/57555 - Anonymous
February 12, 2006
http://www.network54.com/Index/57556
http://www.network54.com/Index/57557
http://www.network54.com/Index/57558
http://www.network54.com/Index/57559 - Anonymous
February 12, 2006
http://www.network54.com/Index/57560
http://www.network54.com/Index/57561
http://www.network54.com/Index/57562
http://www.network54.com/Index/57563 - Anonymous
February 12, 2006
http://www.network54.com/Index/57560
http://www.network54.com/Index/57561
http://www.network54.com/Index/57562
http://www.network54.com/Index/57563 - Anonymous
February 12, 2006
http://www.network54.com/Index/57564
http://www.network54.com/Index/57565
http://www.network54.com/Index/57566
http://www.network54.com/Index/57567 - Anonymous
February 12, 2006
http://www.network54.com/Index/57564
http://www.network54.com/Index/57565
http://www.network54.com/Index/57566
http://www.network54.com/Index/57567 - Anonymous
February 12, 2006
http://www.network54.com/Index/57568
http://www.network54.com/Index/57569
http://www.network54.com/Index/57570
http://www.network54.com/Index/57571 - Anonymous
February 12, 2006
http://www.network54.com/Index/57572
http://www.network54.com/Index/57573
http://www.network54.com/Index/57574
http://www.network54.com/Index/57575 - Anonymous
April 02, 2006
The comment has been removed - Anonymous
April 07, 2006
Still do not understand yet. - Anonymous
May 13, 2006
The comment has been removed - Anonymous
July 09, 2006
<a href="http://diovan-valsartan.pachku.com">diovan valsartan</a>
<a href="http://drug-diovan.pachku.com">drug diovan</a>
<a href="http://generic-diovan.pachku.com">generic diovan</a> - Anonymous
August 15, 2006
Great recommendation! Does this only works on a dedicated server where you have full access to the server? Our site is hosted by Microsoft bcentral now and it seems like that the asp page sometimes could not reach the access database.