Forums
This topic is locked
It´s me again.
Posted 05 Oct 2002 17:39:08
1
has voted
05 Oct 2002 17:39:08 Magnus Magnus posted:
Hey one moore time i will try to explain my problem and a way i have solved it but i need help beacuse its not a good way i have done..I Think i have solve my problem, but there must be another way to do it.
This is my problem...
When i make a connection in lets say the rooth, when i try to use it in a folder below
the rooth it will not work. I have done this now....
I make a new connection for evry level in my site, but thats not good.
So it must be another way to do this...
It will work below the rooth if i change in the connectionstring. lets say this is the string
MM_Kategorier_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= "& Server.MapPath("data/db.mdb"
If i change to ("../data/db" it will work below but then it will not work in the rooth.
I hope you understand me, my english are not so very good i am a swed.....<img src=../images/mxzone/forum/icon_smile.gif border=0 align=middle>
Replies
Replied 05 Oct 2002 18:02:51
05 Oct 2002 18:02:51 Dennis van Galen replied:
Aha Magnus,
Now we're getting to the problem, first read this technote:
www.macromedia.com/support/ultradev/database/connecting_to_isp/index.html
Then up a .asp file with only Server.MapPath to your server, request it in your browser and try adding that in your connection file. That's how i got the path to my production server database and it uses 1 connection file for a very deep folder structure.
It will look something like: D:\webs\blahblah\yourWebFolder\database.mdb
Then simply follow the instructions in the MM technote.
Good luck !
With kind regards,
Dennis van Galen
Webmaster KPN Services
Financial and Information Services
Now we're getting to the problem, first read this technote:
www.macromedia.com/support/ultradev/database/connecting_to_isp/index.html
Then up a .asp file with only Server.MapPath to your server, request it in your browser and try adding that in your connection file. That's how i got the path to my production server database and it uses 1 connection file for a very deep folder structure.
It will look something like: D:\webs\blahblah\yourWebFolder\database.mdb
Then simply follow the instructions in the MM technote.
Good luck !
With kind regards,
Dennis van Galen
Webmaster KPN Services
Financial and Information Services