Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Backup and Restore database using T-SQL

 
   Database Help (Home) -> Programming RSS
Next:  Another question XML Output  
Author Message
shapper

External


Since: Feb 24, 2008
Posts: 19



(Msg. 1) Posted: Wed Jun 16, 2010 6:10 am
Post subject: Backup and Restore database using T-SQL
Archived from groups: microsoft>public>sqlserver>programming (more info?)

Hello,

Is it possible to backup and restore a database using T-SQL?

I need to backup the database, log and filegroup to a specific folder
and verify that everything is ok.

And later I would like to restore it.

I suppose I can't backup and restore the User, Login, Role, etc ...

Thank You,

Miguel

 >> Stay informed about: Backup and Restore database using T-SQL 
Back to top
Login to vote
Scott Morris

External


Since: Aug 28, 2003
Posts: 86



(Msg. 2) Posted: Wed Jun 16, 2010 9:37 am
Post subject: Re: Backup and Restore database using T-SQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"shapper" wrote in message

> Hello,
>
> Is it possible to backup and restore a database using T-SQL?

Yes - you can read about the commands in the online help or on msdn.

 >> Stay informed about: Backup and Restore database using T-SQL 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Backup and Restore dialogs. - Hi, Is there some programmatic way I can launch a Backup or Restore dialog for SQL Server (2005), kind-of like a Windows Common Dialog? I'm writing a VB.NET client, but don't mind getting my hands dirty with Interop. I'm hoping something like this....

Help in taking backup and restore of any number of table - Hello All I am developing a program in C++ which will take backup and restore of full database and partial database (any number of tables). For database I am using MS SQL Server 2005. For full database backup and restore we used VDI API and SQL BACKUP..

Backup and restore of Partitioned Tables in 2005 - Hi, Does anyone know if it is possible to backup a SQL 2005 database with partitioned tables and restore it onto a standard edition which doesn't support partitioned tables? The expected behaviour ofcourse is to have the data in a regular non partitione...

Restore a copy of a database with different name - Hi, Simple question: I would like to retore a backup database as a copy with a different name. So now I would have 2 identical databases but, with different names. When I run this I get errors complaining about overriding mdf files and ldf files. Wel...

Restore Database and Transaction logs - Hi all, using SQL 2000 sp4 I have a production database that is set at full mode. I do backups nightly on the database and backup transactions every 2 hours. I would like to test run a restore into a new database name and only upto a certain..
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]