Products 
ASP Source Control
FingerTips
Link Demon
netPROFIT Lite
ASP Knowledge Base
Display your PageRank™
 myLoudASP 
Username
Password
 Latest News 
LoudASP Source Control 2004 released
LoudASP today released the latest update to o...
[Mar 5 2004]

LoudASP introduces upgrade pricing
Today we have introduced upgrade pricing for ...
[Jun 14 2003]

Link Demon 2003 Service Pack 2 Released
LoudASP today released the latest update to o...
[May 18 2003]

 Hot Links 
Banner Exchange Script
Link Exchange Software
Subscription Software
Online Website Builder
Homepage Hosting Scripts
Website Builder
  Home | About Us | Contact Us | myLoudASP | Our News | Our Products | Our Support | Our Sitemap

LoudASP Knowledge Base - ASP and Database
Active Server Page knowledge dealing with databases

How to Connect to a Database (DSNLESS)

There are a couple things that you need to remember before you try to connect to a database. Make sure that database has read/write permissions and that you point the physical database path in the code. The code below is how to connect to an Access Database. This code should work for both Access 97 and Access 2000.

DataConn = "c:databaseYourDatabase.mdb"
Set Conn = Server.CreateObject("ADODB.Connection")
ConStr = "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & DataConn & ";"
Conn.open(ConStr)


You will need change DataConn with the physical path to your database. Make sure that you include the database filename in it also.

Please help us improve our service by rating this FAQ.
1 = poor to 5 = very good
1   2   3   4   5  

This FAQ has been read 14701 times.


How to Connect to a Database (DSNLESS)

Easy SQL How To (Insert)

Easy SQL Help (Update)

Easy SQL Help (Delete)

Easy SQL Apostrophes Bug Fix

Easy How To SQL (Select)

Database test for no records

 


Home | About Us | Contact Us | myLoudASP | Our News | Our Products | Our Support | Site Map | Resources | Additional Resources
Copyright © 1999 - 2006 LoudASP. All Rights Reserved.