SQL 2005 Backup File

Mar 13, 2007

We have a SQL 2005 server running the following backup job:

<font face="Courier New" size="2"><br><font color="blue">/* Created by
<a href="http://www.wangz.net/gsqlparser/sqlpp/sqlformat.htm">free
online sql formatter</a*/</font><br><br>
<font color = "blue">EXECUTE</font>&nbsp;<font color =
"maroon">master</font><font color = "silver">.</font><font color =
"maroon">dbo</font><font color = "silver">.</font><font color =
"#8000FF">xp_create_subdir</font>
<br>&nbsp;&nbsp;&nbsp;<font color = "red">N'\ServerBackups
DBServerName\DB_Name__METABASE'</font>

<br><br>
<font color = "blue">GO</font>

<br><br>
<font color = "blue">EXECUTE</font>&nbsp;<font color =
"maroon">master</font><font color = "silver">.</font><font color =
"maroon">dbo</font><font color = "silver">.</font><font color =
"#8000FF">xp_create_subdir</font>
<br>&nbsp;&nbsp;&nbsp;<font color = "red">N'\serverBackups
DBServerName\DB_Name__MSCRM'</font>

<br><br>
<font color = "blue">GO</font>

<br><br>
<font color = "blue">BACKUP</font>&nbsp;<font color = "blue">DATABASE</
font>&nbsp;<font color = "maroon">[db_name__metabase]</
font>&nbsp;<font color = "blue">TO</font>&nbsp;<font color =
"maroon">disk</font>&nbsp;<font color = "silver">=</font>&nbsp;<font
color = "red">N'\serverBackupsDBServerName\DB_Name__METABASE
DB_Name__METABASE_backup_200610261158.bak'</font>&nbsp;<font color =
"blue">WITH</font>&nbsp;<font color = "maroon">differential</
font>&nbsp;<font color = "silver">,</font>&nbsp;<font color =
"maroon">noformat</font>&nbsp;<font color = "silver">,</
font>&nbsp;<font color = "maroon">noinit</font>&nbsp;<font color =
"silver">,</font>&nbsp;<font color = "maroon">name</font>&nbsp;<font
color = "silver">=</font>&nbsp;<font color =
"red">N'DB_Name__METABASE_backup_20061026115839'</font>&nbsp;<font
color = "silver">,</font>&nbsp;<font color = "maroon">skip</
font>&nbsp;<font color = "silver">,</font>&nbsp;<font color =
"maroon">rewind</font>&nbsp;<font color = "silver">,</font>&nbsp;<font
color = "maroon">nounload</font>&nbsp;<font color = "silver">,</
font>&nbsp;<font color = "maroon">stats</font>&nbsp;<font color =
"silver">=</font>&nbsp;<font color = "black">10</font>

<br><br>
<font color = "blue">GO</font>

<br><br>
<font color = "blue">DECLARE</font>&nbsp;&nbsp;<font color =
"#8000FF">@backupSetId</font>&nbsp;&nbsp;<font color = "blue">AS</
font>&nbsp;<font color = "black">INT</font>

<br><br>
<font color = "blue">SELECT</font>&nbsp;<font color =
"#8000FF">@backupSetId</font>&nbsp;<font color = "silver">=</
font>&nbsp;<font color = "maroon">position</font>
<br><font color = "blue">FROM</font>&nbsp;&nbsp;&nbsp;<font color =
"maroon">msdb</font><font color = "silver">.</font><font color =
"silver">.</font><font color = "maroon">backupset</font>
<br><font color = "blue">WHERE</font>&nbsp;&nbsp;<font color =
"maroon">database_name</font>&nbsp;<font color = "silver">=</
font>&nbsp;<font color = "red">N'DB_Name__METABASE'</font>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color =
"blue">AND</font>&nbsp;<font color = "maroon">backup_set_id</
font>&nbsp;<font color = "silver">=</font>&nbsp;<font color =
"silver">(</font><font color = "blue">SELECT</font>&nbsp;<font color =
"fuchsia"><b>MAX</font></b><font color = "silver">(</font><font color
= "maroon">backup_set_id</font><font color = "silver">)</font>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font
color = "blue">FROM</font>&nbsp;&nbsp;&nbsp;<font color =
"maroon">msdb</font><font color = "silver">.</font><font color =
"silver">.</font><font color = "maroon">backupset</font>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font
color = "blue">WHERE</font>&nbsp;&nbsp;<font color =
"maroon">database_name</font>&nbsp;<font color = "silver">=</
font>&nbsp;<font color = "red">N'DB_Name__METABASE'</font><font color
= "silver">)</font>

<br><br>
<font color = "blue">IF</font>&nbsp;<font color =
"#8000FF">@backupSetId</font>&nbsp;<font color = "blue">IS</
font>&nbsp;<font color = "blue">NULL</font>
<br>&nbsp;&nbsp;<font color = "blue">BEGIN</font>
<br>&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">RAISERROR</
font>&nbsp;<font color = "silver">(</font><font color =
"red">N'Verify&nbsp;failed.&nbsp;Backup&nbsp;information&nbsp;for&nbsp;database&nbsp;' 'DB_Name__METABASE''&nbsp;not&nbsp;found.'</
font><font color = "silver">,</font><font color = "black">16</
font><font color = "silver">,</font><font color = "black">1</
font><font color = "silver">)</font>
<br>&nbsp;&nbsp;<font color = "blue">END</font>

<br><br>
<font color = "blue">RESTORE</font>&nbsp;<font color =
"maroon">verifyonly</font>&nbsp;<font color = "blue">FROM</
font>&nbsp;<font color = "maroon">disk</font>&nbsp;<font color =
"silver">=</font>&nbsp;<font color = "red">N'\serverBackups
DBServerName\DB_Name__METABASE
DB_Name__METABASE_backup_200610261158.bak'</font>&nbsp;<font color =
"blue">WITH</font>&nbsp;<font color = "blue">FILE</font>&nbsp;<font
color = "silver">=</font>&nbsp;<font color = "#8000FF">@backupSetId</
font>&nbsp;<font color = "silver">,</font>&nbsp;<font color =
"maroon">nounload</font>&nbsp;<font color = "silver">,</
font>&nbsp;<font color = "maroon">norewind</font>

<br><br>
<font color = "blue">GO</font>

<br><br>
<font color = "blue">BACKUP</font>&nbsp;<font color = "blue">DATABASE</
font>&nbsp;<font color = "maroon">[db_name__mscrm]</font>&nbsp;<font
color = "blue">TO</font>&nbsp;<font color = "maroon">disk</
font>&nbsp;<font color = "silver">=</font>&nbsp;<font color = "red">N'
serverBackupsDBServerName\DB_Name__MSCRM
DB_Name__MSCRM_backup_200610261158.bak'</font>&nbsp;<font color =
"blue">WITH</font>&nbsp;<font color = "maroon">differential</
font>&nbsp;<font color = "silver">,</font>&nbsp;<font color =
"maroon">noformat</font>&nbsp;<font color = "silver">,</
font>&nbsp;<font color = "maroon">noinit</font>&nbsp;<font color =
"silver">,</font>&nbsp;<font color = "maroon">name</font>&nbsp;<font
color = "silver">=</font>&nbsp;<font color =
"red">N'DB_Name__MSCRM_backup_20061026115839'</font>&nbsp;<font color
= "silver">,</font>&nbsp;<font color = "maroon">skip</font>&nbsp;<font
color = "silver">,</font>&nbsp;<font color = "maroon">rewind</
font>&nbsp;<font color = "silver">,</font>&nbsp;<font color =
"maroon">nounload</font>&nbsp;<font color = "silver">,</
font>&nbsp;<font color = "maroon">stats</font>&nbsp;<font color =
"silver">=</font>&nbsp;<font color = "black">10</font>

<br><br>
<font color = "blue">GO</font>

<br><br>
<font color = "blue">DECLARE</font>&nbsp;&nbsp;<font color =
"#8000FF">@backupSetId</font>&nbsp;&nbsp;<font color = "blue">AS</
font>&nbsp;<font color = "black">INT</font>

<br><br>
<font color = "blue">SELECT</font>&nbsp;<font color =
"#8000FF">@backupSetId</font>&nbsp;<font color = "silver">=</
font>&nbsp;<font color = "maroon">position</font>
<br><font color = "blue">FROM</font>&nbsp;&nbsp;&nbsp;<font color =
"maroon">msdb</font><font color = "silver">.</font><font color =
"silver">.</font><font color = "maroon">backupset</font>
<br><font color = "blue">WHERE</font>&nbsp;&nbsp;<font color =
"maroon">database_name</font>&nbsp;<font color = "silver">=</
font>&nbsp;<font color = "red">N'DB_Name__MSCRM'</font>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color =
"blue">AND</font>&nbsp;<font color = "maroon">backup_set_id</
font>&nbsp;<font color = "silver">=</font>&nbsp;<font color =
"silver">(</font><font color = "blue">SELECT</font>&nbsp;<font color =
"fuchsia"><b>MAX</font></b><font color = "silver">(</font><font color
= "maroon">backup_set_id</font><font color = "silver">)</font>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font
color = "blue">FROM</font>&nbsp;&nbsp;&nbsp;<font color =
"maroon">msdb</font><font color = "silver">.</font><font color =
"silver">.</font><font color = "maroon">backupset</font>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font
color = "blue">WHERE</font>&nbsp;&nbsp;<font color =
"maroon">database_name</font>&nbsp;<font color = "silver">=</
font>&nbsp;<font color = "red">N'DB_Name__MSCRM'</font><font color =
"silver">)</font>

<br><br>
<font color = "blue">IF</font>&nbsp;<font color =
"#8000FF">@backupSetId</font>&nbsp;<font color = "blue">IS</
font>&nbsp;<font color = "blue">NULL</font>
<br>&nbsp;&nbsp;<font color = "blue">BEGIN</font>
<br>&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">RAISERROR</
font>&nbsp;<font color = "silver">(</font><font color =
"red">N'Verify&nbsp;failed.&nbsp;Backup&nbsp;information&nbsp;for&nbsp;database&nbsp;' 'DB_Name__MSCRM''&nbsp;not&nbsp;found.'</
font><font color = "silver">,</font><font color = "black">16</
font><font color = "silver">,</font><font color = "black">1</
font><font color = "silver">)</font>
<br>&nbsp;&nbsp;<font color = "blue">END</font>

<br><br>
<font color = "blue">RESTORE</font>&nbsp;<font color =
"maroon">verifyonly</font>&nbsp;<font color = "blue">FROM</
font>&nbsp;<font color = "maroon">disk</font>&nbsp;<font color =
"silver">=</font>&nbsp;<font color = "red">N'\serverBackups
DBServerName\DB_Name__MSCRMDB_Name__MSCRM_backu p_200610261158.bak'</
font>&nbsp;<font color = "blue">WITH</font>&nbsp;<font color =
"blue">FILE</font>&nbsp;<font color = "silver">=</font>&nbsp;<font
color = "#8000FF">@backupSetId</font>&nbsp;<font color = "silver">,</
font>&nbsp;<font color = "maroon">nounload</font>&nbsp;<font color =
"silver">,</font>&nbsp;<font color = "maroon">norewind</font>
</font>

This job was set up long before i started here and the problem is that
the backup file itself has grown to be over 230 GB. It does not
appear that the backup job is pruning the file. is there a way to
view the contents of this file and then prune it so we keep no more
then two weeks worth of data.

Thanks

View 1 Replies


ADVERTISEMENT

Difference Between Partial Backup (SQL 2005) And File Group Backup

Dec 5, 2006

What is the difference between "Files aned File Groups" backup and Partial Backup?

Looks like both are same.. Please comment.

View 3 Replies View Related

Importing DB Backup File To SQL Server 2005

Mar 14, 2007

Hi all,

I'm using shared sql space on a new provider and am trying to import a database backup file - of the format filename.db.

I cannot figure out how to import this file type using the 2005 express tools - I can connect to the database and create and drop tables alright, but I cannot just import the existing database.

I really haven't got the time on my connection to download the fully blown SQL server trial to be able to do this, so can anyone help me out with any easier solutions?

Cheers, Mike

View 2 Replies View Related

Importing DB Backup File To SQL Server 2005

Mar 14, 2007

Hi all,

I'm using shared sql space on a new provider and am trying to import a database backup file - of the format filename.db.

I cannot figure out how to import this file type using the 2005 express tools - I can connect to the database and create and drop tables alright, but I cannot just import the existing database.

I really haven't got the time on my connection to download the fully blown SQL server trail to be able to do this, so can anyone help me out with any easier solutions?

Cheers, Mike

View 1 Replies View Related

Where Can I Find Info About How To Backup Sql Server 2005 Using A .bat File?

Aug 30, 2006

Where can I find info about how to backup Sql Server 2005 using a .bat file?

Is it possible doing it this way?

If so, can anyone direct me to some links how how to do this?

If not possible using a bat file... then how can I make schedueled backups? What tool to use and hopefully free.

View 2 Replies View Related

SQL Server 2005 - Restore Backup File Error

May 18, 2007

A full database backup file was created and placed in my C:Program filesMicrosoft SQL ServerMSSQL.1MSSQLBackup folder. In attempting to restore the file using "Restore Database", I get the following error: System.Data.SqlClient.SqlError: Directory lookup for the file "d:Microsoft SQL ServerMSSQLdataworkspace.mdf" failed with the operating system error 3 (The system could not find the file path specified.).



Any help is appreciated.

View 6 Replies View Related

Can I Create Database Using Backup File In SQl Server 2005 Express Edition

Jul 21, 2007

hi
       i have a database file backup which is having no extension (eg saims) . Can i create a database using this backup in sql server expression edition.
 Or else is there any way to get the .mdf file from sql server 2005 full edition??????????????
Thanx in advance

View 2 Replies View Related

Backup Failed: System.Data.SqlClient.SqlError: Backup And File Manipulation... Must Be Serialized

Jul 11, 2007

Using SQL Server 2005 Server Management Studio, I attempted to back up a database, and received this error:

Backup failed: System.Data.SqlClient.SqlError: Backup and file manipulation operations (such as ALTER DATABASE ADD FILE) on a database must be serialized. Reissue the satement after the current backup or file manipulation is completed (Microsoft.SqlServer.Smo)



Program location:

at Microsoft.SqlServer.Management.Smo.Backup.SqlBackup(Server srv)
at Microsoft.SqlServer.Management.SqlManagerUI.BackupPropOptions.OnRunNow(Object sender)



Backup Options were set to:

Back up to the existing media set

Overwrite all existing backup sets



I am fairly new to SQL 2005. Can someone help me get past this issue? What other information do I need to provide?

View 11 Replies View Related

DB Engine :: Compressed Backup While Restoring Backup File

Sep 8, 2015

I got full backup on daily schedule its taking more space on Drive because each file has more than 25GB.I am using SLQ server 2008R2 so I'm looking to take the backup with compression instead of uncompressed Backup. What are the impacts of compressed backup. Is there any problems with compressed backup while restoring the backup file.

View 8 Replies View Related

How To Restore A Database From Backup With A Splitted Backup File

Apr 1, 2008

I should restore a SQL Server 2005 Database from backup. The backup contains three files, named user.bak0, user.bak1 and user.bak2.

How is the syntax of the restore filelistonly and the restore database ... ?

I usualy write
restore filelistonly from disk = 'path and filenam.bak'
restore database. zy
from disk = 'path and filename.bak'
with replace,
move.....
move....

This works but I cannot use it with a splitted backup file. The files are much too big to put together to one file.

Thanks in advance for any help.

View 3 Replies View Related

Backup File Of SQL Server 2000 Is Restore In SQL Server 2005

Feb 11, 2008

Hi Dear,

May Any one guide me?
I have a backup file of database which is in SQL Server 2000. it has no Extension.I want to restore this backupfile or this database in my SQL Server 2005.
I have tried to Attach Database or attach this backup file in Sql Server2005 but it also fails .
First I have created New database name as is on the backupfile and then I have also tried to rename this file with .bak extension and then try to restore again it fails.
Plese Guide me urgently........
:eek: :eek: :eek: :eek: :eek:

View 9 Replies View Related

How SQL SERVER 2005 Backup &&amp; ArcServe Backup Coexist ??

Apr 15, 2008

I have only one tape drive.
My server is using the SQL server 2005 backup tool and arcserve backup tool to backup different files .

Everytime I need to disable and enable the tape device driver (in device manager /windows) before I can use SQL server 2005 backup tool.

Everytime I need to disable and enable the tape device driver (in device manager /windows) before I can use arcserve backup tool.

It seems that the tape device resource is held by softwares even the tape drive is not in use.

What should I do to make the tape drive shared by different softwares?


Regards,
Manuel

View 2 Replies View Related

DB Engine :: How To Restore From Current LDF Log File And Old BAK Backup File

Jun 11, 2015

My customer got a total hard drive failure.After sending it to drive recovery specialist we were able to recover the LDF log file (MyDB_0.LDF).But the MDF file was completely destroyed (MyDB.MDF).They have a good full backup from a month ago.

1) Installed SQL Server 2012 on a new PC
2) Created a new database of same name (MyDB) - with same MDF and LDF file names as original
3) Took the new database offline
4) deleted the MDF and LDF files of the new database
5) put "MyDB_0.LDF" in the place of the LDF file I just deleted 
6) put the database back on-line
7) after hitting F5 to refresh databases - it shows "MyDB (Recovery Pending)"
8) tried to do Tail Log Backup with this command
   BACKUP LOG [MyDB] TO DISK = N'C:BACKUPMyDB_TailLog.bak'
WITH NO_TRUNCATE

And I get this error...

Msg 3447, Level 16, State 1, Line 3
Could not activate or scan all of the log files for database 'MyDB'.

The sad thing is I know we can get this data back using ApexSQL-Log. I can see all the transactions since the last full backup in this program - so the log file is not damaged. But my client doesn't want to pay the $2000 fee for this software.There has to be a way to restore this data, without having to purchase a third party tool.

View 13 Replies View Related

DB Engine :: Extension FILE Among Backup File

May 8, 2015

I checked quickly one network  and I ran into the folders; I found out the folder MSSQL backup, nothing strange so far. Within that folder, anyway, I found out several backup and one very huge file (datawarehouse) with extension FILE. I am wondering what can be? I got datawarehouse mdf of course and datawarehouse log but what is that huge file (1 TB)?

View 6 Replies View Related

Backup Master Key, Cannot Write Into File 'c: Empmaster'. Verify That You Have Write Permissions, That The File Path Is Valid.

Jul 12, 2006

Hi,



I tried to backup the master key by the following syntax :

OPEN MASTER KEY DECRYPTION BY PASSWORD = 'mypassword'

BACKUP MASTER KEY TO FILE = 'c: empmaster' ENCRYPTION BY PASSWORD = 'mypassword'

but it failed and i got the following message:

Cannot write into file 'c: empmaster'. Verify that you have write permissions, that the file path is valid, and that the file does not already exist.

NB: I am using the "sa" user to execute this command.

I know that we have a security permission issue , but where and how ?



Regards,

Tarek Ghazali

SQL Server MVP

View 12 Replies View Related

Load Backup From 2000 To 2005 Or Recreate Structure On 2005?

Apr 23, 2008

Hello,

I would like to ask you if there is better to recreate database structure on 2005 from 2000 and move data or to just load
2000 backup.

Currently I loaded the backup, but I am wondering if there might be slightly better performance on 2005 when recreating structure on 2005 to loading 2000 backup?

Does loading 2000 backup create 2005 binary structure?

Thanks for help in advance

View 5 Replies View Related

Can I Backup From .mdf Or .ldf File?

Nov 8, 2001

Hi there,
After a bad server crash, the only remnant we have of our SQL server database are the .mdf and .ldf files in the MSSQL7/Data folder. Can we restore this database from either of these files and if so, what is the procedure? Sorry but I'm an SQL server newbie.

Thanks in advance,
Paul

View 3 Replies View Related

Getting SP From DB Backup File

Nov 13, 2007

Hi,

I dropped a SPROC, and was in the process of reacreating it when I lost power. Now I don't have the SPROC except for in an old backup file.

Is there anyway to get this without restoring the DB ? If not, can I easily restore to a different DB name and then delete it? My backups are on my live server and I don't want to overwrite my current DB with my backup :)


thanks for any suggestions!!

mike123

View 4 Replies View Related

Help Me Plz About Backup .mdf File With C#

Mar 28, 2008

I rigth click my project , i choose add -> new item -> sql database
and i write

SqlConnection cc = new SqlConnection(@"Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|DataData.mdf;Integrated Security=True;User Instance=True");




when i code

cmd.CommandText = "Backup database Data to disk = 'C:\123.bak'";



i recieve Error
Could not locate entry in sysdatabases for database 'Data'. No entry found with that name. Make sure that the name is entered correctly.
BACKUP DATABASE is terminating abnormally.


help me to solve this problem please!!!

Thanks.

View 7 Replies View Related

SQL Backup File Is HUGE!!!

Sep 25, 2004

One of my databases is approxiamtely 1.5 GB's but when I run a backup the backup file explodes to 38GB's.

What is the proper usage of Shrink Database, is this safe or is there another method to reduce the size?

View 2 Replies View Related

Backup Log File Fail

Aug 23, 2001

My database's log file is full. i want to backup it .
First i create a backup device named aa.
Than i use Enterprise to backup trasaction log.
But it popup an error messagebox.
The title is "Microsoft SQL-DMO(ODBC SQL state:42000)
The content is "write on 'aa' failed,status=112. See the SQL error log for more details.Backup or Restore operation terminating abnormally.
What's the matter ?

View 5 Replies View Related

Huge Backup File

May 12, 2000

I am using SQL Server 7 and have about 5 databases. One of them has a data file of about 10 Meg, and most of the others are larger. I do a nightly backup to both a local and mapped drive. On both, the size of the backup file for this database is more than 500 Meg, but the rest appear to be an appropriate size. Does anyone know why this would be happening? The database works fine, it does not get a lot of insert/delete activity and I run DBCC every weekend. If anyone has any ideas I would sure like to hear from them.

View 1 Replies View Related

Creating A New D/B From A Backup File.

Dec 19, 2000

Hi,
How can we create a new D/B from a D/B Backup file (DataBase.Bak).

Thanks,
Princy

View 3 Replies View Related

Creating A New D/B From A Backup File.

Oct 16, 2000

Hi,
I am new to SqlServer (I am using 7.0) and I have just recieved a database.bak file from one of our clients and I want to create a new D/B from this back up file ,I have already installed the MS SqlServer. Can you tell me how to do this.

Thanks,
Princy

View 1 Replies View Related

DB Backup File Purge

Apr 25, 2002

Anyone have anything hints on getting the option of DELBKUP to work. I have a maintenance job that backs up the database. Also set to delete backups older than 1 day. This doesn't seem to be working.

Any thoughts.

Thanking you in advance.

View 1 Replies View Related

Backup File Location & Name

Jul 11, 2002

Is the name of the most recent backup file for each database stored anywhere in SQL2K? I want execute a SQA job periodically that takes the BAK from database A and restores it over database B (using the T-SQL RESTORE DATABASE procedure), but I need to know the exact name of the .BAK file; i.e. I need to know the yyyymmddhhmm value at the end of that file.

TIA,

Al

View 1 Replies View Related

Finding Last Backup File Name

Jul 22, 2002

Is the name of the last backup file recorded anywhere in SQL2K? I do backups every 2 hours, and want to restore backups from database A to database B once a day using the latest backup. Unfortunately the backup files don't have the time the backup started (e.g. 1600), but have the time they ended (I presume); e.g. 1604.

I want to automate the process; any suggestions on how to find the name of the last database file?

TIA,

Al

View 4 Replies View Related

File Group Backup

Oct 10, 2001

Can you backup individual files within a file group.?

View 1 Replies View Related

File Group Backup

Oct 10, 2001

Can you backup individual files within a file group.?

View 1 Replies View Related

Delete Backup File

Nov 15, 2005

Hi,
I have a database which size is 64Go, and i backup it everyday with 1 day of retention.
But the maintenance plan don't delete the file older than 1 day.
This works fine for the other db.
Do you know what is the pb ?
regards.

View 1 Replies View Related

Restore Backup File

Oct 12, 2006

I tried to use backup and restore database tasks to restore backup file but it does not work. The backup file I tried to restore in SQL server 2000 is from somewhere else (from my friend) and saved in cd-rom, not the one I created before.
How can I restore it to view in SQL server 2000 database?
Can you show me step by step?
Thanks for your help

View 14 Replies View Related

How To Compress Backup File

Jul 15, 2015

Any easy way to compress backup file. I use SQL Server 2008 R2

View 3 Replies View Related

Size Of Backup File

Feb 4, 2004

Hi all,

How can I see what is exact size of SQL server backup file while backup is running. The process is running for more than 2 hours, it is chewing up disk space (it already took about 20G), but the size of backup file is still showing as 0.

Thanks in advance

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved