Yes, I've had trouble's with servers when they don't allow parent paths but I've usually been able to get the host to enable parent paths and everything is ok. Every site I've done with ASP requires parent paths for one reason or another so that is definitely a show stopper.
What I was referring to with DSN is the following. DSN stands for Data Source Name and it is basically a connection object that you can call instead of using a connection string that you would usually use to connect to a database.
The advantage of DNS is that it doesn't matter where the database is, you have a token that you can use to connect to it that doesn't rely on paths of any sort... The dissadvantage is that it is slower than a connection that relies on the physical path.
The following is a comparison of the two connection methods.... You would be creating recordsets and stuff after making the initial connections and then destroy the connection object once you've done whatever you need to do:
Code:
rem ------------------------------------------------
rem ---- TYPICAL DSN-LESS CONNECTION -----
rem ------------------------------------------------
connStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("../../data/") & "/admin.mdb;Persist Security Info=False"
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open connStr
Code:
rem ------------------------------------------------
rem ---- TYPICAL DSN-TYPE CONNECTION -----
rem ------------------------------------------------
dsnStr = "DSN=DSNName" ' DSNName is the name that you or the web host associated with that database
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open dsnStr
I don't know if this will help but if you can't get them to turn on parent paths, you could change the connection string to DSN and then rewrite the Connections to use DSN. The sure fire winning method would be for them to just configure parent paths though.
Andrew
Bookmarks