About us
SMS
Services
Portfolio
Support
Contact
F.A.Q
Quick Links
Home
Manage Domain
Domain Registration
Web Hosting
Web Designing
Mail Forwarding
E Commerce
Resellers
Knowledge Base
Support
Feedback
Site Map
About Us
Contact Us
ASP + MySQL
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% 'Dimension variablesDim adoCon 'Holds the Database Connection ObjectDim rs 'Holds the recordset for the records in the databaseDim strSQL 'Holds the SQL query to query the database 'Create an ADO connection object Set adoCon = Server.CreateObject("ADODB.Connection") 'Set an active connection to the Connection object using a DSN-less connection adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("test.mdb") response.write("Connection Successful")%> <%Set db = Server.CreateObject("ADODB.Connection") db.Open "Driver={MySQL}; SERVER=localhost; DATABASE=autocare; UID=userid; PWD=password" response.Write("Connection Successful") %>
Back
© Copyright 2003-2004 karnavati.net All rights reserved