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

Simple ASP DB problem.

Des
I am trying to connect to a MySQL database on a windows server using
ASP / ADODB

I keep getting unable to display page

http://www.desmond-otoole.co.uk/index.asp

Any sugestions?
Jan 15 '08 #1
10 2057
Des wrote:
I am trying to connect to a MySQL database on a windows server using
ASP / ADODB

I keep getting unable to display page

http://www.desmond-otoole.co.uk/index.asp
Not without seeing the code used to connect, as well as the acutal error
message ... do you have "friendly errors" shut off so you you can see
the actual errors in your browser?
http://www.aspfaq.com/show.asp?id=2109

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jan 15 '08 #2
Des
On 15 Jan, 15:27, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
Des wrote:
I am trying to connect to a MySQL database on a windows server using
ASP / ADODB
I keep getting unable to display page
http://www.desmond-otoole.co.uk/index.asp

Not without seeing the code used to connect, as well as the acutal error
message ... do you have "friendly errors" shut off so you you can see
the actual errors in your browser?http://www.aspfaq.com/show.asp?id=2109

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
------------------
Hear is the entire code for the page. This is a MYSQL database

<%@ Language=VBScript %>

<%
Set connection = Server.CreateObject("ADODB.Connection")
Set rsResult = Server.CreateObject("ADODB.Recordset")

sqlconn =
"Driver={mySQL};Server=mysql12.streamline.net;Data base=desmondot;Uid=desmondot;Pwd=s131679"
connection.Open sqlconn

sqlResults = "SELECT * FROM Members"

rsResult.Open sqlResults, connection
rsResult.MoveFirst
sName = rsResult("f_name")

echo sName
%>
Jan 15 '08 #3
Des wrote:
On 15 Jan, 15:27, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
>Des wrote:
>>I am trying to connect to a MySQL database on a windows server using
ASP / ADODB
>>I keep getting unable to display page
>>http://www.desmond-otoole.co.uk/index.asp

Not without seeing the code used to connect, as well as the acutal
error message ... do you have "friendly errors" shut off so you you
can see the actual errors in your
browser?http://www.aspfaq.com/show.asp?id=2109

------------------
Hear is the entire code for the page. This is a MYSQL database

<%@ Language=VBScript %>

<%
Set connection = Server.CreateObject("ADODB.Connection")
Set rsResult = Server.CreateObject("ADODB.Recordset")

sqlconn =
"Driver={mySQL};Server=mysql12.streamline.net;Data base=desmondot;Uid=des
mondot;Pwd=s131679"
connection.Open sqlconn
This is all the code I really needed to see. I don't use MySQL so I'm
not sure how the server is supposed to be referred to. Maybe you can try
an example at www.connectionstrings.com

Where is the error message you are getting? You could modify your code
to have vbscript handle the error and display the actual error message,
like this:

on error resume next
connection.Open sqlconn
if err <0 then
Response.Write err.message
else
'open the recordset and process it
end if

You are limiting our ability to help you by not telling us what error
message you are getting.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jan 15 '08 #4
Echo? Should be:

Response.Write sName

If that doesn't work, remove all other code, and have one line:

<%

Response.Write "Hello World"

%>

and go from there

Jeff
"Des" <de*********@aol.comwrote in message
news:76**********************************@q39g2000 hsf.googlegroups.com...
On 15 Jan, 15:27, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
>Des wrote:
I am trying to connect to a MySQL database on a windows server using
ASP / ADODB
I keep getting unable to display page
>http://www.desmond-otoole.co.uk/index.asp

Not without seeing the code used to connect, as well as the acutal error
message ... do you have "friendly errors" shut off so you you can see
the actual errors in your browser?http://www.aspfaq.com/show.asp?id=2109

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

------------------
Hear is the entire code for the page. This is a MYSQL database

<%@ Language=VBScript %>

<%
Set connection = Server.CreateObject("ADODB.Connection")
Set rsResult = Server.CreateObject("ADODB.Recordset")

sqlconn =
"Driver={mySQL};Server=mysql12.streamline.net;Data base=desmondot;Uid=desmondot;Pwd=s131679"
connection.Open sqlconn

sqlResults = "SELECT * FROM Members"

rsResult.Open sqlResults, connection
rsResult.MoveFirst
sName = rsResult("f_name")

echo sName
%>

Jan 15 '08 #5
Des
On 15 Jan, 18:19, "Jeff Dillon" <jeffdil...@hotmailremove.comwrote:
Echo? Should be:

Response.Write sName

If that doesn't work, remove all other code, and have one line:

<%

Response.Write "Hello World"

%>

and go from there

Jeff"Des" <desotuat...@aol.comwrote in message

news:76**********************************@q39g2000 hsf.googlegroups.com...
On 15 Jan, 15:27, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
Des wrote:
I am trying to connect to a MySQL database on a windows server using
ASP / ADODB
I keep getting unable to display page
http://www.desmond-otoole.co.uk/index.asp
Not without seeing the code used to connect, as well as the acutal error
message ... do you have "friendly errors" shut off so you you can see
the actual errors in your browser?http://www.aspfaq.com/show.asp?id=2109
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
------------------
Hear is the entire code for the page. This is a MYSQL database
<%@ Language=VBScript %>
<%
Set connection = Server.CreateObject("ADODB.Connection")
Set rsResult = Server.CreateObject("ADODB.Recordset")
sqlconn =
"Driver={mySQL};Server=mysql12.streamline.net;Data base=desmondot;Uid=desmon*dot;Pwd=s131679"
connection.Open sqlconn
sqlResults = "SELECT * FROM Members"
rsResult.Open *sqlResults, connection
rsResult.MoveFirst
sName = rsResult("f_name")
echo sName
%>- Hide quoted text -

- Show quoted text -
-----------------
Error is
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no
default driver specified

/index.asp, line 9
Line 7: sqlconn =
"Driver={mySQL};Server=mysql12.streamline.net;Data base=desmondot;Uid=desmondot;Pwd=s131679"
Line 8: conn.ConnectionString = sqlconn
Line 9: conn.open

Desmond
Jan 15 '08 #6
Des
On 15 Jan, 18:26, Des <desotuat...@aol.comwrote:
On 15 Jan, 18:19, "Jeff Dillon" <jeffdil...@hotmailremove.comwrote:


Echo? Should be:
Response.Write sName
If that doesn't work, remove all other code, and have one line:
<%
Response.Write "Hello World"
%>
and go from there
Jeff"Des" <desotuat...@aol.comwrote in message
news:76**********************************@q39g2000 hsf.googlegroups.com...
On 15 Jan, 15:27, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
>Des wrote:
I am trying to connect to a MySQL database on a windows server using
ASP / ADODB
I keep getting unable to display page
>http://www.desmond-otoole.co.uk/index.asp
>Not without seeing the code used to connect, as well as the acutal error
>message ... do you have "friendly errors" shut off so you you can see
>the actual errors in your browser?http://www.aspfaq.com/show.asp?id=2109
>--
>Microsoft MVP -- ASP/ASP.NET
>Please reply to the newsgroup. The email account listed in my From
>header is my spam trap, so I don't check it very often. You will get a
>quicker response by posting to the newsgroup.
------------------
Hear is the entire code for the page. This is a MYSQL database
<%@ Language=VBScript %>
<%
Set connection = Server.CreateObject("ADODB.Connection")
Set rsResult = Server.CreateObject("ADODB.Recordset")
sqlconn =
"Driver={mySQL};Server=mysql12.streamline.net;Data base=desmondot;Uid=desmon**dot;Pwd=s131679"
connection.Open sqlconn
sqlResults = "SELECT * FROM Members"
rsResult.Open *sqlResults, connection
rsResult.MoveFirst
sName = rsResult("f_name")
echo sName
%>- Hide quoted text -
- Show quoted text -

-----------------
Error is
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no
default driver specified

/index.asp, line 9

Line 7: sqlconn =
"Driver={mySQL};Server=mysql12.streamline.net;Data base=desmondot;Uid=desmon*dot;Pwd=s131679"
Line 8: conn.ConnectionString = sqlconn
Line 9: conn.open

Desmond- Hide quoted text -

- Show quoted text -
=================
Thanks Guys. I have changed the connection string to
"Driver={MySQL ODBC 3.51
Driver};Server=mysql12.streamline.net;Database=des mondot;Uid=desmondot;Pwd=s131679"
NOW this works

Cheers -Desmond
Jan 15 '08 #7
Des wrote:
Error is
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no
default driver specified

/index.asp, line 9
Line 7: sqlconn =
"Driver={mySQL};Server=mysql12.streamline.net;Data base=desmondot;Uid=des
mondot;Pwd=s131679"
Line 8: conn.ConnectionString = sqlconn
Line 9: conn.open
Ok, have you verified the syntax of your connection string a
www.connectionstrings.com?
The "mysql12.streamline.net" bit looks suspicious to me, but I'm used
the MS SQL Server, so that could be the correct way to refer to it. You
should verify with a mysql newsgroup.

Assuming the name you are using is correct, is that database server
accessible to the web server? And particularly, is it accessible to the
user account being used to run your code? If your website allows
anonymous access, then that user account is the IUSR_MachineName account
(replace "MachineName" with the name of the machine running the web
server ... )

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jan 15 '08 #8
NOW would be a very good time to change your password.
Jan 15 '08 #9
Ted Dawson wrote on 15 jan 2008 in microsoft.public.inetserver.asp.general:
NOW would be a very good time to change your password.
Now would be a better time to learn quoting, Ted.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 15 '08 #10
>NOW would be a very good time to change your password.
>
Now would be a better time to learn quoting, Ted.


Didn't want to repeat the PW again.
Jan 15 '08 #11

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

Similar topics

3
by: Patchwork | last post by:
Hi Everyone, Please take a look at the following (simple and fun) program: //////////////////////////////////////////////////////////////////////////// ///////////// // Monster Munch, example...
6
by: francisco lopez | last post by:
ok , first of all sorry if my english is not so good, I do my best. here is my problem: I don´t know much javascript so I wrote a very simple one to validate a form I have on my webpage. ...
0
by: 42 | last post by:
I implemented a simple class inherited from Page to create a page template. It simply wraps some trivial html around the inherited page, and puts the inherited page into a form. The problem I...
18
by: Sender | last post by:
Yesterday there was a very long thread on this query. (You can search on this by post by 'sender' with subject 'Simple Problem' post date Oct 7 time 1:43p) And in the end the following code was...
27
by: one man army | last post by:
Hi All- I am new to PHP. I found FAQTS and the php manual. I am trying this sequence, but getting 'no zip string found:'... PHP Version 4.4.0 $doc = new DomDocument; $res =...
2
by: Vitali Gontsharuk | last post by:
Hi! I have a problem programming a simple client-server game, which is called pingpong ;-) The final program will first be started as a server (nr. 2) and then as a client. The client then...
8
by: rdrink | last post by:
I am just getting into pysqlite (with a fair amount of Python and MySQL experience behind me) and have coded a simple test case to try to get the hang of things... yet have run into a 'stock...
5
by: Chelong | last post by:
hey,the follow is the text file content ========================================apple====pear== one Lily 7 0 0 7 7 two Lily 20 20 6.6666 20 8 one Lily 0 10 2.85 4 0 two Lily 22 22 7.33326 2 5 ...
30
by: galiorenye | last post by:
Hi, Given this code: A** ppA = new A*; A *pA = NULL; for(int i = 0; i < 10; ++i) { pA = ppA; //do something with pA
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.