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.
-
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?ppeterka– ppeterka2013-09-11 07:47:32 +00:00Commented Sep 11, 2013 at 7:47
-
Is is Mssql server database.Durga Dutt– Durga Dutt2013-09-11 07:48:23 +00:00Commented Sep 11, 2013 at 7:48
Add a comment
|
1 Answer
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.