Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 25th, 2005, 11:01 PM
Registered User
 
Join Date: Dec 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Connection Problem !

Hi, all
 I found a problem about connection to Access Database.
I build Custom Connection String with "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.Mappath("\Northwind.mdb") and "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.Mappath("\Northwind.mdb"). when I click test button, it alert "Connection Successfully". the problem occur when I came back to Database Tab in Application panel. My Connection name was appear in list but It coundn't show table in this connection.
    I found this problem in some machine. I don't know why. Please help me to solve this problem.

Thank you in advance.
Kerati.

 
Old January 26th, 2005, 02:55 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

This is probably due to the fact that at design time, Dreamweaver cannot resolve Server.MapPath.

Try changing the connectionstring so it uses a local, fixed path like c:\Inetpub\wwwroot\YourSite\Databases\YourDatabase .mdb

Can you please not cross-post your messages in multiple forums?

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 26th, 2005, 03:47 AM
Registered User
 
Join Date: Dec 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear, Imar

Really sorry about posting in another forum.

I tried to do every way include your suggestion. It didn't work. Sometimes I used same OS and same version (MX 2004 7.1) and same Database (Access XP) and same code, 2 machines was not the same (one did work and another didn't work).

Last Times before, I can use Server.Mappath in Dreamweaver MX 2004 smoothly. It didn't error. In my website
http://www.bus.mut.ac.th/board_com.asp
I use Server.Mappath to build this page via Dream MX 2004 too.
(sorry about my site, it 's thai language)
 
Old January 26th, 2005, 03:52 AM
Registered User
 
Join Date: Dec 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh, I forgot to tell about something

If I run same code outside Dream..... It work !. It can connect to database and can show data I want to know.

So I think it 's not concern about IIS or Database or my code..

 
Old January 26th, 2005, 04:09 AM
Registered User
 
Join Date: Dec 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I asked my friend, he did uninstall Dream and install it again. He can solve my problem but I can't.
 
Old February 4th, 2005, 07:35 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

have you got your connection file at the top of ytour page?



for example.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection problem atzplzw Classic ASP Databases 3 November 15th, 2004 03:53 AM
Problem with the connection! Berni016x SQL Server 2000 2 November 9th, 2004 08:51 AM
Problem With Connection ! huyremy VB Databases Basics 2 September 29th, 2004 03:37 AM
connection problem weihoe2004 VS.NET 2002/2003 1 July 10th, 2004 01:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.