Current location: Hot Scripts Forums » Programming Languages » ASP » ASP+ACCESS database+Dreamweaver


ASP+ACCESS database+Dreamweaver

Reply
  #1 (permalink)  
Old 07-01-04, 01:49 PM
lasasha16 lasasha16 is offline
New Member
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation ASP+ACCESS database+Dreamweaver

I would appreciate any advice! I am working with an Access 2000 database that holds ozone data. I need to be able to pull data from the database and display it on a web page. I am currently using Dreamweaver. (Previously, we were doing this via IDC connectors but now want to use ASP.) I need some advice or step by step directions please. I don't know where to begin to connect the two.


Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 07-01-04, 05:23 PM
EvilHaider EvilHaider is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
If you have dreamweaver installed, simply go to the help pulldown menu and select tutorials. The tutorials that come with Dreamweaver are fairly comprehensive and easy enough for the absolute beginner to follow. It will show you exactly how to go about connecting to an Access database and displaying the data on your ASP pages. You can also visit macromedia.com and go to the dreamweaver 'developer center' which has some additional tutorials. That should be all you need.
__________________
**
Tutorial Maniacs
**
Reply With Quote
  #3 (permalink)  
Old 07-05-04, 01:40 AM
traceMe traceMe is offline
Newbie Coder
 
Join Date: Oct 2003
Location: india(mumbai)
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
if you have the result then try this one too

u need to make a connection object that connects to the database throug asp. i.e
<%
Dim objConn
Set objConn=Server.CreateObject("ADODB.Connection")
objConn.ConnectionString="Provider=Microsoft.Jet.O LEDB.4.0;Data Source="& Server.MapPath("/dynamic/dbhvac.mdb")'this access was in my c:inetpub/wwwroot/dynamic
objConn.open
%>
use the above code to make the connection object then make recordset object
<%set rs=server.createobject("ADODB.Recordset")
rs.open"select * from tablename",objConn,0,2
%>
now use whatever way you want it

I hope this works for you
Reply With Quote
  #4 (permalink)  
Old 07-10-04, 01:23 AM
TellMe TellMe is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
I think u R$ u working on dreamweaver with defining a site? If u haven't define a site, define a site using the server technology u use. This may help u.
__________________
"Anyone who thinks sunshine is happiness has never danced in the rain."
"If you stand in front of a mirror holiding a dozen roses, you'll see thirteen of the most beautiful things."
Reply With Quote
  #5 (permalink)  
Old 08-01-04, 09:19 PM
Mikeirv Mikeirv is offline
Newbie Coder
 
Join Date: May 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Just a variation on Traceme's post:

The way he did it will work, however, the recordset that he is using is a slow type. If you need an indexed recordset, that is fine, but if you are just blasting through records, I would do it like this.

<%
Dim objConn
Set objConn=Server.CreateObject("ADODB.Connection")
objConn.ConnectionString="Provider=Microsoft.Jet.O LEDB.4.0;Data Source="& Server.MapPath("/dynamic/dbhvac.mdb")'this access was in my c:inetpub/wwwroot/dynamic
objConn.open
%>
use the above code to make the connection object then make recordset object
<%
sql = "select * from tablename"
set rs=objConn.execute(sql)
%>
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free ASP hosting with FTP access, CDONTS & unlimited bandwidth assassin007 ASP 1 03-31-05 09:40 AM
Coverting MS Access database to Text file sandeep_mankoo ASP 0 04-17-04 08:48 AM
2 questions 1-Webbased database access. 2-PDF data retrieval Mehre PHP 1 04-11-04 04:20 AM
Dreamweaver and access database Gian79 ASP 4 01-25-04 09:10 PM
Access Database with Dreamweaver? artax ASP 3 01-19-04 07:19 AM


All times are GMT -5. The time now is 02:58 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.