Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 dumping all databses

Author  Topic 

mridang_agarwal
Starting Member

22 Posts

Posted - 2007-03-02 : 04:56:36
Hey Guys,
I do alot of development on my personal machine and have quite few databases in SQL Server. My PC is very prone to crashing :-p so Im writing a custom batch script to backup up all my data. How can I backup my SQL Server databses into a text file. I dont want to use the BAK file. In MYSQL this is a relatively simple process where i just have to use the mysqldump utility which scripts 'all' my databases (structure and data). Can I do the same thing in SQL Server? Please tell me a way. Its going to save me a lot of trouble.
Thanks in advance guys.

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-03-02 : 05:16:36
this creates insert scripts for your data.
but you'll have to write code for your databases
http://vyaskn.tripod.com/code.htm#inserts

Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

mridang_agarwal
Starting Member

22 Posts

Posted - 2007-03-02 : 06:05:05
Isn't there any kind of tool or something. How would this help? I need to backup the structure too and all into a single text file.
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-03-02 : 06:26:52
search on google. i don't know of such a tool. but it probably exists.
there is no such tool that comes with sql server


Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-03-02 : 06:33:08
Sometimes ago Peter posted a link about an SQL tool which he found on Microsoft site.

Just can't find it.....!!!

Oh, yes..here it is:
[url]http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=73608&SearchTerms=script,data[/url]

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2007-03-02 : 08:21:10
There is no good reason for you to not use BACKUP.

Just use the tool provided.


CODO ERGO SUM
Go to Top of Page

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2007-03-02 : 09:26:01
Here's a tool that will do it:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=73884


www.elsasoft.org
Go to Top of Page
   

- Advertisement -