• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

error when using ADO

chipy

Golden Member
hi

i'm trying to develop a webpage that connects to a database. my webpage and database are in the same directory and i am currently using microsoft iis and asp (javascript).

i'm basically going off a tutorial at W3Schools on ADO. here's a link. the code that i'm using is:

<% set conn = Server.CreateObject("ADODB.Connection"); conn.Open "blahblah" %>

anyway, when i try to open my asp webpage it says "the page cannot be displayed" and shows the following error:

Error Type:
Microsoft JScript compilation (0x800A03EC)
Expected ';'
blahblah.asp, line 17, column 4
set conn = Server.CreateObject("ADODB.Connection");
---^

does anyone know what's wrong?
 
Back
Top