Link to home
Start Free TrialLog in
Avatar of fledermaus
fledermaus

asked on

ASP, Dreamweaver Ultradev and Brinkster

Hi there,

I know I'm an absolute beginner, but anyhow:

does anyone has experience using Dreamweaver Ultradev and publishing that site on brinkster.com ?

I always get an error regarding ODBC and more of that. I would really appreciate that someone could tell me how to configure my database in Dreamweaver ultradev so I can use it on brinkster.

I know this can be hard, that's why so many points are involved.

Sorry if this is a stupid question, but I'm learning...

;-)

tnx in advance,

fledermaus
ASKER CERTIFIED SOLUTION
Avatar of thunderchicken
thunderchicken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thunderchicken
thunderchicken

Change all connection strings to something like this

<%
set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open("DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("\member_name\db\your_db.mdb"))
%>

Format is as below and you would need to change member_name and your_db accordingly.
Server.MapPath("\member_name\db\your_db.mdb"))


Please note that your mdb file needs to be placed in the brinkster-created db folder.

hongjun
Fledermaus,

Hongjun above is quite right with his code. Below is a bit of an example of how to display the records in your Access database. I have used the normal OLEDB connection string instead of the ODBC string shown above. Both will work fine with Brinkster. For clarity you might want to delete the notes.

Graham
----------------------------------------------

<%Option Explicit%>
<html>
<head>
     <title>Show Records</title>
</head>

<% 'Note: copy the file adovbs.inc into the same directory
   'as the .asp file. You can find it in:
   'C:\Program Files\Common Files\SYSTEM\ADO. on your local machine.
%>

<!--#INCLUDE FILE="adovbs.inc"-->
<body>
<%

dim conn, rs, SQL, DSN
set conn = server.CreateObject("ADODB.Connection")
set rs = server.CreateObject("ADODB.Recordset")

'Notes:
'      Replace MyAccount with your Brinkster account name
'      Replace MyDB.mdb with your database name which must be uploaded
'              to Brinkster's db directory
'      Replace MyTable with your Access table or query name
'      Replace Fieldname1, Fieldname2 etc with the field names in your
'              Access table.

DSN = "PROVIDER=MICROSOFT.JET.OLEDB.4.0;"
DSN = DSN & "DATA SOURCE = " & Server.Mappath("\MyAccount\db\MyDB.mdb")

conn.open DSN

SQL = "Select * From MyTable "

rs.Open SQL, conn, adOpenKeyset, adLockPessimistic


do until rs.eof    'keep going until the end of file
   
   response.write rs("Fieldname1") & "<BR>")
   response.write rs("Fieldname2") & "<BR>")
   'and so on. . .

   rs.movenext
   
loop


%>
</body>
</html>
The link I provided above will show exactly.  Don't propose an answer like that.

> Hongjun above is quite right with his code.

And you propose that as your answer?
gnmaier,

You are here long enough to know EE policy. The policy here is to post everyhing in comments. Questionner will then have the option to accept a comment as an answer. Posting as a proposed answer will lock the question and thus restrict the exposure to more experts. We know you are new here and thus is forgiven. With the current version of EE, you do not have the option to convert your answer to a comment but this can be done by the questioner himself. I advise the questionner to reject his answer so that this question will be released to more experts. You can however accept his comment again if you find it is really helpful.

Thanks
hongjun
The only area we need to keep note of is the connection part.

hongjun
Sorry hongjun,

I have only just read EE policy, never having posted an answer or comment before. Is there some way of undoing the proposed answer or changing it to a comment?

Graham
 
gnmaier,
It's okay as long as you realise it. We can wait for fledermaus to deal with it.

hongjun.
Fledermaus

please reject my answer.

Graham
fledermaus,
so how's your progress?

hongjun
Avatar of fledermaus

ASKER

as requested I 'll reject this answer - I'll look into the onther comments today and let you know...
:)

hongjun
fledermaus,

These questions are still open and our records indicate you logged in as recently as yesterday. Please resolve them appropriately as soon as possible. Continued disregard of your open questions will result in the force/acceptance of a comment as an answer; other actions affecting your account may also be taken. I will revisit these questions in approximately seven (7) days.

https://www.experts-exchange.com/jsp/qShow.jsp?qid=20119026
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20122329
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20159145
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20178879
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20182931
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20182979
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20195426
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20208486
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20235488
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20240167
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20240518
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20244663
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20241307
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20215489
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20182954
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20260609
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20262610

EXPERTS: Please leave your thoughts on this question here.

Thanks,

Netminder
Community Support Moderator
Experts Exchange
Admin notified of user neglect. Force/accepted by

Netminder
Community Support Moderator
Experts Exchange