I have a large database size and I want to do Compact and repair database ,How?
i'm using Visual C# 2010 Express and SQL Server 2008
7 Replies - 912 Views - Last Post: 29 January 2012 - 06:59 AM
#1
How can Backup and Compression database (SQL Server 2008)?
Posted 28 January 2012 - 11:00 AM
Replies To: How can Backup and Compression database (SQL Server 2008)?
#2
Re: How can Backup and Compression database (SQL Server 2008)?
Posted 28 January 2012 - 11:10 AM
to backup a database,
right-click on the database > Tasks > Back Up

to compress a database,
right-click on the database > Tasks > Shrink > choose whether you want to compress the database or the data files
right-click on the database > Tasks > Back Up

to compress a database,
right-click on the database > Tasks > Shrink > choose whether you want to compress the database or the data files
#3
Re: How can Backup and Compression database (SQL Server 2008)?
Posted 28 January 2012 - 11:20 AM
Is it possible to work through the code?
I want to do that from the program by using button, for example
I want to do that from the program by using button, for example
#4
Re: How can Backup and Compression database (SQL Server 2008)?
Posted 28 January 2012 - 11:28 AM
ooh haven't done that myself. In my workplace, there's this small program which we give to clients to take backups without interfering the backend SQL database. But unfortunately I don't have the code of that app. So I guess it's possible to create something like that. Sorry.
#5
Re: How can Backup and Compression database (SQL Server 2008)?
Posted 28 January 2012 - 11:41 AM
Do you have any example that can help me ?? 
I found a lot of examples, but all about Access
I found a lot of examples, but all about Access
#6
Re: How can Backup and Compression database (SQL Server 2008)?
Posted 28 January 2012 - 12:16 PM
I just remembered the program which I mentioned earlier is written in VB6 or VB.NET. Since you're using C#, it won't be of any help either. and as I said I don't have access to the code of that. Sorry.
Try these tutorials.
http://www.codeproje...d-Restore-using
http://www.wisecodes...and-restore-it/
and here's an example
Try these tutorials.
http://www.codeproje...d-Restore-using
http://www.wisecodes...and-restore-it/
and here's an example
#7
Re: How can Backup and Compression database (SQL Server 2008)?
Posted 28 January 2012 - 12:29 PM
nK0de, on 28 January 2012 - 12:16 PM, said:
I just remembered the program which I mentioned earlier is written in VB6 or VB.NET. Since you're using C#, it won't be of any help either. and as I said I don't have access to the code of that. Sorry.
Try these tutorials.
http://www.codeproje...d-Restore-using
http://www.wisecodes...and-restore-it/
and here's an example
Try these tutorials.
http://www.codeproje...d-Restore-using
http://www.wisecodes...and-restore-it/
and here's an example
thank you
There is no problem if the example c# or vb.net
#8
Re: How can Backup and Compression database (SQL Server 2008)?
Posted 29 January 2012 - 06:59 AM
* Moved to the C# forum *
This has less to do with the database at this point then it has to do with the code.
This has less to do with the database at this point then it has to do with the code.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|