SQL Backup

I've got a SQL server at an ISP which I want to archive, structure + data. I'm trying to find the old SQL Publishing Wizard, but I can't seem to get one that works. I just want a backup in case this app ever goes online again.
What is the best thing to do?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
Make a backup of all databases.
what version Sql?

transact SQL
USE AdventureWorks2012;
BACKUP DATABASE AdventureWorks2012
TO DISK = 'Z:\SQLServerBackups\AdventureWorks2012.Bak'
      MEDIANAME = 'Z_SQLServerBackups',
      NAME = 'Full Backup of AdventureWorks2012';

1 setup sql server powershell provider PowerShell Provider
2 C:\PS>
Backup-SqlDatabase -ServerInstance Computer\Instance -Database MyDB -BackupAction Database
Silas2Author Commented:
That transact SQL isn't going to bring the DB down from the web is it? (I can't make a file on the remote server)
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

Silas2Author Commented:
Right, getting there with the PowerShell...I'm using this command:
Backup-SqlDatabase -ServerInstance dmssql.databasehost.co.uk -Database silas02_walkden2 -Credential (Get-Credential silas02_uname) -BackupFile "c:\deletes\walkden.bak"

Open in new window

I'm getting in, but just saying the backup file doesn't exist. I was hoping it would make it + even better to make a sql script like the wizard used to ....any help? (sorry to be so helpless)
no it will not bring the DB down
wht version of powershell are you running?
$bakfile = "walkden.bak"
$backuppath = "c:\deletes"
if(!(Test-Path $backuppath )){New-Item -ItemType Directory -Path $backuppath}
$backupfile = Join-Path -Path $backuppath -ChildPath $bakfile

Backup-SqlDatabase -ServerInstance dmssql.databasehost.co.uk -Database silas02_walkden2 -Credential (Get-Credential silas02_uname) -BackupFile $backupfile

also try  -SqlCredential "silas02_uname"
migth be your version of powershell/sql server

see if that helps

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Silas2Author Commented:
Thanks for that.
The funny thing is, I keep getting 'Cannot open device c:\deletes\walkden.bak', maybe I should create it with Management Studio?
Vitor MontalvãoMSSQL Senior EngineerCommented:
That transact SQL isn't going to bring the DB down from the web is it?
You can backup to a network share:
 TO DISK = '\\ServerName\ShareName\DatabaseName.Bak'

Open in new window

Silas2Author Commented:
The db as with an ISP, I don't have any network share, only ftp access.
Vitor MontalvãoMSSQL Senior EngineerCommented:
I mean, the share need to be from your side, so the DB server can write into it.
Anyway this may raise some security issues from the provider and depending in their policies this may not be achieved. You'll need to ask them, I think.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.