I am having trouble installing my MS Access database to the web. Unfortunately the web host wasn't able to answer my question. I attempted to look up the Tek-Tips FAQ on the subject, but the page won't load (just my luck!).
Here is what I am trying to do:
I have a database called Seed.mdb that I have uploaded to the web server. I contacted the support and they first told me that I need to set permissions, which I have and they confirmed.
Secondly they indicated that I need to change may path for the include file to there path [see below]
Here is the code of the include file:
Originally the MM_TestConnection_String said that dsn=FirstName I changed it to FileName because I though that that was my error?
Here is the code that calls TestConnection.asp
(the page where the code is)
Here is a sample of the code requesting:
I have been able to build and run it on my local machines, but when I attempt to load the page online, I get an error with no number, just that the page didn't load.
There is a FAQ on the web hosting website that shows how to connect using every page. At this point, I would have to reload almost the entire site after changing the connection information. Is this what I have to do to make it work?
Thanks for your help!
Keith
Here is what I am trying to do:
I have a database called Seed.mdb that I have uploaded to the web server. I contacted the support and they first told me that I need to set permissions, which I have and they confirmed.
Secondly they indicated that I need to change may path for the include file to there path [see below]
Here is the code of the include file:
Code:
<%
' FileName="E:\kunden\homepages\25\d113674742\db\Seed.mdb"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_TestConnection_STRING
MM_TestConnection_STRING = "dsn=FileName;"
%>
Here is the code that calls TestConnection.asp
(the page where the code is)
Code:
<!--#include file="Connections/TestConnection.asp" -->
Here is a sample of the code requesting:
Code:
Set rsRecordsToChooseFrom = Server.CreateObject("ADODB.Recordset")
rsRecordsToChooseFrom.ActiveConnection = MM_TestConnection_STRING
rsRecordsToChooseFrom.Source = "SELECT AutoNumber, MatchDt, Weight_Class, Home_Wrestler_Name, Home_Wrestler_Score, Visitng_Wrestler_Name, Visiting_Wrestler_Score FROM tbl_Match_Results WHERE MatchDt = #" + Replace(rsRecordsToChooseFrom__MMColParam, "'", "''") + "# AND Home_Team = '" + Replace(rsRecordsToChooseFrom__MMColParam1, "'", "''") + "' AND Home_Team AND Visiting_Team = '" + Replace(rsRecordsToChooseFrom__MMColParam2, "'", "''") + "'"
rsRecordsToChooseFrom.CursorType = 0
rsRecordsToChooseFrom.CursorLocation = 2
rsRecordsToChooseFrom.LockType = 1
rsRecordsToChooseFrom.Open()
I have been able to build and run it on my local machines, but when I attempt to load the page online, I get an error with no number, just that the page didn't load.
There is a FAQ on the web hosting website that shows how to connect using every page. At this point, I would have to reload almost the entire site after changing the connection information. Is this what I have to do to make it work?
Thanks for your help!
Keith