473,383 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

ASP Beginner Connecting to an Access Database

Hi,

I have recently been given an ASP site to administer, however I cannot get
the site to connect to the access the Access database.

This is the current connection file:

<%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="true"
' Catalog=""
' Schema=""
'Dim MM_conn***_STRING
'MM_conn***_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=***"
'MM_conn***_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=***"
Dim MM_conn***_STRING
MM_conn***_STRING = "dsn=***;"
%>

How can I modify this file such that it connects to the database in the same
directory as the file?

Thanks for your help
Jul 19 '05 #1
3 2017
hi,

sorry but i don't realy understand the code you post. Usualy, to connect to
a database with an ODBC system connection we use this kind of code :
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Open "MyODBCLabel"
%>and this kind to connect with the file name :

<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "d:\MyDB.mdb "
%>
"Shaun" <no****@nospam.com> a écrit dans le message de
news:Of**************@TK2MSFTNGP11.phx.gbl...
Hi,

I have recently been given an ASP site to administer, however I cannot get
the site to connect to the access the Access database.

This is the current connection file:

<%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="true"
' Catalog=""
' Schema=""
'Dim MM_conn***_STRING
'MM_conn***_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=***"
'MM_conn***_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=***"
Dim MM_conn***_STRING
MM_conn***_STRING = "dsn=***;"
%>

How can I modify this file such that it connects to the database in the same directory as the file?

Thanks for your help

Jul 19 '05 #2
MM_maybe you stop using DreamWeaver and pick up a book on ASP. It MM_might
help.
Bob Lehmann

"Shaun" <no****@nospam.com> wrote in message
news:Of**************@TK2MSFTNGP11.phx.gbl...
Hi,

I have recently been given an ASP site to administer, however I cannot get
the site to connect to the access the Access database.

This is the current connection file:

<%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="true"
' Catalog=""
' Schema=""
'Dim MM_conn***_STRING
'MM_conn***_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=***"
'MM_conn***_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=***"
Dim MM_conn***_STRING
MM_conn***_STRING = "dsn=***;"
%>

How can I modify this file such that it connects to the database in the same directory as the file?

Thanks for your help

Jul 19 '05 #3
On Sat, 5 Jun 2004 22:55:00 +0100, "Shaun" <no****@nospam.com> wrote:
Hi,

I have recently been given an ASP site to administer, however I cannot get
the site to connect to the access the Access database.

This is the current connection file:

<%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="true"
' Catalog=""
' Schema=""
'Dim MM_conn***_STRING
'MM_conn***_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=***"
'MM_conn***_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=***"
Dim MM_conn***_STRING
MM_conn***_STRING = "dsn=***;"
%>

How can I modify this file such that it connects to the database in the same
directory as the file?


You'll want to ask in a Macromedia/Dreamweaver group, since that's
what produced the code. If you want an ADO connection string you can
use in ASP, check:

http://www.able-consulting.com/ADO_Conn.htm

Jeff
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John Morgan | last post by:
I have Enterprise Manager on my local machine. For the last twelve months it has been connecting without problem to my online SQL Server database provided by my ISP. Three weeks ago the ISP...
2
by: news | last post by:
We currently have our mySQL server on the same box as the Apache server. For security and load balancing, we're going to be moving the mySQL server to another box. We're already using a single...
1
by: Tim Dol | last post by:
I have inherited a VB6-SP5 program connecting to an Access 2000 database. I'm relatively new to VB/Access programming, so I may overlook something obvious. I'll try to explain the problem I can't...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
5
by: Sebastian | last post by:
I'm using the following code to connect to an access 2000 database. (with reference to adodb) Public DBvar As New ADODB.Connection() DBvar.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data...
5
by: Al | last post by:
Hi, I am looking for sample VB.net code for working with Access 97 database. I know how to work with SQL but I dont know how to read and writ into access 97. Any help is very much appreciated. ...
2
by: Patrick F | last post by:
Hi, i have SQL Server 2005 and a database set that is called, myCompany the problem is that i cant connect from my page to it, here is from the web.config: ( i have got this connectionstring from...
0
by: Rob Meade | last post by:
Dear all, I've followed two examples online now and experienced the same problem/error with both... I create a new webform, add a webpartmanager, add a table with three cells, plonk a...
22
by: ddg_linux | last post by:
I have been reading about and doing a lot of php code examples from books but now I find myself wanting to do something practical with some of the skills that I have learned. I am a beginner php...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.