Showing posts with label express. Show all posts
Showing posts with label express. Show all posts

Tuesday, March 27, 2012

Backup SQLExpress database

I have installed the community preview version of SQL Express (I think the April preview version). I can't find a way to backup a database created with the SQL Express UI tools. Can you point me in the right direction? Thanks, Leo

Hi,

I'm not very familar with Express Manager Tool. But if you do not find anything like dts or export/import function of dbs. I woul just write a small script that takes all tables into a dataset and would then write that dataset into a different database base or write it to a xml-file, using the writexml method of the dataset class.|||

You should be able to use the same T-SQL BACKUP syntax that works with any other database.

Something like:
SQLCMD -S machine\instance
SQLCMD> BACKUP DATABASE [foo] TO DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\foo.bak'
Books Online has the full syntax of the BACKUP DATABASE command.

|||thanks

Sunday, March 25, 2012

Backup Shared Server DB using SQL Server 2005 Management Express

Hi,

I want to backup and/or have a local copy of my DB which is on a shared host. I have an ip addreess and user/pwd, but I am at a loss to find any help for the steps to accomplish this in Management express.

Am I using the right tool?

You will have to keep in mind that backup / restore will only either reach local drives or accessible UNC shares. I do my backups using the Copy Database wizard in management Studio, but if you only have SQL Server Express you can only use the SQL Hosting Pusblishing kit to destribute the database to a hoster and not the way back unless you local database is also published to the internet and the remote server is SQL Express.

Jens K. Suessmeyer.

http://www.sqlserver2005.de
|||

Thanks.

So what is the recommended method/product to take a backup of a SQL DB from a shared host that uses a SQL 2005 Server?

|||I would recommend buying a CAL of SQL Server to have the advanced tools for importing data including the copy database wizard.

Jens K. Suessmeyer.

http://www.sqlserver2005.de

Thursday, March 22, 2012

Backup Schedule

Hi,
What is the easiest way, to schedule database backups in the express edition
2005 within the management studio express?
Thanks for your hint.
regards
PatrickHi Patrick
"Patrick D." wrote:
> Hi,
> What is the easiest way, to schedule database backups in the express edition
> 2005 within the management studio express?
> Thanks for your hint.
> regards
> Patrick
You can use the windows scheduler to run a SQLCMD session. You may want to
look at http://www.sqldbatips.com/displaycode.asp?ID=26 to do the backups.
John|||Hello,
If you want to schedule your backups in SQL Express, you could write a T-SQL
script using BACKUP DATABASE and then use
Windows Task Schedule to call SQLCmd to run the script on what schedule you
need the frequency.
Thanks
Hari
"Patrick D." <PatrickD@.discussions.microsoft.com> wrote in message
news:6344AF78-A132-44A9-BE5B-E17A83864AB0@.microsoft.com...
> Hi,
> What is the easiest way, to schedule database backups in the express
> edition
> 2005 within the management studio express?
> Thanks for your hint.
> regards
> Patrick|||http://blogs.msdn.com/rogerwolterblog/archive/2006/04/13/575974.aspx
Backing up Express
Automating Database maintenance in SQL 2005 Express Edition Part I
http://www.sqldbatips.com/showarticle.asp?ID=27
Automating Database maintenance in SQL 2005 Express Edition Part II
http://www.sqldbatips.com/showarticle.asp?ID=29
Andrew J. Kelly SQL MVP
"Patrick D." <PatrickD@.discussions.microsoft.com> wrote in message
news:6344AF78-A132-44A9-BE5B-E17A83864AB0@.microsoft.com...
> Hi,
> What is the easiest way, to schedule database backups in the express
> edition
> 2005 within the management studio express?
> Thanks for your hint.
> regards
> Patrick

Backup Schedule

Hi,
What is the easiest way, to schedule database backups in the express edition
2005 within the management studio express?
Thanks for your hint.
regards
Patrick
Hi Patrick
"Patrick D." wrote:

> Hi,
> What is the easiest way, to schedule database backups in the express edition
> 2005 within the management studio express?
> Thanks for your hint.
> regards
> Patrick
You can use the windows scheduler to run a SQLCMD session. You may want to
look at http://www.sqldbatips.com/displaycode.asp?ID=26 to do the backups.
John
|||Hello,
If you want to schedule your backups in SQL Express, you could write a T-SQL
script using BACKUP DATABASE and then use
Windows Task Schedule to call SQLCmd to run the script on what schedule you
need the frequency.
Thanks
Hari
"Patrick D." <PatrickD@.discussions.microsoft.com> wrote in message
news:6344AF78-A132-44A9-BE5B-E17A83864AB0@.microsoft.com...
> Hi,
> What is the easiest way, to schedule database backups in the express
> edition
> 2005 within the management studio express?
> Thanks for your hint.
> regards
> Patrick
|||http://blogs.msdn.com/rogerwolterblog/archive/2006/04/13/575974.aspx
Backing up Express
Automating Database maintenance in SQL 2005 Express Edition Part I
http://www.sqldbatips.com/showarticle.asp?ID=27
Automating Database maintenance in SQL 2005 Express Edition Part II
http://www.sqldbatips.com/showarticle.asp?ID=29
Andrew J. Kelly SQL MVP
"Patrick D." <PatrickD@.discussions.microsoft.com> wrote in message
news:6344AF78-A132-44A9-BE5B-E17A83864AB0@.microsoft.com...
> Hi,
> What is the easiest way, to schedule database backups in the express
> edition
> 2005 within the management studio express?
> Thanks for your hint.
> regards
> Patrick

Backup Schedule

Hi,
What is the easiest way, to schedule database backups in the express edition
2005 within the management studio express?
Thanks for your hint.
regards
PatrickHi Patrick
"Patrick D." wrote:

> Hi,
> What is the easiest way, to schedule database backups in the express editi
on
> 2005 within the management studio express?
> Thanks for your hint.
> regards
> Patrick
You can use the windows scheduler to run a SQLCMD session. You may want to
look at http://www.sqldbatips.com/displaycode.asp?ID=26 to do the backups.
John|||Hello,
If you want to schedule your backups in SQL Express, you could write a T-SQL
script using BACKUP DATABASE and then use
Windows Task Schedule to call SQLCmd to run the script on what schedule you
need the frequency.
Thanks
Hari
"Patrick D." <PatrickD@.discussions.microsoft.com> wrote in message
news:6344AF78-A132-44A9-BE5B-E17A83864AB0@.microsoft.com...
> Hi,
> What is the easiest way, to schedule database backups in the express
> edition
> 2005 within the management studio express?
> Thanks for your hint.
> regards
> Patrick|||http://blogs.msdn.com/rogerwolterbl.../13/575974.aspx
Backing up Express
Automating Database maintenance in SQL 2005 Express Edition Part I
http://www.sqldbatips.com/showarticle.asp?ID=27
Automating Database maintenance in SQL 2005 Express Edition Part II
http://www.sqldbatips.com/showarticle.asp?ID=29
Andrew J. Kelly SQL MVP
"Patrick D." <PatrickD@.discussions.microsoft.com> wrote in message
news:6344AF78-A132-44A9-BE5B-E17A83864AB0@.microsoft.com...
> Hi,
> What is the easiest way, to schedule database backups in the express
> edition
> 2005 within the management studio express?
> Thanks for your hint.
> regards
> Patrick

Wednesday, March 7, 2012

backup on SQL2005EE

I install SQL 2005 Express Edition (upgrade from SQL 7.0 MSDE)
When I execute:
BACKUP DATABASE [Market2000] TO DISK = N'C:\PROGRA~1\MARKET~1\file.bak'
WITH INIT , NOUNLOAD , NOSKIP , STATS = 10, NOFORMAT
I received:
10 percent processed.
20 percent processed.
30 percent processed.
40 percent processed.
50 percent processed.
60 percent processed.
70 percent processed.
80 percent processed.
90 percent processed.
Processed 4504 pages for database 'Market2000', file 'Pusta_Data' on file 1.
100 percent processed.
Processed 1 pages for database 'Market2000', file 'Pusta_Log' on file 1.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'mirror_count'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'is_password_protected'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'mirror'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'flags'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'unicode_locale'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'unicode_compare_style'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'collation_name'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'is_password_protected'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'recovery_model'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'has_bulk_logged_data'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'is_snapshot'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'is_readonly'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'is_single_user'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'has_backup_checksums'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'is_damaged'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'begins_log_chain'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'has_incomplete_metadata'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'is_force_offline'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'is_copy_only'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'first_recovery_fork_guid'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'last_recovery_fork_guid'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'fork_point_lsn'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'database_guid'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'family_guid'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'differential_base_lsn'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'differential_base_guid'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'state'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'state_desc'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'create_lsn'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'drop_lsn'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'file_guid'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'read_only_lsn'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'read_write_lsn'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'differential_base_lsn'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'differential_base_guid'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'backup_size'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'filegroup_guid'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'is_readonly'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'is_present'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'state'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'state_desc'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'create_lsn'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'drop_lsn'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'file_guid'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'read_only_lsn'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'read_write_lsn'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'differential_base_lsn'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'differential_base_guid'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'backup_size'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'filegroup_guid'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'is_readonly'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'is_present'.
Msg 3009, Level 16, State 1, Line 1
Could not insert a backup or restore history/detail record in the msdb
database. This may indicate a problem with the msdb database. The
backup/restore operation was still successful.
BACKUP DATABASE successfully processed 4505 pages in 8.069 seconds (4.573
MB/sec).
What is wrong? msdb?Piotr Maciejewski (gbbsoft@.qdnet.pl) writes:
> I install SQL 2005 Express Edition (upgrade from SQL 7.0 MSDE)
> When I execute:
> BACKUP DATABASE [Market2000] TO DISK =
> N'C:\PROGRA~1\MARKET~1\file.bak'
> WITH INIT , NOUNLOAD , NOSKIP , STATS = 10, NOFORMAT
> I received:
>...
> Processed 1 pages for database 'Market2000', file 'Pusta_Log' on file 1.
> Msg 207, Level 16, State 1, Line 1
> Invalid column name 'mirror_count'.
>...
> Could not insert a backup or restore history/detail record in the msdb
> database. This may indicate a problem with the msdb database. The
> backup/restore operation was still successful.
> BACKUP DATABASE successfully processed 4505 pages in 8.069 seconds (4.573
> MB/sec).
>
> What is wrong? msdb?
Indeed. It looks as if the definition of msdb is still on SQL7 and misses
new columns added in SQL 2000 and SQL 2005. I have no idea how that could
have happened. A possible workaround could be to install a new fresh
instance of SQL 2005, and then attach the databasees to that instance.
But then you would have to migrate users from the old instance.
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||Uzytkownik "Erland Sommarskog" <esquel@.sommarskog.se> napisal w wiadomosci
news:Xns97077C2E3945Yazorman@.127.0.0.1...
> Indeed. It looks as if the definition of msdb is still on SQL7 and misses
> new columns added in SQL 2000 and SQL 2005. I have no idea how that could
> have happened. A possible workaround could be to install a new fresh
> instance of SQL 2005, and then attach the databasees to that instance.
> But then you would have to migrate users from the old instance.
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techin.../2000/books.asp
>
You right.
You idea works, but it is't sollution always.
Let's look at my post on microsoft.public.sqlserver.setup called: "Re: SQL
7.0 MSDE -> SQL 2005 Express".
There is more errors (miising files in setup, don't register SQLDMO, after
register it don't want to work well) when upgrading from SQL 7.0 MSDE to SQL
2005. I think than it hadn't be tested!|||Piotr Maciejewski (gbbsoft@.qdnet.pl) writes:
> You right.
> You idea works, but it is't sollution always.
> Let's look at my post on microsoft.public.sqlserver.setup called: "Re:
> SQL 7.0 MSDE -> SQL 2005 Express". There is more errors (miising files
> in setup, don't register SQLDMO, after register it don't want to work
> well) when upgrading from SQL 7.0 MSDE to SQL 2005. I think than it
> hadn't be tested!
I didn't look at your post in .setup. (Setup issues are always so difficult
to assist with. :-(
But I did get the tip that you may have to run instmsdb.sql to fix MSDB.
I was also told that msdb was not included in MSDE 1.0 by default. This
may be why Setup ignored it. If you do SELECT * FROM sys.databases,
which dbid does msdb have?
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp

backup on remote computer

Hi

How can i make backup on the other computer.

1. SQL computer is express edition, and computers are in workgroup?

2. SQL computer is express edition and is not on domain, and backup computer is on domain.

thanks

alex

Hi,

you can simply make a backup by connecting to the server and issue a backup command LIEK BACKUP DATABASE (...) the exact syntax can be found in the BOL. if you want to store the backup file on a network share you have to priviledge the user connecting to the SQL Server for writing to the backup directory. The easiest way would be to allow guest or everyone access, the more proficient way would be to privilege the connecting user for accessing the folder.

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de
|||

You can always use the SMO System in .Net and code a solution, here is a small example, I have not tested it yet but you should be able to see the code needed.

try
{

Server server = new Server(Environment.MachineName + "\SQLExpress");
BackupDeviceItem bdi = new BackupDeviceItem(@."C:\test.bak", DeviceType.File);
Backup backup = new Backup();
backup.Database = "Test";
backup.Devices.Add(bdi);
backup.Action = BackupActionType.Database;
backup.SqlBackup(server);

}
catch(SqlException ex)
{

}

I just saw that you wanted to then Restore it on another computer. You can also do this with the SMO Objects, this way you could have the one solution that could create the replicated database.

There are other options that you could use like replication and standby servers but I do not know about the fuctions in the express products I will have to have a look and see what can be done.

Saturday, February 25, 2012

Backup of databases within SQL Server 2005 Express

Hi there!

Is there any replacement for the missing SQL Server Agent which could be configured to backup "all databases" and fix minor errors in databases, rebuild indexes, etc.?

Or let's better ask: is there any solution/tool out there to create and execute maintenance plans without the need of SQL Server Agent? (It might be a simple tool that enumerates the DBs and executes some T-SQL statements on them)

Thanks
JochenManagement Studio Express provides UI to do those things, but there is no Agent in SQL Server Express, so the tasks can only be executed once in the UI.

Instead, you could use the UI to create the T-SQL, script it to a file rather than execute it, and then use the Windows scheduler to launch sqlcmd.exe to execute the script every day.|||This goes into the right direction. With that I could create the backups manually. But it is very time consuming to setup this for many SQL servers and many databases. Especially, when a new database will be created, it's important to not forget to create a new task for the additional database.

Is there another, more elegant way or better a tool to do the job?|||I would recommend using the auto-close feature in your connection string. Basically, when all the users disconnect the database file will automatically detach from the sql server, leaving it free to access by regular backup programs. I really like this feature!

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsse/html/sseoverview.asp|||Automating Database maintenance in SQL 2005 Express Edition Part I

Automating Database maintenance in SQL 2005 Express Edition Part II

Part I deals with creating scheduled tasks and using SQLCMD. Part II use SMO.

Friday, February 24, 2012

BackUp my DataBase on MSSQLServer Express

Hello my friends!

I have designed a database on a SQLServer Express. When I am going to backup it, I provide a filename like as "c:/test.bak" but when executing I recieve a message that SQLServer cannot open the backup device with the name above.

hi,

please verify (via SQL Server Configuration Manager->SQL Server 2005 services->YourSQLInstance->Properties) that the account running the service has enought permissions on the target path...

by default SQLExpress installs setting that account as Network Service and this account does not have that permissions (read-write) outside the instance path.. you can modify the NTFS permissions of the path as well allowing the running account as required..

regards

Sunday, February 12, 2012

Backup issues

I am very new to SQL Express. A database is located on a local machine. When I try to do a backup I get the following error:

Backup failed for server ‘server name’

(Microsoft.sql server.Express.smo)

Additional information:

Set property Devices to accomplish this action.

(Microsoft.sql server.Express.smo)

Their IT tecnicians insits that I have full administrative rights.

I am lost for a solution.

Would it be wise to shrink the database, detach from the database and copy both the mdf and idf to a different machine? I have never done this procedure before.

Please help.

Could you please send over the executed script ?

Jens K. Suessmeyer.

http://www.sqlserver2005.de

|||I am having same problem.
I am connected to sql server 2000 instance.
When trying to backup the database i got the same error
Any idea why ?|||

Which Gui are you using ?

Jens K. Suessmeyer

http://www.sqlserver2005.de

|||Sql Server Management Studio|||

Could you please then post the resulting Backup SQL command which is available through the script functionality within the Backup UI.

Jens K. Suessmeyer

http://www.sqlserver2005.de

|||

Did anyone get a resolution to this? I'm having the same problem. I uninstalled and reinstalled SQL Server 2005 Express and then reinstalled and it worked fine. I was able to back up the database for two days. Then the error started coming up again and now I'm getting the "Set property Devices to accomplish this action." error again.

I have no clue what property device it's talking about or where to set them. Any help would be greatly appreciated!

Thanks,

Steve

Backup in a file and retention

Hi,
I backup a database SQL 2005 Express Edition, with this command :
BACKUP DATABASE [mSuite] TO DISK = N'E:\BackupSQL\Backup-mSuite.bak' WITH
RETAINDAYS = 21, NOFORMAT, NOINIT, NAME = N'mSuite-Full Database Backup',
SKIP, NOREWIND, NOUNLOAD, STATS = 10
I would like to know if one option can erase old backup (expired backup ) in
the backup file ?
Thanks in advance,
--
Gilles> I would like to know if one option can erase old backup (expired backup )
> in
> the backup file ?
You can overwrite the entire backup file by specifying INIT instead of
NOINIT. You will also need to specify FORMAT instead of NOFORMAT if the
target backup file contains unexpired backups.
If you objective is to keep a rolling set of the most recent backups, you'll
need create a new backup each day and delete the oldest backup file.
Hope this helps.
Dan Guzman
SQL Server MVP
"Gilles" <Gilles@.discussions.microsoft.com> wrote in message
news:139F95E2-6005-47BF-974D-56612F8110BF@.microsoft.com...
> Hi,
> I backup a database SQL 2005 Express Edition, with this command :
> BACKUP DATABASE [mSuite] TO DISK = N'E:\BackupSQL\Backup-mSuite.bak' WITH
> RETAINDAYS = 21, NOFORMAT, NOINIT, NAME = N'mSuite-Full Database Backup',
> SKIP, NOREWIND, NOUNLOAD, STATS = 10
> I would like to know if one option can erase old backup (expired backup )
> in
> the backup file ?
> Thanks in advance,
> --
> Gilles|||Hi Dan,
Thanks for this information.
--
Gilles
"Dan Guzman" wrote:
> > I would like to know if one option can erase old backup (expired backup )
> > in
> > the backup file ?
> You can overwrite the entire backup file by specifying INIT instead of
> NOINIT. You will also need to specify FORMAT instead of NOFORMAT if the
> target backup file contains unexpired backups.
> If you objective is to keep a rolling set of the most recent backups, you'll
> need create a new backup each day and delete the oldest backup file.
>
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "Gilles" <Gilles@.discussions.microsoft.com> wrote in message
> news:139F95E2-6005-47BF-974D-56612F8110BF@.microsoft.com...
> > Hi,
> >
> > I backup a database SQL 2005 Express Edition, with this command :
> >
> > BACKUP DATABASE [mSuite] TO DISK = N'E:\BackupSQL\Backup-mSuite.bak' WITH
> > RETAINDAYS = 21, NOFORMAT, NOINIT, NAME = N'mSuite-Full Database Backup',
> > SKIP, NOREWIND, NOUNLOAD, STATS = 10
> >
> > I would like to know if one option can erase old backup (expired backup )
> > in
> > the backup file ?
> >
> > Thanks in advance,
> >
> > --
> > Gilles
>

Backup in a file and retention

Hi,
I backup a database SQL 2005 Express Edition, with this command :
BACKUP DATABASE [mSuite] TO DISK = N'E:\BackupSQL\Backup-mSuite.bak' WI
TH
RETAINDAYS = 21, NOFORMAT, NOINIT, NAME = N'mSuite-Full Database Backup',
SKIP, NOREWIND, NOUNLOAD, STATS = 10
I would like to know if one option can erase old backup (expired backup ) in
the backup file ?
Thanks in advance,
Gilles> I would like to know if one option can erase old backup (expired backup )
> in
> the backup file ?
You can overwrite the entire backup file by specifying INIT instead of
NOINIT. You will also need to specify FORMAT instead of NOFORMAT if the
target backup file contains unexpired backups.
If you objective is to keep a rolling set of the most recent backups, you'll
need create a new backup each day and delete the oldest backup file.
Hope this helps.
Dan Guzman
SQL Server MVP
"Gilles" <Gilles@.discussions.microsoft.com> wrote in message
news:139F95E2-6005-47BF-974D-56612F8110BF@.microsoft.com...
> Hi,
> I backup a database SQL 2005 Express Edition, with this command :
> BACKUP DATABASE [mSuite] TO DISK = N'E:\BackupSQL\Backup-mSuite.bak'
WITH
> RETAINDAYS = 21, NOFORMAT, NOINIT, NAME = N'mSuite-Full Database Backup',
> SKIP, NOREWIND, NOUNLOAD, STATS = 10
> I would like to know if one option can erase old backup (expired backup )
> in
> the backup file ?
> Thanks in advance,
> --
> Gilles|||Hi Dan,
Thanks for this information.
Gilles
"Dan Guzman" wrote:

> You can overwrite the entire backup file by specifying INIT instead of
> NOINIT. You will also need to specify FORMAT instead of NOFORMAT if the
> target backup file contains unexpired backups.
> If you objective is to keep a rolling set of the most recent backups, you'
ll
> need create a new backup each day and delete the oldest backup file.
>
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "Gilles" <Gilles@.discussions.microsoft.com> wrote in message
> news:139F95E2-6005-47BF-974D-56612F8110BF@.microsoft.com...
>

Backup in a file and retention

Hi,
I backup a database SQL 2005 Express Edition, with this command :
BACKUP DATABASE [mSuite] TO DISK = N'E:\BackupSQL\Backup-mSuite.bak' WITH
RETAINDAYS = 21, NOFORMAT, NOINIT, NAME = N'mSuite-Full Database Backup',
SKIP, NOREWIND, NOUNLOAD, STATS = 10
I would like to know if one option can erase old backup (expired backup ) in
the backup file ?
Thanks in advance,
Gilles
> I would like to know if one option can erase old backup (expired backup )
> in
> the backup file ?
You can overwrite the entire backup file by specifying INIT instead of
NOINIT. You will also need to specify FORMAT instead of NOFORMAT if the
target backup file contains unexpired backups.
If you objective is to keep a rolling set of the most recent backups, you'll
need create a new backup each day and delete the oldest backup file.
Hope this helps.
Dan Guzman
SQL Server MVP
"Gilles" <Gilles@.discussions.microsoft.com> wrote in message
news:139F95E2-6005-47BF-974D-56612F8110BF@.microsoft.com...
> Hi,
> I backup a database SQL 2005 Express Edition, with this command :
> BACKUP DATABASE [mSuite] TO DISK = N'E:\BackupSQL\Backup-mSuite.bak' WITH
> RETAINDAYS = 21, NOFORMAT, NOINIT, NAME = N'mSuite-Full Database Backup',
> SKIP, NOREWIND, NOUNLOAD, STATS = 10
> I would like to know if one option can erase old backup (expired backup )
> in
> the backup file ?
> Thanks in advance,
> --
> Gilles
|||Hi Dan,
Thanks for this information.
Gilles
"Dan Guzman" wrote:

> You can overwrite the entire backup file by specifying INIT instead of
> NOINIT. You will also need to specify FORMAT instead of NOFORMAT if the
> target backup file contains unexpired backups.
> If you objective is to keep a rolling set of the most recent backups, you'll
> need create a new backup each day and delete the oldest backup file.
>
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "Gilles" <Gilles@.discussions.microsoft.com> wrote in message
> news:139F95E2-6005-47BF-974D-56612F8110BF@.microsoft.com...
>

Friday, February 10, 2012

backup for SQL Server Express

Can someone tell me how to backup SQL server express 2005?
Joel
BACKUP DATABASE dbname TO DISK='C:\dbname.BAK'
"Joel" <nowhere@.nowhere.com> wrote in message
news:%23j4pEsg7GHA.4116@.TK2MSFTNGP03.phx.gbl...
> Can someone tell me how to backup SQL server express 2005?
>
|||This might be useful:
http://www.sqldbatips.com/showcode.asp?ID=26
http://www.sqldbatips.com/showarticle.asp?ID=27
http://www.sqldbatips.com/showarticle.asp?ID=29
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Joel" <nowhere@.nowhere.com> wrote in message news:%23j4pEsg7GHA.4116@.TK2MSFTNGP03.phx.gbl...
> Can someone tell me how to backup SQL server express 2005?
>
|||And if you are using Management Studio Express, you
can use the backup dialog from object explorer or backup
templates. You can find details on these methods in the
following article:
http://www.microsoft.com/technet/pro...expwssmse.mspx
-Sue
On Thu, 12 Oct 2006 09:30:49 -0500, "Joel"
<nowhere@.nowhere.com> wrote:

>Can someone tell me how to backup SQL server express 2005?
>
|||I have created a DTS and job that controls all my SQLExpress backups
from a central location. I use xp_delete_file to dump old files.
Permissions needed to be set up for the account running the central
instance. (I imagine this could all be done with SSIS)
If you email me, I can send you some files.
Terry
Uri Dimant wrote:[vbcol=seagreen]
> Joel
> BACKUP DATABASE dbname TO DISK='C:\dbname.BAK'
>
>
> "Joel" <nowhere@.nowhere.com> wrote in message
> news:%23j4pEsg7GHA.4116@.TK2MSFTNGP03.phx.gbl...

backup for SQL Server Express

Can someone tell me how to backup SQL server express 2005?Joel
BACKUP DATABASE dbname TO DISK='C:\dbname.BAK'
"Joel" <nowhere@.nowhere.com> wrote in message
news:%23j4pEsg7GHA.4116@.TK2MSFTNGP03.phx.gbl...
> Can someone tell me how to backup SQL server express 2005?
>|||This might be useful:
http://www.sqldbatips.com/showcode.asp?ID=26
http://www.sqldbatips.com/showarticle.asp?ID=27
http://www.sqldbatips.com/showarticle.asp?ID=29
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Joel" <nowhere@.nowhere.com> wrote in message news:%23j4pEsg7GHA.4116@.TK2MSFTNGP03.phx.gbl..
.
> Can someone tell me how to backup SQL server express 2005?
>|||And if you are using Management Studio Express, you
can use the backup dialog from object explorer or backup
templates. You can find details on these methods in the
following article:
http://www.microsoft.com/technet/pr...lexpwssmse.mspx
-Sue
On Thu, 12 Oct 2006 09:30:49 -0500, "Joel"
<nowhere@.nowhere.com> wrote:

>Can someone tell me how to backup SQL server express 2005?
>|||I have created a DTS and job that controls all my SQLExpress backups
from a central location. I use xp_delete_file to dump old files.
Permissions needed to be set up for the account running the central
instance. (I imagine this could all be done with SSIS)
If you email me, I can send you some files.
Terry
Uri Dimant wrote:[vbcol=seagreen]
> Joel
> BACKUP DATABASE dbname TO DISK='C:\dbname.BAK'
>
>
> "Joel" <nowhere@.nowhere.com> wrote in message
> news:%23j4pEsg7GHA.4116@.TK2MSFTNGP03.phx.gbl...

backup for SQL Server Express

Can someone tell me how to backup SQL server express 2005?Joel
BACKUP DATABASE dbname TO DISK='C:\dbname.BAK'
"Joel" <nowhere@.nowhere.com> wrote in message
news:%23j4pEsg7GHA.4116@.TK2MSFTNGP03.phx.gbl...
> Can someone tell me how to backup SQL server express 2005?
>|||This might be useful:
http://www.sqldbatips.com/showcode.asp?ID=26
http://www.sqldbatips.com/showarticle.asp?ID=27
http://www.sqldbatips.com/showarticle.asp?ID=29
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Joel" <nowhere@.nowhere.com> wrote in message news:%23j4pEsg7GHA.4116@.TK2MSFTNGP03.phx.gbl...
> Can someone tell me how to backup SQL server express 2005?
>|||And if you are using Management Studio Express, you
can use the backup dialog from object explorer or backup
templates. You can find details on these methods in the
following article:
http://www.microsoft.com/technet/prodtechnol/sql/2005/mgsqlexpwssmse.mspx
-Sue
On Thu, 12 Oct 2006 09:30:49 -0500, "Joel"
<nowhere@.nowhere.com> wrote:
>Can someone tell me how to backup SQL server express 2005?
>|||I have created a DTS and job that controls all my SQLExpress backups
from a central location. I use xp_delete_file to dump old files.
Permissions needed to be set up for the account running the central
instance. (I imagine this could all be done with SSIS)
If you email me, I can send you some files.
Terry
Uri Dimant wrote:
> Joel
> BACKUP DATABASE dbname TO DISK='C:\dbname.BAK'
>
>
> "Joel" <nowhere@.nowhere.com> wrote in message
> news:%23j4pEsg7GHA.4116@.TK2MSFTNGP03.phx.gbl...
> > Can someone tell me how to backup SQL server express 2005?
> >

backup files to local PC

howcan i backup my database from SQL Express 2005 to my local PC?
The same way you backup any other database - with a BACKUP DATABASE command.
Tom
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
..
"Jassim Rahma" <JassimRahma@.discussions.microsoft.com> wrote in message
news:F3EFAD68-2147-4B99-B4AD-623B1F9C0D38@.microsoft.com...
howcan i backup my database from SQL Express 2005 to my local PC?

backup files to local PC

howcan i backup my database from SQL Express 2005 to my local PC?The same way you backup any other database - with a BACKUP DATABASE command.
--
Tom
----
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
.
"Jassim Rahma" <JassimRahma@.discussions.microsoft.com> wrote in message
news:F3EFAD68-2147-4B99-B4AD-623B1F9C0D38@.microsoft.com...
howcan i backup my database from SQL Express 2005 to my local PC?

backup files to local PC

howcan i backup my database from SQL Express 2005 to my local PC?The same way you backup any other database - with a BACKUP DATABASE command.
Tom
----
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
.
"Jassim Rahma" <JassimRahma@.discussions.microsoft.com> wrote in message
news:F3EFAD68-2147-4B99-B4AD-623B1F9C0D38@.microsoft.com...
howcan i backup my database from SQL Express 2005 to my local PC?