473,379 Members | 1,245 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,379 software developers and data experts.

ASP with MYSQL

Sometimes you dread the day you woke up and said that you will become
a Computer Engineer. Not that you love being one, but its just one of
those days for me.

I have extensively worked on ASP, Access And Sql Server, on win 2k.
Now the requirements have changed. The DB has to be MySql. Right now,
I m working with a Win2k server and running ASP on IIS. That will
eventually be run on Linux on Chilli ASP. I dread that day too now.

The thing is, I have got The connection between ASP and MySql running
after much difficulty, because I suck at DSN connections and all. Now,
that its running, I can't seem to get the RecordCount for any
recordset I open with MySql. I worked around it to avoid it, but now I
m stuck with the Paging problem, cause whenever I try to page a
recordset, the following error pops up :-

Error Type:
ADODB.Recordset (0x800A0CB3)
Object or provider is not capable of performing requested operation.
/WorldMediaServices/admin/ListCategory.asp, line 102

AND THE REVELANT CODE FOR THE PAGE is :-
<%
set Res = Server.CreateObject("adodb.recordset")

SQL = "select * from A_Categories"

if not request("Category") = "0" then
SQL = SQL & " where name = '" & request("Category") & "'"
end if

SQL = SQL & " order by name"

Res.open SQL,Application("Conn"),3,2
Res.PageSize = 10
Res.absolutepage = 1
%>
Line 102 being the last one.

I don't know where the problem lies, the configuration of MySql for
Windows or ASP.

Any help would be really appreciated.
Thanks
Regards
Jawad
Jul 19 '05 #1
1 3262
On 12 Sep 2003 08:48:01 -0700, sm*******@yahoo.com (Jawad) wrote:
I have extensively worked on ASP, Access And Sql Server, on win 2k.
Now the requirements have changed. The DB has to be MySql. Right now,
I m working with a Win2k server and running ASP on IIS. That will
eventually be run on Linux on Chilli ASP. I dread that day too now.
You may want to bone up on the differences/limitations of Chilisoft's
ASP product. You may find yourself in trouble trying to use code
developed on IIS/Windows.
The thing is, I have got The connection between ASP and MySql running
after much difficulty, because I suck at DSN connections and all.
See:

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

The OLEDB connection is rather simple.
Error Type:
ADODB.Recordset (0x800A0CB3)
Object or provider is not capable of performing requested operation.
/WorldMediaServices/admin/ListCategory.asp, line 102

AND THE REVELANT CODE FOR THE PAGE is :-
<%
set Res = Server.CreateObject("adodb.recordset")

SQL = "select * from A_Categories"

if not request("Category") = "0" then
SQL = SQL & " where name = '" & request("Category") & "'"
end if

SQL = SQL & " order by name"

Res.open SQL,Application("Conn"),3,2
Res.PageSize = 10
Res.absolutepage = 1
%>
Line 102 being the last one.

I don't know where the problem lies, the configuration of MySql for
Windows or ASP.


More likely the code you use works in SQL Server but there's a
difference in MySQL. Try a simple query to make sure the connection
and recordset works, then step through the rest. ASPFAQ.com has some
info, or try a MySQL support list.

Jeff
Jul 19 '05 #2

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

Similar topics

2
by: francescomoi | last post by:
Hi. I'm trying to build 'MySQL-python-1.2.0' on my Linux FC2: ---------------------------------- # export PATH=$PATH:/usr/local/mysql/bin/ # export mysqlclient=mysqlclient_r # python setup.py...
4
by: mikey | last post by:
Hi all, I'm having great problems trying to install the latest MySQl RPM package onto my Red Hat Linux OS. There is already MySQL v 3.0 pre-installed with the RH Linux distribution disk but I...
0
by: Yun Guan | last post by:
Hello mysql gurus, I am trying to run perl on mysql database on Red Hat box. I want to install DBI and DBD:mysql using CPAN: perl -MCPAN -e shell cpan>install DBI The above succeeded, but...
0
by: Mike Chirico | last post by:
Interesting Things to Know about MySQL Mike Chirico (mchirico@users.sourceforge.net) Copyright (GPU Free Documentation License) 2004 Last Updated: Mon Jun 7 10:37:28 EDT 2004 The latest...
2
by: Saqib Ali | last post by:
I installed mySQL and have it running.... but I think I made a mistake somewhere along the line...... I believe I did follow the instructions that were provided with the distribution at:...
1
by: Alex Hunsley | last post by:
I am trying to install the DBD::mysql perl module. However, it claims I need mysql.h: cpan> install DBD::mysql CPAN: Storable loaded ok Going to read /home/alex/.cpan/Metadata Database was...
0
by: ./Rob & | last post by:
Hi gang: I'm experiencing a problem with MySQL -- I updated MySQL from version 4.1.0 to 4.1.10 and now when I login as root it doesn't show all the databases I should have access to, nor it...
2
by: trihanhcie | last post by:
I m currently working on a Unix server with a fedora 3 as an os My current version of mysql is 3.23.58. I'd like to upgrade the version to 5.0.18. After downloading from MYSQL.COM the package on...
1
by: manish deshpande | last post by:
Hi, When i'm installing MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm by the following command: rpm -i MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm the following error is being shown: ...
3
by: menzies | last post by:
Hi, I"m new to this forum, but I have been trying all day to install DBD::mysql onto my Intel MacBook. I've read lots of forums pages and none have gotten me to a successful 'make test' or a...
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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.