473,406 Members | 2,549 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,406 software developers and data experts.

connection problem

I'm really at a loss on this one. This thing was working just fine, then
stopped.

The site is http://www.shoppingwithshanda.com/shanda/shandahome.asp

All 6 pages are the same code, and that part in the middle, in the yellow,
is supposed to show the text that was placed in the Access database, in that
one field. I have another page for each of these 6 pages so that the client
can type in her info, which is updated frequently.

So here's my connection code:
From the main page:
<!-- #INCLUDE file="includes/shandadbinc.asp" -->

From the shandadbinc.asp file:
<!-- #Include file="adovbs.inc" -->
<%
strConnection ="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source="&server.mappath(".\shanda.mdb")&";User
Id=xxxxxxxx;Password=xxxxxxxx;"
filePath = Server.MapPath("xx.mdb")
%>

Finally, here's the code for the main page, which should show the contents
of the requested field:
<h2>Shoppingwithshanda.com is BACK!</h2>
<%
strHome = Replace(Replace(strHome,"''","'"),vbCrLf,"<br>")
response.write strHome
%>
Please note that I am aware that Access is not a good database, and I am
aware that sueing adovbs.inc has problems. It has not been a problem up till
this point, and if you think that one of those items is a factor for this
problem, then feel free to let me know. If not, please save that discussion
for another thread, please. I don't want to get sidetracked.

Also, please note that I have saved the db to my Hard drive, where I have
dsetermined that there is info in the fields. It is just not displaying.
Oct 24 '05 #1
4 1322
I should have added this, in an include file that all pages are using:

<% Set objConnection = Server.CreateObject("ADODB.Connection")
objConnection.ConnectionString = strConnection
objConnection.Open

strSQL = "select * from Shandamain "
set rs = objConnection.execute (strSQL)
strScoop = rs("Scoop")
strScoop = Replace(strScoop,"<br>",vbCrLf)

strNews = rs("News")
strNews = Replace(strNews,"<br>",vbCrLf)

strHome = rs("Home")
strHome = Replace(strHome,"<br>",vbCrLf)
strAbout = rs("About")
strAbout = Replace(strAbout,"<br>",vbCrLf)

strSeminar = rs("Seminar")
strSeminar = Replace(strSeminar,"<br>",vbCrLf)

strCutie = rs("Cutie")
strCutie = Replace(strCutie,"<br>",vbCrLf)

set rs = nothing
set ObjConnection = nothing
%>
Oct 24 '05 #2
Never mind. Seems that one of the files was lost by Dreamweaver.
"middletree" <mi********@HTOmail.com> wrote in message
news:u7**************@TK2MSFTNGP14.phx.gbl...
I'm really at a loss on this one. This thing was working just fine, then
stopped.

The site is http://www.shoppingwithshanda.com/shanda/shandahome.asp

All 6 pages are the same code, and that part in the middle, in the yellow,
is supposed to show the text that was placed in the Access database, in that one field. I have another page for each of these 6 pages so that the client can type in her info, which is updated frequently.

So here's my connection code:
From the main page:
<!-- #INCLUDE file="includes/shandadbinc.asp" -->

From the shandadbinc.asp file:
<!-- #Include file="adovbs.inc" -->
<%
strConnection ="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source="&server.mappath(".\shanda.mdb")&";User
Id=xxxxxxxx;Password=xxxxxxxx;"
filePath = Server.MapPath("xx.mdb")
%>

Finally, here's the code for the main page, which should show the contents
of the requested field:
<h2>Shoppingwithshanda.com is BACK!</h2>
<%
strHome = Replace(Replace(strHome,"''","'"),vbCrLf,"<br>")
response.write strHome
%>
Please note that I am aware that Access is not a good database, and I am
aware that sueing adovbs.inc has problems. It has not been a problem up till this point, and if you think that one of those items is a factor for this
problem, then feel free to let me know. If not, please save that discussion for another thread, please. I don't want to get sidetracked.

Also, please note that I have saved the db to my Hard drive, where I have
dsetermined that there is info in the fields. It is just not displaying.

Oct 24 '05 #3
See if one of the files was lost by Dreamweaver.

;]

Ray at work

"middletree" <mi********@HTOmail.com> wrote in message
news:u7**************@TK2MSFTNGP14.phx.gbl...
I'm really at a loss on this one. This thing was working just fine, then
stopped.

The site is http://www.shoppingwithshanda.com/shanda/shandahome.asp

All 6 pages are the same code, and that part in the middle, in the yellow,
is supposed to show the text that was placed in the Access database, in
that
one field.

Oct 24 '05 #4
> See if one of the files was lost by Dreamweaver.
8)
Oct 24 '05 #5

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

Similar topics

3
by: Harry | last post by:
Using Oracle 8i enterprise on win 2000 (sp3) Installed the standard configuration & whenever I make a connection it takes about 10 secs. It's running on a P1900 with 1gb Ram so no reason there...
4
by: James | last post by:
We've had a recurring problem where all of a sudden we get a DBMSSOCN General Network Error on any page that connects to SQL Server. Then we have to reboot the server and everything works fine...
1
by: Mark | last post by:
I know that DB2 LUW version 8 has "connection pooling" that provides a connection concentrator (limits the number of simultaneous connections that can occur). But does it really provide connection...
35
by: Eric Sabine | last post by:
In my Finally block, I was using cn.close (where cn is an ADO.NET connection object, SQLConnection to be exact) and then I came across the following in some microsoft code. If Not cn Is Nothing...
4
by: Rahul Anand | last post by:
Getting SQL Exception when trying to implement Connection based Trasaction using SQL Helper class. I am using the follwing function to execute my stored procs: -=-=-=- ExecuteScalar(ByVal...
5
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
16
by: crbd98 | last post by:
Hello All, Some time ago, I implemented a data access layer that included a simple connectin pool. At the time, I did it all by myself: I created N connections, each connection associated with...
20
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
1
by: sherifbk | last post by:
Problem description ============== - I have 4 clients and 1 server (SQL server) - 3 clients are Monitoring console 1 client is operation console - Monitoring console collects some data from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.