Showing posts with label easiest. Show all posts
Showing posts with label easiest. Show all posts

Monday, March 19, 2012

Backup database to CSV files

Hi

What is the easiest option for Exporting ALL of my SQL Server tables into a CSV file (either separate CSV files for each table or one big file with all the table columns and data) ?

I just want to Backup my SQL Server database like we backup MySQL database using phpMyAdmin. Unfortunately, my SQL hosting company does not allow backups for free.

Thanks for help

Do you have a remote access via the SQL Management Studio?

Also, FREE backup can be provided by any hosting company nowadays.

Regards

Wednesday, March 7, 2012

backup and restore script

I want to be able to create a development database based on our live databas
e
-- on an ongoing basis. I think the easiest way is to backup the live
database, and restore it as a different name. Because I will be doing this
often, I would like to run this as a script.
Does anyone have a script that would do that ?
Is this a good way to create a development database ?
Thanks,
Craig"Craig HB" <CraigHB@.discussions.microsoft.com> wrote in message
news:FB8C7E76-586B-4902-90BF-7925C70B6299@.microsoft.com...
> I want to be able to create a development database based on our live
database
> -- on an ongoing basis. I think the easiest way is to backup the live
> database, and restore it as a different name. Because I will be doing this
> often, I would like to run this as a script.
> Does anyone have a script that would do that ?
> Is this a good way to create a development database ?
> Thanks,
> Craig
Works well if you need up to the second. If not, just grab the last db
backups and restore them.
Take a look at the BACKUP DATABASE and RESTORE DATABASE commands in the BOL.
I do this often myself as I need to ensure changes apply properly from
various database versions of our system.
I have 22 code bases to choose from now. (Gakk)
Each set of restore commands are currently saved as a .sql file.
I even included a generic kill sproc to remove any users from the databases
that will be update.
RestoreVer_2.1.1.10.sql
RestoreVer_2.1.1.11.sql and so forth.
Rick Sawtell
MCT, MCSD, MCDBA