all groups > iis ftp > august 2005 >
You're in the

iis ftp

group:

modify database of FTP Server through VB.Net


modify database of FTP Server through VB.Net Harsha Shah
8/11/2005 12:00:00 AM
iis ftp:
Hi,

I have developed an web-site , I use Access-2000 database with ASP,

I want to access my data through VB .Net , and want to modify selected data.
So procedure may be as below :

Application connect to FTP Server with username and password, access
database and change required correction.

How can I ,

Any hints will be sincerly appreciated.


Harsha Shah








Re: modify database of FTP Server through VB.Net Chris Crowe [MVP]
8/11/2005 12:00:00 AM
From what you are saying to me is that you are sitting at your client
computer and you want to update records in your Access Database that could
presumably be at an ISP's site that you can connect to via FTP? Normally
people upload new versions of their access database in this case.

Have you thought about writing some ASP web pages to update the database, or
maybe a create web service in vb.net?

It really depends on what you are updating as to your options.

Have a look at this code project which is a database Viewer and Editor for
ASP

http://www.codeproject.com/asp/ute.asp

For an online demo see http://www.wellige.com/tom/ute/

Let me know if any of this helps.
--

Cheers

Chris

Chris Crowe [IIS MVP]
http://blog.crowe.co.nz

[quoted text, click to view]

Re: modify database of FTP Server through VB.Net Harsha Shah
8/20/2005 12:00:00 AM

[quoted text, click to view]
My website use Access database . I want to call server's database by
something like following procedure (VB.Net)

conn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;
DATA SOURCE= "ftp:\\180.20.15.40\sbgb.org\Database\inspection.mdb")


[quoted text, click to view]

Some columns of the table (like password ) can be change by web user
(viewer) . So it is not possible to replace whole database.

Thanks for reply

Hardik Shah


========================
[quoted text, click to view]

Re: modify database of FTP Server through VB.Net Bernard Cheah [MVP]
8/22/2005 12:00:00 AM
wow. can this be done?
DATA SOURCE= "ftp:\\180.20.15.40\sbgb.org\Database\inspection.mdb")

ftp is a file transfer protocol not file system that handle file open,
locking, etc.

--
Regards,
Bernard Cheah
http://www.microsoft.com/iis/
http://www.iiswebcastseries.com/
http://www.msmvps.com/bernard/


[quoted text, click to view]

Re: modify database of FTP Server through VB.Net Harsha Shah
8/22/2005 12:00:00 AM
Hi,

I just take chance, then what is its alternate.

Hardik



[quoted text, click to view]

Re: modify database of FTP Server through VB.Net Bernard Cheah [MVP]
8/22/2005 12:00:00 AM
You can host the db in your local network, then access via UNC path
\\remoteserver\share
why so troublesome ? can you host it in the IIS server itself ?

--
Regards,
Bernard Cheah
http://www.microsoft.com/iis/
http://www.iiswebcastseries.com/
http://www.msmvps.com/bernard/


[quoted text, click to view]

Re: modify database of FTP Server through VB.Net Harsha Shah
8/22/2005 12:00:00 AM
Hi,

Thanks for your previous replies. I think I can't explain my problem
effectively. So I am trying again. Please help me.

I have web database name ftpdata.mdb, on this path
ftp://216.157.154.143/sbgb.org/hardasp/ftpdata.mdb
It is accessed by public and some of data is updated by them through web
page.

Now I also have to update this database at out side. it is not possible to
replace whole database through ftp connection.
So I have to write some code in vb. net , it might be as follow :

1) Connect to my web database
ftp://216.157.154.143/sbgb.org/hardasp/ftpdata.mdb
2) Connect to my local database (C:\local.mdb)
3) Check (Record by Record) local.mdb with ftpdata.mdb and if required
update ftpdata.mdb

I just miss connectionstring , what should be connectionstring
or is there any alternate to do this type of task

Any hints will be sincerly appreciated.


Hardik.............





[quoted text, click to view]

Re: modify database of FTP Server through VB.Net Chris Crowe [MVP]
8/23/2005 12:00:00 AM
You won't be able open your database using that path.

You will need to maybe write a WebService (or a simple web page) that will
allow you to check the changes and do updates. Your application will then
post data to the WebService and get a response and then decide what to do
such as update the record.

Not really an IIS problem more of a development issue.

--

Cheers

Chris

Chris Crowe [IIS MVP]
http://blog.crowe.co.nz

[quoted text, click to view]

Re: modify database of FTP Server through VB.Net Bernard Cheah [MVP]
8/30/2005 12:00:00 AM
Sorry, been traveling. Now, as mentioned earlier - you can put a ftp:// in
the connectionstring and expect this to work. Also Chris has pointed out
that this is development issue not IIS ftp.

PS: you are posting real url in your msgs. thought is protected by password.
it is still a risk by posting such info in a public forums.

--
Regards,
Bernard Cheah
http://www.microsoft.com/iis/
http://www.iiswebcastseries.com/
http://www.msmvps.com/bernard/


[quoted text, click to view]

Re: modify database of FTP Server through VB.Net Harsha Shah
9/14/2005 12:00:00 AM
Bernard Cheah Writes :
Sorry, been traveling. Now, as mentioned earlier - you can put a ftp:// in
the connectionstring and expect this to work. Also Chris has pointed out
that this is development issue not IIS ftp.
=============
Did you mean that I can give following command ?

conn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0; DATA SOURCE=
"ftp:\\180.20.15.40\sbgb.org\Database\inspection.mdb")

Is there any sample code.

Hardik.



[quoted text, click to view]

Re: modify database of FTP Server through VB.Net Bernard Cheah [MVP]
9/19/2005 12:00:00 AM
I meant you can't do this.. ftp:\\x.x.x.x\your.mdb\
FTP is a file transfer protocol... not a file system for you to access.

--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://www.msmvps.com/bernard/


[quoted text, click to view]

AddThis Social Bookmark Button