473,471 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to open the local database from my website

11 New Member
My database (ms access) is in ftp;
i want to transfer the one particular table content to local db which is in my system...

the coding i written was



' for local database connection
<%
strconnect="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strpath & " ; Persist Security Info=False"

set Conloc = Server.CreateObject("ADODB.Connection")
Conloc.Provider="Microsoft.Jet.OLEDB.4.0"
Conloc.Open strconnect
strdelete="Delete * from tablename"
Conloc.execute(strdelete)

' Ftp database connection

call opendatabase()
Set rsftp= con.Execute("select * from tableftp")

While not rsftp.Eof
ms=rsftp.fields("msg")
ss=rsftp.fields("sender")
Response.Write("Message::" & msg)
Response.Write("Sender :: " & sender)
' str_insert="Insert Into tableftp(ss,ms)values( '" & ss & " ','" & ms & "')"
Conloc.Execute str_insert
rsftp.movenext
wend

call closedatabase()


End if




%>






<form name="frm1">
<center>
<label for="uploadfile"><b>File name:</b> </label>
<input type="file" name="uploadfile" id="uploadfile">
<br><br><br>
<button name="btnsubmit" style="background-color:#E0DAB8" onclick="btnfile()" value="Send"><b>Update the Database </b> </button>
<input type="hidden" name="txthid">
</center>
</form>


when i try to open i got http 505 error ..page cant be viewed,,,
please help..
Oct 19 '07 #1
3 2123
JamieHowarth0
533 Recognized Expert Contributor
Hi Elavarasi,

Can you please explain further what you are trying to do?

I think I have the main jist of what you require but I'm not precisely sure.

If I'm right, you're trying to update a database using a file upload (where you use SQL to delete the old data, and then use SQL on the uploaded file to insert new data into your remote database)?

Let me know if this is what you mean and we'll try our best to help you further.

Best regards,

medicineworker
Oct 19 '07 #2
Elavarasi
11 New Member
Hi

i want to access the database which is at local machine....
(for eg:: c:...\desktp\dd.mdb) from web page.Is it possible to access that database (the database in ms access)

Silimal to backup.. instead of transfering entire database.. i want to transfer a single table... to my local database.. ( its for single user.. ) not for all...

regards
ela..




Hi Elavarasi,

Can you please explain further what you are trying to do?

I think I have the main jist of what you require but I'm not precisely sure.

If I'm right, you're trying to update a database using a file upload (where you use SQL to delete the old data, and then use SQL on the uploaded file to insert new data into your remote database)?

Let me know if this is what you mean and we'll try our best to help you further.

Best regards,

medicineworker
Oct 22 '07 #3
JamieHowarth0
533 Recognized Expert Contributor
Hi Elavarasi,

I don't think that ASP is able to connect to a database stored on your machine as it would have to get your IP details and use an ODBC connection along with sharing your Access database in a folder that is viewable across the Net.

However, you are able to upload files to web servers using ASP, so my suggestion would be to use a file upload script, such as the one described in this article and then dynamically determine the location of that uploaded MDB, retrieve the table you require and then use SQL to store the information using INSERT INTO into your new database.

Hope that helps.

medicineworker
Oct 22 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jack Crawford | last post by:
I am wondering if their is a strategy or tool for syncing a local database with a web-based database? Specifically I have an application where orders are entered via a web form and the data...
3
by: Oslo | last post by:
Hi All, I have a real simple .Net based website (IIS) using C#. I just kind of got started to develop using .Net I have a real simple .Net (.aspx extension). In the page load I am trying to...
1
by: Aliza Klein | last post by:
Hi. A client of mine has a website with a standard "Contact Us" form page with name, address etc. The information is currently sent via email to the client and is then data entered into their...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
13
by: tochiromifune | last post by:
Hello The window.open method brings my window to the top only if it is new. If it's being reused, the window does not come to the foreground (with IE 6 it does). Is there a new way in...
4
by: g4356 | last post by:
Hi, A new baby question: I downloaded a dot net project and saved it to my local disk. When I tried to open this project, a message popped up: "Unable to open web project "test/myfirstweb"/ The...
0
by: D0c | last post by:
Hey, I would like to syncronize my local database with my website database. Scenarios are 1. New rows / row updates in the local database to be updated on the website database (local -net) 2....
1
by: daver | last post by:
I just loaded a sql file into mysql but when I go to the address of my website i get the following errors.Any advice Warning: main(templates/cre6.5/main_page.tpl.php): failed to open stream: No...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.