Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Problems upgrading to free version of 9...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problems upgrading to free version of 9...

 Post Reply Post Reply
Author
cgacfox View Drop Down
Newbie
Newbie
Avatar

Joined: 20 February 2006
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote cgacfox Quote  Post ReplyReply Direct Link To This Post Topic: Problems upgrading to free version of 9...
    Posted: 01 March 2008 at 7:47pm
...and changing code to connect to the database.
 
I believe that I am running v7 or maybe v8 of the forum and have been hosting the site the forum is on myself until recently when I switched to godaddy.com. I set up a DSN with them but have not been able to change the code on the common.asp and database_connection.asp pages to get the forum to work. I thought that since v7 is no longer supported, I would switch to the free version 9. I have downloaded and followed all the steps. However, I cannot get the upgrade to work because I have no idea what the physical server path or the path from this application to database would be. The database is now outside the forum in a folder called bane_db under the main root of the site. Write permissions have been set up properly, or so I was told. I am using Access and I know that it should not be used in a live production but I don't know how to use MySql or Sql Server. I would like to continue to use Access since I am used to it. Here is what I found on godaddy's site for help with "Connecting to an Access Database Using File DSN and ASP/ADO".  This looks totally different than the code in the database_connection.asp file. Please help me upgrade to v9 and get the forum running again!!! Cry
 
<%
Dim oConn, oRs
Dim qry, connectstr, sDSNDir
Dim db_name, db_username, db_userpassword
Dim db_server, dsn_name

dsn_name = "your_dsn_name"
fieldname = "your_fieldname"
tablename = "your_tablename"

sDSNDir = Server.MapPath("_dsn")

connectstr = "filedsn=" & sDSNDir & "/" & dsn_name

Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open connectstr
qry = "SELECT * FROM " & tablename

Set oRS = oConn.Execute(qry)

if not oRS.EOF then
while not oRS.EOF
response.write ucase(fieldname) & ": " & oRs.Fields(fieldname) & " "
oRS.movenext
wend
oRS.close
end if

Set oRs = nothing
Set oConn = nothing

%>
Back to Top
cgacfox View Drop Down
Newbie
Newbie
Avatar

Joined: 20 February 2006
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote cgacfox Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2008 at 7:55pm
i just moved everything back the way it was and this is v8 that I currently have. I just can't connect to it. I am not sure how to change the code to get it to go outside the forum to the database.
Back to Top
cgacfox View Drop Down
Newbie
Newbie
Avatar

Joined: 20 February 2006
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote cgacfox Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2008 at 8:27pm
I just got off the phone with the hosting company and was able to set permissions for read and write in the original database folder. Now it works just fine. Thanks.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.