General discussion


ASP is getting connected to my Database

By abdul_basheer ·
<TITLE>Student Records</TITLE>
Dim DB
Set DB = Server.CreateObject (ADODB.Connection)
DB.Mode = adModeReadWrite
DB.Open (dsn=bill)
Dim RS
Set RS = Server.CreateObject (ADODB.Recordset)
RS.Open "SELECT * FROM billmaster",DB, adOpenStatic, adLockPessimistic

Response.Write rs(0)

Response.Write rs(1)


This is the code iam using to connect MS Access database , but iam facing lot of problems , my web server is IIs , is there any changes i need to do , please help me.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by robo_dev In reply to ASP is getting connected ...

With Microsoft Active Data Objects (ADO) there are three or four connection methods. (see links below). Don't forget to close the database connection at the end of your script and use appropriate connection timeouts to avoid slowing your database to a crawl.

Here are some sites with connection string methods to try:

Related Discussions

Related Forums