Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP uploading

Status
Not open for further replies.

obaluba

Technical User
Sep 24, 2001
49
GB
Hello, I am trying to upload my simple access database and asp file to my webserver. It is asp compatible, but i don't know how to set it up so the asp page registers the database is there

any help would be appreciated

thanks in advance
 
thats a better way to put it. I wish to connect to an asp file to an access database which i have uploaded to my site!


thanks
 
if this helps, my code is as follows

<% Response.buffer = true %>
<html>
<head>
<title>gallery</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;></head>
<body bgcolor=&quot;#FF0000&quot; text=&quot;#CCCCCC&quot;>
<p><font color=&quot;#FFFFFF&quot; size=&quot;2&quot; face=&quot;Tahoma&quot;><font color=&quot;#666666&quot;>Welcome
to the Astra-sport online ASP gallery</font></font></p>
<p><font face=&quot;Tahoma&quot;><font size=&quot;2&quot;>
<% Dim rs
Set Conn = Server.CreateObject(&quot;ADODB.Connection&quot;)
Conn.Open &quot;DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=&quot; & Server.MapPath(&quot;\rob\mk4.mdb&quot;)
rs.Open &quot;mk4&quot;, &quot;DSN=mk4&quot;

While Not rs.EOF
Response.Write &quot;ID : &quot; & rs(&quot;Username&quot;) & &quot;<br>&quot;
Response.Write &quot;Name : &quot; & rs(&quot;Name&quot;) & &quot;<br>&quot;
Response.Write &quot;e-mail : <a href=&quot;&quot;mailto:&quot; & rs(&quot;e-mail&quot;) & &quot;&quot;&quot;>&quot; & rs(&quot;e-mail&quot;) & &quot;<br>&quot;
Response.Write &quot;URL : <a href=&quot;&quot;&quot; & rs(&quot;URL&quot;) & &quot;&quot;&quot;>&quot; & rs(&quot;URL&quot;) & &quot;</a><br>&quot;
Response.Write &quot;Location : &quot; & rs(&quot;Location&quot;) & &quot;<br>&quot;
Response.Write &quot;Modifications : &quot; & rs(&quot;Modifications&quot;) & &quot;<br>&quot;
Response.Write &quot;images : <img src=&quot;&quot;&quot; & rs(&quot;images&quot;) & &quot;&quot;&quot; border=&quot;&quot;0&quot;&quot;><br>&quot;
Response.Write &quot;<br>&quot;
rs.MoveNext
Wend

rs.Close
Set rs = Nothing %>
</font></font></p>
<p>&nbsp; </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div align=&quot;center&quot;></div>
</body>
</html>

the error message i get is:


ADODB.Connection.1 error '800a0bb9'

The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another.

/rob/mk4.asp, line 12


any help would be appreciated!!

thanks in advance
 
The problem is probably your DSN.
This DSN is most likely not set on your server so it is not resolving. Try using the connection object that you set up rather than the DSN. Before doing so, however, check the path in the connection string to make sure it will still be valid on the remote server.
Code:
Conn.Open &quot;DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=&quot; & Server.MapPath(&quot;\rob\mk4.mdb&quot;)
&lt;-- Check this
Code:
rs.Open &quot;mk4&quot;, &quot;DSN=mk4&quot;
&lt;-- Change this
Code:
rs.Open &quot;mk4&quot;, Conn
&lt;-- To this

-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
 
Oh, and instantiate you recordset object, sorry, missed that one:
Code:
<%  Dim rs, Conn
Set rs = Server.CreateObject(&quot;ADODB.RecordSet&quot;)
&lt;--
Code:
Set Conn = Server.CreateObject(&quot;ADODB.Connection&quot;)
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top