0

One of my client has ASP site. Now he want to transfer the site to a different hosting. Unfortunately I have only FTP of the live site. Could any one please advise about how to create database backup using ASP pages.

2
  • What kind of DB you use? Don't you have any ways to access the DB? Or even to ask the hosting to provide an export or backup of the DB? Commented Sep 11, 2013 at 7:47
  • Is is Mssql server database. Commented Sep 11, 2013 at 7:48

1 Answer 1

1

Well in the worst case you could always do the Brute Force create new Backup on-click method:

<%Dim SQL, Conn, Database
Database = //Your database-Path
set conn = Server.CreateObject("ADODB.Connection")
conn.Open("/*Connection-String*/" + Database, 3,1)

SQL = "CREATE DATABASE [BackupDB]; BACKUP [Database] TO [BackupDB];"
conn.Execute(SQL)
%>
Database was backed up to "BackupDB"

but that should be avoided at all cost, because it is very unsafe and might as well shut down your whole system, if done wrong...

Best would be as @ppeterka 66 mentioned, that you ask your hosting provider to backup your database and send it to you.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.