Last post Jun 03, 2014 08:28 AM by Mikesdotnetting
Jun 03, 2014 04:01 AM|circut009|LINK
I have a database (data.mdb) on Server A. I want to copy/duplicate the whole database to a remote Server B. I want to do this thing at button click. I dont want the user to manually upload file. At button click data.mdb should get copied to Server B. I am
using C# & asp.net.
Jun 03, 2014 07:29 AM|Mikesdotnetting|LINK
You need to put something on server B that will manage this. That could be an FTP site or if the database is small enough, you could use HTTP to POST the file. Or you might be able to create a Web Service that accepts a byte array and call that.
Jun 03, 2014 08:10 AM|circut009|LINK
How can i use HTTP to Post the file, will it be like a mail.
Jun 03, 2014 08:28 AM|Mikesdotnetting|LINK
No. You can use the WebClient class to "upload" the mdb file: http://msdn.microsoft.com/en-GB/library/ms144229.aspx