Sunday, March 25, 2012
Can I do this ?
a Full DB Backup taken at 7am
a Diff backup taken at 9am
a Diff backup taken at 11am
Can I do this ?
Restore Full DB Backup of 7am with noreceovery followed by
Restore Diff Backup of 9am with noreceovery followed by
Restore Diff Backup of 11am with recovery.
I know I could do a restore of the Full DB Backup of 7am followed by Restore
of Diff backup of 11am with recovery and it will work... But i want to know
if the above will work whereby i restore both the differentials one after
another
ThanksHassan wrote:
> So I have
> a Full DB Backup taken at 7am
> a Diff backup taken at 9am
> a Diff backup taken at 11am
> Can I do this ?
> Restore Full DB Backup of 7am with noreceovery followed by
> Restore Diff Backup of 9am with noreceovery followed by
> Restore Diff Backup of 11am with recovery.
> I know I could do a restore of the Full DB Backup of 7am followed by Resto
re
> of Diff backup of 11am with recovery and it will work... But i want to kno
w
> if the above will work whereby i restore both the differentials one after
> another
> Thanks
Did you try it?
CREATE DATABASE foob;
GO
BACKUP DATABASE foob TO DISK = 'C:\foob.bak' WITH INIT;
BACKUP DATABASE foob TO DISK = 'C:\foob1.bak' WITH DIFFERENTIAL, INIT;
BACKUP DATABASE foob TO DISK = 'C:\foob2.bak' WITH DIFFERENTIAL, INIT;
GO
USE master
RESTORE DATABASE foob FROM DISK = 'C:\foob.bak' WITH REPLACE,
NORECOVERY;
RESTORE DATABASE foob FROM DISK = 'C:\foob1.bak' WITH NORECOVERY;
RESTORE DATABASE foob FROM DISK = 'C:\foob2.bak' WITH RECOVERY;
David Portas, SQL Server MVP
Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.
SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
--|||Hello Hassan,
You can do that; but will not make much difference. This is more than enough
to restore the FULL database backup with NORECOVERY follwed with
the last DIFFERENTIAL backup with RECOVERY. But for testing you could try
restore both DIFFERENTIAL backup and it will work fine..
Thanks
Hari
"Hassan" <Hassan@.hotmail.com> wrote in message
news:e7azxe8GHHA.3668@.TK2MSFTNGP02.phx.gbl...
> So I have
> a Full DB Backup taken at 7am
> a Diff backup taken at 9am
> a Diff backup taken at 11am
> Can I do this ?
> Restore Full DB Backup of 7am with noreceovery followed by
> Restore Diff Backup of 9am with noreceovery followed by
> Restore Diff Backup of 11am with recovery.
> I know I could do a restore of the Full DB Backup of 7am followed by
> Restore of Diff backup of 11am with recovery and it will work... But i
> want to know if the above will work whereby i restore both the
> differentials one after another
> Thanks
>
Can I do this ?
a Full DB Backup taken at 7am
a Diff backup taken at 9am
a Diff backup taken at 11am
Can I do this ?
Restore Full DB Backup of 7am with noreceovery followed by
Restore Diff Backup of 9am with noreceovery followed by
Restore Diff Backup of 11am with recovery.
I know I could do a restore of the Full DB Backup of 7am followed by Restore
of Diff backup of 11am with recovery and it will work... But i want to know
if the above will work whereby i restore both the differentials one after
another
Thanks
Hassan wrote:
> So I have
> a Full DB Backup taken at 7am
> a Diff backup taken at 9am
> a Diff backup taken at 11am
> Can I do this ?
> Restore Full DB Backup of 7am with noreceovery followed by
> Restore Diff Backup of 9am with noreceovery followed by
> Restore Diff Backup of 11am with recovery.
> I know I could do a restore of the Full DB Backup of 7am followed by Restore
> of Diff backup of 11am with recovery and it will work... But i want to know
> if the above will work whereby i restore both the differentials one after
> another
> Thanks
Did you try it?
CREATE DATABASE foob;
GO
BACKUP DATABASE foob TO DISK = 'C:\foob.bak' WITH INIT;
BACKUP DATABASE foob TO DISK = 'C:\foob1.bak' WITH DIFFERENTIAL, INIT;
BACKUP DATABASE foob TO DISK = 'C:\foob2.bak' WITH DIFFERENTIAL, INIT;
GO
USE master
RESTORE DATABASE foob FROM DISK = 'C:\foob.bak' WITH REPLACE,
NORECOVERY;
RESTORE DATABASE foob FROM DISK = 'C:\foob1.bak' WITH NORECOVERY;
RESTORE DATABASE foob FROM DISK = 'C:\foob2.bak' WITH RECOVERY;
David Portas, SQL Server MVP
Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.
SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
|||Hello Hassan,
You can do that; but will not make much difference. This is more than enough
to restore the FULL database backup with NORECOVERY follwed with
the last DIFFERENTIAL backup with RECOVERY. But for testing you could try
restore both DIFFERENTIAL backup and it will work fine..
Thanks
Hari
"Hassan" <Hassan@.hotmail.com> wrote in message
news:e7azxe8GHHA.3668@.TK2MSFTNGP02.phx.gbl...
> So I have
> a Full DB Backup taken at 7am
> a Diff backup taken at 9am
> a Diff backup taken at 11am
> Can I do this ?
> Restore Full DB Backup of 7am with noreceovery followed by
> Restore Diff Backup of 9am with noreceovery followed by
> Restore Diff Backup of 11am with recovery.
> I know I could do a restore of the Full DB Backup of 7am followed by
> Restore of Diff backup of 11am with recovery and it will work... But i
> want to know if the above will work whereby i restore both the
> differentials one after another
> Thanks
>
sql
Can I do this ?
a Full DB Backup taken at 7am
a Diff backup taken at 9am
a Diff backup taken at 11am
Can I do this ?
Restore Full DB Backup of 7am with noreceovery followed by
Restore Diff Backup of 9am with noreceovery followed by
Restore Diff Backup of 11am with recovery.
I know I could do a restore of the Full DB Backup of 7am followed by Restore
of Diff backup of 11am with recovery and it will work... But i want to know
if the above will work whereby i restore both the differentials one after
another
ThanksHassan wrote:
> So I have
> a Full DB Backup taken at 7am
> a Diff backup taken at 9am
> a Diff backup taken at 11am
> Can I do this ?
> Restore Full DB Backup of 7am with noreceovery followed by
> Restore Diff Backup of 9am with noreceovery followed by
> Restore Diff Backup of 11am with recovery.
> I know I could do a restore of the Full DB Backup of 7am followed by Restore
> of Diff backup of 11am with recovery and it will work... But i want to know
> if the above will work whereby i restore both the differentials one after
> another
> Thanks
Did you try it?
CREATE DATABASE foob;
GO
BACKUP DATABASE foob TO DISK = 'C:\foob.bak' WITH INIT;
BACKUP DATABASE foob TO DISK = 'C:\foob1.bak' WITH DIFFERENTIAL, INIT;
BACKUP DATABASE foob TO DISK = 'C:\foob2.bak' WITH DIFFERENTIAL, INIT;
GO
USE master
RESTORE DATABASE foob FROM DISK = 'C:\foob.bak' WITH REPLACE,
NORECOVERY;
RESTORE DATABASE foob FROM DISK = 'C:\foob1.bak' WITH NORECOVERY;
RESTORE DATABASE foob FROM DISK = 'C:\foob2.bak' WITH RECOVERY;
--
David Portas, SQL Server MVP
Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.
SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
--|||Hello Hassan,
You can do that; but will not make much difference. This is more than enough
to restore the FULL database backup with NORECOVERY follwed with
the last DIFFERENTIAL backup with RECOVERY. But for testing you could try
restore both DIFFERENTIAL backup and it will work fine..
Thanks
Hari
"Hassan" <Hassan@.hotmail.com> wrote in message
news:e7azxe8GHHA.3668@.TK2MSFTNGP02.phx.gbl...
> So I have
> a Full DB Backup taken at 7am
> a Diff backup taken at 9am
> a Diff backup taken at 11am
> Can I do this ?
> Restore Full DB Backup of 7am with noreceovery followed by
> Restore Diff Backup of 9am with noreceovery followed by
> Restore Diff Backup of 11am with recovery.
> I know I could do a restore of the Full DB Backup of 7am followed by
> Restore of Diff backup of 11am with recovery and it will work... But i
> want to know if the above will work whereby i restore both the
> differentials one after another
> Thanks
>
Thursday, March 22, 2012
Can I delete BAK and TRN files?
backup a customer database. The backup works file, but
none of the old backup and transaction files are removed
after each backup, so it is consuming a lot of disk
space. I have BAK and TRN files dating back 3 months.
Before I deleted any of the old files, I wanted to make
sure I am okay to do so. Does anyone know of a problem
with manually most of these files, leaving only the most
recent week or two of backups?
Thanks,
Jason... and if the backups are created by a SQL Server maintenance plan, you can
modify it to have the files older than a specified period removed. It's on
the Complete Backup and Transaction Log Backup tabs respectively, Remove
files older than item.
"Linchi Shea" <linchi_shea@.NOSPAMml.com> wrote in message
news:0b4a01c3d932$260faea0$a001280a@.phx.gbl...
> As far as whether deleting the old backup files will do
> any damage to the backup setup (e.g. your maintanance
> plans) is concerned, there is no problem. But you do need
> to make sure that if you ever need them, you can get them
> back (e.g. from your tape backup facility).
> Linchi
> >--Original Message--
> >I have an implementation of SQL Server 2000 with a job to
> >backup a customer database. The backup works file, but
> >none of the old backup and transaction files are removed
> >after each backup, so it is consuming a lot of disk
> >space. I have BAK and TRN files dating back 3 months.
> >Before I deleted any of the old files, I wanted to make
> >sure I am okay to do so. Does anyone know of a problem
> >with manually most of these files, leaving only the most
> >recent week or two of backups?
> >
> >Thanks,
> >
> >Jason
> >.
> >sql
Can I delete BAK and TRN files?
backup a customer database. The backup works file, but
none of the old backup and transaction files are removed
after each backup, so it is consuming a lot of disk
space. I have BAK and TRN files dating back 3 months.
Before I deleted any of the old files, I wanted to make
sure I am okay to do so. Does anyone know of a problem
with manually most of these files, leaving only the most
recent week or two of backups?
Thanks,
JasonAs far as whether deleting the old backup files will do
any damage to the backup setup (e.g. your maintanance
plans) is concerned, there is no problem. But you do need
to make sure that if you ever need them, you can get them
back (e.g. from your tape backup facility).
Linchi
quote:|||... and if the backups are created by a SQL Server maintenance plan, you ca
>--Original Message--
>I have an implementation of SQL Server 2000 with a job to
>backup a customer database. The backup works file, but
>none of the old backup and transaction files are removed
>after each backup, so it is consuming a lot of disk
>space. I have BAK and TRN files dating back 3 months.
>Before I deleted any of the old files, I wanted to make
>sure I am okay to do so. Does anyone know of a problem
>with manually most of these files, leaving only the most
>recent week or two of backups?
>Thanks,
>Jason
>.
>
n
modify it to have the files older than a specified period removed. It's on
the Complete Backup and Transaction Log Backup tabs respectively, Remove
files older than item.
"Linchi Shea" <linchi_shea@.NOSPAMml.com> wrote in message
news:0b4a01c3d932$260faea0$a001280a@.phx.gbl...[QUOTE]
> As far as whether deleting the old backup files will do
> any damage to the backup setup (e.g. your maintanance
> plans) is concerned, there is no problem. But you do need
> to make sure that if you ever need them, you can get them
> back (e.g. from your tape backup facility).
> Linchi
>
can i create database using backup file in SQl server 2005 Express edition
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
Hi
Is it possible you don't see the extention mdf just because your folder options in windows xp tell you to "hide extentions of known file types"?
Just create a new database and force it to backup on the file you have.
Hope this helps!
Wim
|||no actually its a text file which is backup file taken from a sql server 2005 enterprise edition.
So now i want original file (.mdf) from DE since i don't have sql server2005 full version.
I have DE that comes with .net 2005
can i create a database from backup file
hi
is it possible to create a database using backup in sql server DE?
like we can do in full edition using restore option........
yes its possible to create a db by restoring it from backup file.......regardless of the edition i believe.......|||In order to RESTORE a non-existant database, it may be necessary to first create an 'empty' database with the same name, and then RESTORE over the top of that.|||Be aware that the files might not be stored on the same location as the original files were (e.g. the drive letter of the former server does not exists). You will have to use the with move option then (or simply use the gui and specify other file locations as you will see during the recovery that the original file locations are stored within the backup set.Jens K. Suessmeyer
http://www.sqlserver2005.de
Tuesday, March 20, 2012
can i calculate a database backup size?
I've a database with multiple millions of rows in a small set of tables.
Most of this data is historical, so I want to split the data in multiple
databases, make backups of about 600 MB each and burn this to cd roms. I
want to split the data based on dates stored inside the tables. Is there a
way to calculate the amount of bytes inside a database backup file that will
be produced ba a diven select statement when it uses all rows of a table?
SvenBackups aren't caused by select statements. They backup all of the physical
data in the database unless you do file or filegroup backups. So if you
want to get an idea of the size the backup will be you only have to look at
how much actual data (not including free space) there is in the db and it
will be approximately that. You can compress backups quite easily with
WINZIP or similar utilities and fit much more on a cd.
--
Andrew J. Kelly
SQL Server MVP
"Sven Erik Matzen" <sven.matzen@.dontspamme.com> wrote in message
news:eJ3BY7XZDHA.1832@.TK2MSFTNGP09.phx.gbl...
> Hi,
> I've a database with multiple millions of rows in a small set of tables.
> Most of this data is historical, so I want to split the data in multiple
> databases, make backups of about 600 MB each and burn this to cd roms. I
> want to split the data based on dates stored inside the tables. Is there a
> way to calculate the amount of bytes inside a database backup file that
will
> be produced ba a diven select statement when it uses all rows of a table?
> Sven
>|||Good point Dan. Be sure to run UPDATE USAGE or use the Updateusage option
when running it.
--
Andrew J. Kelly
SQL Server MVP
"Dan Guzman" <danguzman@.nospam-earthlink.net> wrote in message
news:%23Cs0mbZZDHA.2572@.TK2MSFTNGP12.phx.gbl...
> To add to Andrew's response, the reserved space reported by sp_spaceused
> can provide a rough estimate of database backup space requirements.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> --
> SQL FAQ links (courtesy Neil Pike):
> http://www.ntfaq.com/Articles/Index.cfm?DepartmentID=800
> http://www.sqlserverfaq.com
> http://www.mssqlserver.com/faq
> --
> "Sven Erik Matzen" <sven.matzen@.dontspamme.com> wrote in message
> news:eJ3BY7XZDHA.1832@.TK2MSFTNGP09.phx.gbl...
> > Hi,
> >
> > I've a database with multiple millions of rows in a small set of
> tables.
> > Most of this data is historical, so I want to split the data in
> multiple
> > databases, make backups of about 600 MB each and burn this to cd roms.
> I
> > want to split the data based on dates stored inside the tables. Is
> there a
> > way to calculate the amount of bytes inside a database backup file
> that will
> > be produced ba a diven select statement when it uses all rows of a
> table?
> >
> > Sven
> >
> >
>|||Sven,
That's a really awkward way of going about it. Why not just BCP out the
data to flat files (I suggest native mode) and load them onto the CD(s).
You can use normal select statements to break them up into what ever you
want. It will be much cleaner and easier than attempting to do this with
backups. As for the size, it would be difficult to tell exactly unless all
your columns are of the fixed size (no varchars, text etc.). I think with a
few test selects you should be able to get a pretty good idea though.
--
Andrew J. Kelly
SQL Server MVP
"Sven Erik Matzen" <sven.matzen@.dontspamme.com> wrote in message
news:u9WCdCkZDHA.2520@.TK2MSFTNGP09.phx.gbl...
> I plan to split up database. 99% of the size of my database is caused by
> "Table1". What I need to know is: How many rows do I have to delete to be
> able to produce a backup os ~600MByte. I need functional database backups
to
> be able to restore data from a specific date.
> The idea was to have a second database with all the data but Table1, then
> - do a move of x rows from the original database to the new database
> - then make a backup
> - truncate Table1 of the backed up database
> - repeat these steps until all data is backed up.
> Now I need to know what type of relationship is there between space used
in
> a database and space used in a backup file. I don't want to split one huge
> database backup file to burn it on cdroms, because then I need to restore
> the complete database from 100 CDs just to lookup one row - that's not
what
> I had in mind ;).
>
> "Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> wrote in message
> news:eQAY7jYZDHA.3444@.tk2msftngp13.phx.gbl...
> > Backups aren't caused by select statements. They backup all of the
> physical
> > data in the database unless you do file or filegroup backups. So if you
> > want to get an idea of the size the backup will be you only have to look
> at
> > how much actual data (not including free space) there is in the db and
it
> > will be approximately that. You can compress backups quite easily with
> > WINZIP or similar utilities and fit much more on a cd.
> >
> > --
> >
> > Andrew J. Kelly
> > SQL Server MVP
> >
> >
> > "Sven Erik Matzen" <sven.matzen@.dontspamme.com> wrote in message
> > news:eJ3BY7XZDHA.1832@.TK2MSFTNGP09.phx.gbl...
> > > Hi,
> > >
> > > I've a database with multiple millions of rows in a small set of
tables.
> > > Most of this data is historical, so I want to split the data in
multiple
> > > databases, make backups of about 600 MB each and burn this to cd roms.
I
> > > want to split the data based on dates stored inside the tables. Is
there
> a
> > > way to calculate the amount of bytes inside a database backup file
that
> > will
> > > be produced ba a diven select statement when it uses all rows of a
> table?
> > >
> > > Sven
> > >
> > >
> >
> >
>
Monday, March 19, 2012
Can I backup UP MS SQL 2000 with Windows 2000 NT Backup?
BJ
not natively. A good way to do it is to use backup the database to disk
using BACKUP DATABASE commands and then have the NTBackup job pick these
files up later.
Obviously you might have timing / synch issues here but you could create a
batch job that uses OSQL to perform the Backup commands and then launches
NTBackup (with params to automatice) and run this via Windows Task
Scheduler.
Or could do the other way round from a SQL Agent job , ie backup databases
and then launch NTBackup as the next step.
Alternatively could have a batch that stops SQL Server , NTBackup (to pick
up mdf, ldf), Starts SQL Server. But obviously server is down when this
happens
cheers,
Andy
"BJ" <lmelogra@.optonline.net> wrote in message
news:OYlTN3LjEHA.704@.TK2MSFTNGP09.phx.gbl...
> anyone? Thanks in advance!
> BJ
>
Can I backup UP MS SQL 2000 with Windows 2000 NT Backup?
BJnot natively. A good way to do it is to use backup the database to disk
using BACKUP DATABASE commands and then have the NTBackup job pick these
files up later.
Obviously you might have timing / synch issues here but you could create a
batch job that uses OSQL to perform the Backup commands and then launches
NTBackup (with params to automatice) and run this via Windows Task
Scheduler.
Or could do the other way round from a SQL Agent job , ie backup databases
and then launch NTBackup as the next step.
Alternatively could have a batch that stops SQL Server , NTBackup (to pick
up mdf, ldf), Starts SQL Server. But obviously server is down when this
happens
cheers,
Andy
"BJ" <lmelogra@.optonline.net> wrote in message
news:OYlTN3LjEHA.704@.TK2MSFTNGP09.phx.gbl...
> anyone? Thanks in advance!
> BJ
>
Can I backup UP MS SQL 2000 with Windows 2000 NT Backup?
BJnot natively. A good way to do it is to use backup the database to disk
using BACKUP DATABASE commands and then have the NTBackup job pick these
files up later.
Obviously you might have timing / synch issues here but you could create a
batch job that uses OSQL to perform the Backup commands and then launches
NTBackup (with params to automatice) and run this via Windows Task
Scheduler.
Or could do the other way round from a SQL Agent job , ie backup databases
and then launch NTBackup as the next step.
Alternatively could have a batch that stops SQL Server , NTBackup (to pick
up mdf, ldf), Starts SQL Server. But obviously server is down when this
happens
cheers,
Andy
"BJ" <lmelogra@.optonline.net> wrote in message
news:OYlTN3LjEHA.704@.TK2MSFTNGP09.phx.gbl...
> anyone? Thanks in advance!
> BJ
>
Can I backup SQl server 2005 databases with Shadow Copies (VSS)
I would like to create shadow copies of our SQL databases as a way of
providing temporary point in time backups. I was thinking of doing the
following:-
1) Hidden share of the DB folders (mdf/ldf).
2) Apply NTFS as precaution.
3) Store shadow copies on external drive.
4) Create copies every 30/60 minutes.
Would this cause a problem with the SQL server 2005? Would a restoration be
as simple as restoring the mdf & ldf files? It is a live server and I would
not want to cause any probs so thought I would look/check around. I have
googled but can only find pages with people using VSS programatically.
Kind Regards,
Paul Johnson.
--
<a href="http://links.10026.com/?link=http://www.crossloop.com/PaulJohnson?type=email"
target="_blank"><img border = "0"
src="http://pics.10026.com/?src=http://www.crossloop.com/images/badge-sm-gray.jpg" alt="Get help from
Paul Johnson!" /></a>"Paul Johnson" <paul.johnson@.gaapweb.com> wrote in message
news:e7f$JL8nIHA.2292@.TK2MSFTNGP03.phx.gbl...
> Good Day,
> I would like to create shadow copies of our SQL databases as a way of
> providing temporary point in time backups. I was thinking of doing the
> following:-
> 1) Hidden share of the DB folders (mdf/ldf).
> 2) Apply NTFS as precaution.
> 3) Store shadow copies on external drive.
> 4) Create copies every 30/60 minutes.
> Would this cause a problem with the SQL server 2005? Would a restoration
> be as simple as restoring the mdf & ldf files? It is a live server and I
> would not want to cause any probs so thought I would look/check around. I
> have googled but can only find pages with people using VSS
> programatically.
> Kind Regards,
> Paul Johnson.
>
> --
> <a href="http://links.10026.com/?link=http://www.crossloop.com/PaulJohnson?type=email"
> target="_blank"><img border = "0"
> src="http://pics.10026.com/?src=http://www.crossloop.com/images/badge-sm-gray.jpg" alt="Get help from
> Paul Johnson!" /></a>
Hi Paul
As I understand it, you would need to implement your backup solution using
the VSS API or an application that uses it. NTBackup seems to only be able
to cope with databases that are using SIMPLE recovery mode.
Without backing up the logs, you will not have any ability to rollforward
your transactions, therefore your solution is going to incorporate some data
loss.
John|||I have not looked into shadow copy with SQL Server closely to be able to
comment on your proposed approach intelligently. But one thing I do know is
that your proposed approach is not a common one. So unless you are doing a
POC or just exploring, I'd suggest you don't go there since there are other
much more 'mature' approach to meeting your requirements.
Linchi
"Paul Johnson" wrote:
> Good Day,
> I would like to create shadow copies of our SQL databases as a way of
> providing temporary point in time backups. I was thinking of doing the
> following:-
> 1) Hidden share of the DB folders (mdf/ldf).
> 2) Apply NTFS as precaution.
> 3) Store shadow copies on external drive.
> 4) Create copies every 30/60 minutes.
> Would this cause a problem with the SQL server 2005? Would a restoration be
> as simple as restoring the mdf & ldf files? It is a live server and I would
> not want to cause any probs so thought I would look/check around. I have
> googled but can only find pages with people using VSS programatically.
> Kind Regards,
> Paul Johnson.
>
> --
> <a href="http://links.10026.com/?link=http://www.crossloop.com/PaulJohnson?type=email"
> target="_blank"><img border = "0"
> src="http://pics.10026.com/?src=http://www.crossloop.com/images/badge-sm-gray.jpg" alt="Get help from
> Paul Johnson!" /></a>
>
>|||Good Day Linchi,
Thank you for your reply.
I was hoping to avoid using a backup program to do this Shadow Copies offers
exactly what I want and it works in the background. I guess I will have to
use our regular backup software.
Thanks once again.
Kind Regards,
Paul Johnson.
"Linchi Shea" <LinchiShea@.discussions.microsoft.com> wrote in message
news:99C5AB60-74B5-4166-A943-C86288A92F1C@.microsoft.com...
>I have not looked into shadow copy with SQL Server closely to be able to
> comment on your proposed approach intelligently. But one thing I do know
> is
> that your proposed approach is not a common one. So unless you are doing a
> POC or just exploring, I'd suggest you don't go there since there are
> other
> much more 'mature' approach to meeting your requirements.
> Linchi
> "Paul Johnson" wrote:
>> Good Day,
>> I would like to create shadow copies of our SQL databases as a way of
>> providing temporary point in time backups. I was thinking of doing the
>> following:-
>> 1) Hidden share of the DB folders (mdf/ldf).
>> 2) Apply NTFS as precaution.
>> 3) Store shadow copies on external drive.
>> 4) Create copies every 30/60 minutes.
>> Would this cause a problem with the SQL server 2005? Would a restoration
>> be
>> as simple as restoring the mdf & ldf files? It is a live server and I
>> would
>> not want to cause any probs so thought I would look/check around. I have
>> googled but can only find pages with people using VSS programatically.
>> Kind Regards,
>> Paul Johnson.
>>
>> --
>> <a href="http://links.10026.com/?link=http://www.crossloop.com/PaulJohnson?type=email"
>> target="_blank"><img border = "0"
>> src="http://pics.10026.com/?src=http://www.crossloop.com/images/badge-sm-gray.jpg" alt="Get help
>> from
>> Paul Johnson!" /></a>
>>|||Thank you for your reply.
I was hoping to avoid using a backup program to do this. Shadow Copies
offers exactly what I want and it works in the background. I guess I will
have to use our regular backup software or just get SQL server to create
backups to the drive on a schedule.
Thanks once again.
Kind Regards,
Paul Johnson.
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:u3Ktnr8nIHA.1768@.TK2MSFTNGP03.phx.gbl...
> "Paul Johnson" <paul.johnson@.gaapweb.com> wrote in message
> news:e7f$JL8nIHA.2292@.TK2MSFTNGP03.phx.gbl...
>> Good Day,
>> I would like to create shadow copies of our SQL databases as a way of
>> providing temporary point in time backups. I was thinking of doing the
>> following:-
>> 1) Hidden share of the DB folders (mdf/ldf).
>> 2) Apply NTFS as precaution.
>> 3) Store shadow copies on external drive.
>> 4) Create copies every 30/60 minutes.
>> Would this cause a problem with the SQL server 2005? Would a restoration
>> be as simple as restoring the mdf & ldf files? It is a live server and I
>> would not want to cause any probs so thought I would look/check around. I
>> have googled but can only find pages with people using VSS
>> programatically.
>> Kind Regards,
>> Paul Johnson.
>>
>> --
>> <a href="http://links.10026.com/?link=http://www.crossloop.com/PaulJohnson?type=email"
>> target="_blank"><img border = "0"
>> src="http://pics.10026.com/?src=http://www.crossloop.com/images/badge-sm-gray.jpg" alt="Get help
>> from Paul Johnson!" /></a>
> Hi Paul
> As I understand it, you would need to implement your backup solution using
> the VSS API or an application that uses it. NTBackup seems to only be able
> to cope with databases that are using SIMPLE recovery mode.
> Without backing up the logs, you will not have any ability to rollforward
> your transactions, therefore your solution is going to incorporate some
> data loss.
> John
>|||"Paul Johnson" <paul.johnson@.gaapweb.com> wrote in message
news:e7f$JL8nIHA.2292@.TK2MSFTNGP03.phx.gbl...
> Good Day,
> I would like to create shadow copies of our SQL databases as a way of
> providing temporary point in time backups. I was thinking of doing the
> following:-
Why not use normal SQL Server backups?
Or if you have Enterprise you can also take snapshots.
> 1) Hidden share of the DB folders (mdf/ldf).
> 2) Apply NTFS as precaution.
> 3) Store shadow copies on external drive.
> 4) Create copies every 30/60 minutes.
> Would this cause a problem with the SQL server 2005? Would a restoration
> be as simple as restoring the mdf & ldf files? It is a live server and I
> would not want to cause any probs so thought I would look/check around. I
> have googled but can only find pages with people using VSS
> programatically.
> Kind Regards,
> Paul Johnson.
>
> --
> <a href="http://links.10026.com/?link=http://www.crossloop.com/PaulJohnson?type=email"
> target="_blank"><img border = "0"
> src="http://pics.10026.com/?src=http://www.crossloop.com/images/badge-sm-gray.jpg" alt="Get help from
> Paul Johnson!" /></a>
>
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html|||"Paul Johnson" <paul.johnson@.gaapweb.com> wrote in message
news:%23z0$3F%23nIHA.3900@.TK2MSFTNGP05.phx.gbl...
> Good Day Linchi,
> Thank you for your reply.
> I was hoping to avoid using a backup program to do this Shadow Copies
> offers exactly what I want and it works in the background. I guess I will
> have to use our regular backup software.
Unless your regular backup software is SQL Server aware, I would not go down
this route.
> Thanks once again.
> Kind Regards,
> Paul Johnson.
> "Linchi Shea" <LinchiShea@.discussions.microsoft.com> wrote in message
> news:99C5AB60-74B5-4166-A943-C86288A92F1C@.microsoft.com...
>>I have not looked into shadow copy with SQL Server closely to be able to
>> comment on your proposed approach intelligently. But one thing I do know
>> is
>> that your proposed approach is not a common one. So unless you are doing
>> a
>> POC or just exploring, I'd suggest you don't go there since there are
>> other
>> much more 'mature' approach to meeting your requirements.
>> Linchi
>> "Paul Johnson" wrote:
>> Good Day,
>> I would like to create shadow copies of our SQL databases as a way of
>> providing temporary point in time backups. I was thinking of doing the
>> following:-
>> 1) Hidden share of the DB folders (mdf/ldf).
>> 2) Apply NTFS as precaution.
>> 3) Store shadow copies on external drive.
>> 4) Create copies every 30/60 minutes.
>> Would this cause a problem with the SQL server 2005? Would a restoration
>> be
>> as simple as restoring the mdf & ldf files? It is a live server and I
>> would
>> not want to cause any probs so thought I would look/check around. I have
>> googled but can only find pages with people using VSS programatically.
>> Kind Regards,
>> Paul Johnson.
>>
>> --
>> <a href="http://links.10026.com/?link=http://www.crossloop.com/PaulJohnson?type=email"
>> target="_blank"><img border = "0"
>> src="http://pics.10026.com/?src=http://www.crossloop.com/images/badge-sm-gray.jpg" alt="Get help
>> from
>> Paul Johnson!" /></a>
>>
>
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html
Can I backup database using SQL server 2005 express to CD or DVD
Hi,
I tried to backup a database in MSSQL 2005 using Management studio express edition directly to CD. The CD is formated with Sonic DLA. I'am getting this error message:
TITLE: Microsoft SQL Server Management Studio Express
Backup failed for Server 'adilpc\sqlexpress'. (Microsoft.SqlServer.Express.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Backup+Server&LinkId=20476
ADDITIONAL INFORMATION:
System.Data.SqlClient.SqlError: Write on "D:\Test" failed: 87(The parameter is incorrect.) (Microsoft.SqlServer.Express.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&LinkId=20476
Is it possible to backup directly to a CD or am I missing something? Any help is greatly appreciated.
Tnx
Adil
Hello
It's impossible to backup with SQL DServer 2005 Express directly to CD.
You can backup only to a file on a tape drive or a hard disk ( local or over a network connection ).
Afterwards, you have to copy this file to a CD
Sorry but SQL Server 2005 Express is free
It' possible with the standard,workgroup,Enterprise editions
Have a nice day
Can I Backup A Database On CD?
Thank youUytkownik "mike" <mike2002am@.yahoo.com> napisa w wiadomoci
news:jedOa.5800$19.1431@.nwrdny03.gnilink.net...
> If I copy a Database backup to a CD; can I resotre to a different server?
Why not?
/p|||Hi
You may have problems in that if you copy files from a CD they will have the
read only attributes set.
The other problems that you may encounter are covered in:
http://support.microsoft.com/defaul...b;en-us;Q314546
John
"mike" <mike2002am@.yahoo.com> wrote in message
news:jedOa.5800$19.1431@.nwrdny03.gnilink.net...
> If I copy a Database backup to a CD; can I resotre to a different server?
> Thank you|||"mike" <mike2002am@.yahoo.com> wrote in message news:<jedOa.5800$19.1431@.nwrdny03.gnilink.net>...
> If I copy a Database backup to a CD; can I resotre to a different server?
> Thank you
Yep, but as someone mentioned earlier the 'read only' attribute will
be set on the files - this will make the database show up on SQL
Server as 'Read Only' and when you try to access it, it will come up
with an error. So, once copied onto the destination server's HDD,
remember to reset the file attribute property.
HTH
iwg
Sunday, March 11, 2012
Can dump file naming convention be specified using Maintence Plan
For a 'complete backup' using Maintenance Plan the naming convention
now is
DBNAMEmo.dy.yr_hr_sc
Can this changed or is it hardcoded?
TIA
-Roman
Management Console 2.0
SQL Enterpise Manager 8.0To the best of my knowledge, it is hardcoded. Only thing you can change is extension of the files.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
<romandvoskin@.gmail.com> wrote in message
news:1150912826.206544.128420@.i40g2000cwc.googlegroups.com...
> Hi,
> For a 'complete backup' using Maintenance Plan the naming convention
> now is
> DBNAMEmo.dy.yr_hr_sc
> Can this changed or is it hardcoded?
> TIA
> -Roman
> Management Console 2.0
> SQL Enterpise Manager 8.0
>
Can dump file naming convention be specified using Maintence Plan
For a 'complete backup' using Maintenance Plan the naming convention
now is
DBNAMEmo.dy.yr_hr_sc
Can this changed or is it hardcoded?
TIA
-Roman
Management Console 2.0
SQL Enterpise Manager 8.0To the best of my knowledge, it is hardcoded. Only thing you can change is e
xtension of the files.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
<romandvoskin@.gmail.com> wrote in message
news:1150912826.206544.128420@.i40g2000cwc.googlegroups.com...
> Hi,
> For a 'complete backup' using Maintenance Plan the naming convention
> now is
> DBNAMEmo.dy.yr_hr_sc
> Can this changed or is it hardcoded?
> TIA
> -Roman
> Management Console 2.0
> SQL Enterpise Manager 8.0
>|||To the best of my knowledge, it is hardcoded. Only thing you can change is e
xtension of the files.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
<romandvoskin@.gmail.com> wrote in message
news:1150912826.206544.128420@.i40g2000cwc.googlegroups.com...
> Hi,
> For a 'complete backup' using Maintenance Plan the naming convention
> now is
> DBNAMEmo.dy.yr_hr_sc
> Can this changed or is it hardcoded?
> TIA
> -Roman
> Management Console 2.0
> SQL Enterpise Manager 8.0
>
Thursday, March 8, 2012
Can data be retrieved from a SQL LDF file (Log)
the .LDF file is still accessible. My most recent backup
is a week old. My question is: After I re-create the
database, is there any way I can recover the past weeks
transactions from the .LDF file. No transaction dump has
been done since the last backup, so I would think that
theoretically the week's transactions are still in the LDF
file.If you haven't done any transaction log backups since the most recent
database backup you can now backup the log, restore the full backup and then
restore the transaction log backup.
See Books Online for the details.
--
Jacco Schalkwijk
SQL Server MVP
"SteveB" <steve_brooks@.adp.com> wrote in message
news:430d01c39e52$c1fa2950$7d02280a@.phx.gbl...
> I have a database that has a corrupt .MDF file, but
> the .LDF file is still accessible. My most recent backup
> is a week old. My question is: After I re-create the
> database, is there any way I can recover the past weeks
> transactions from the .LDF file. No transaction dump has
> been done since the last backup, so I would think that
> theoretically the week's transactions are still in the LDF
> file.|||"SteveB" <steve_brooks@.adp.com> wrote in message
news:430d01c39e52$c1fa2950$7d02280a@.phx.gbl...
> I have a database that has a corrupt .MDF file, but
> the .LDF file is still accessible. My most recent backup
> is a week old. My question is: After I re-create the
> database, is there any way I can recover the past weeks
> transactions from the .LDF file. No transaction dump has
> been done since the last backup, so I would think that
> theoretically the week's transactions are still in the LDF
> file.
Yes.
Before restoring back up your log with NOTRUNCATE
BACKUP LOG mydb
TO mydevice1
WITH NOTRUNCATE
RESTORE DATABASE mydb
FROM mydevice2
WITH RESTORE.
That should roll your log file forward.
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.532 / Virus Database: 326 - Release Date: 27/10/2003
Wednesday, March 7, 2012
Can backup to disk, but not to tape - Access Denied
tape however I continually get an Access Denied message for the failure.
Even when I try to insert a previously successful tape and try to see what
is on it I still get the Access denied message (Bad Password). I am able to
backup to a folder without any problem.
Both SQL server and Agent start with a Domain Admin account and I have
created these jobs while logging in with the accounts. I have even created
the databases with this account as well. No problem accessing the data,
just backing up to tape.
Windows 2003 Server SP1
SQL 2000 SP3
All latest Windows UpdatesJordan wrote:
> I have been trying to use the Maintenance Wizard to setup a backup job to
> tape however I continually get an Access Denied message for the failure.
> Even when I try to insert a previously successful tape and try to see what
> is on it I still get the Access denied message (Bad Password). I am able to
> backup to a folder without any problem.
> Both SQL server and Agent start with a Domain Admin account and I have
> created these jobs while logging in with the accounts. I have even created
> the databases with this account as well. No problem accessing the data,
> just backing up to tape.
> Windows 2003 Server SP1
> SQL 2000 SP3
> All latest Windows Updates
>
>
For what it's worth, most folks don't write SQL backups directly to
tape. Write your SQL backups to disk, and then let your tape backup
software backup those backup files to tape.
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||I found that even though the services are run as MYDOMAIN\Administrator the
backup task kept getting set to run as Administrator@.mydomain.com. When I
manually changed the job to MYDOMAIN\Administrator it started to work.
"Tracy McKibben" <tracy@.realsqlguy.com> wrote in message
news:4526493E.6080206@.realsqlguy.com...
> Jordan wrote:
>> I have been trying to use the Maintenance Wizard to setup a backup job to
>> tape however I continually get an Access Denied message for the failure.
>> Even when I try to insert a previously successful tape and try to see
>> what is on it I still get the Access denied message (Bad Password). I am
>> able to backup to a folder without any problem.
>> Both SQL server and Agent start with a Domain Admin account and I have
>> created these jobs while logging in with the accounts. I have even
>> created the databases with this account as well. No problem accessing
>> the data, just backing up to tape.
>> Windows 2003 Server SP1
>> SQL 2000 SP3
>> All latest Windows Updates
>>
>>
> For what it's worth, most folks don't write SQL backups directly to tape.
> Write your SQL backups to disk, and then let your tape backup software
> backup those backup files to tape.
>
> --
> Tracy McKibben
> MCDBA
> http://www.realsqlguy.com
Can backup to disk, but not to tape - Access Denied
tape however I continually get an Access Denied message for the failure.
Even when I try to insert a previously successful tape and try to see what
is on it I still get the Access denied message (Bad Password). I am able to
backup to a folder without any problem.
Both SQL server and Agent start with a Domain Admin account and I have
created these jobs while logging in with the accounts. I have even created
the databases with this account as well. No problem accessing the data,
just backing up to tape.
Windows 2003 Server SP1
SQL 2000 SP3
All latest Windows Updates
Jordan wrote:
> I have been trying to use the Maintenance Wizard to setup a backup job to
> tape however I continually get an Access Denied message for the failure.
> Even when I try to insert a previously successful tape and try to see what
> is on it I still get the Access denied message (Bad Password). I am able to
> backup to a folder without any problem.
> Both SQL server and Agent start with a Domain Admin account and I have
> created these jobs while logging in with the accounts. I have even created
> the databases with this account as well. No problem accessing the data,
> just backing up to tape.
> Windows 2003 Server SP1
> SQL 2000 SP3
> All latest Windows Updates
>
>
For what it's worth, most folks don't write SQL backups directly to
tape. Write your SQL backups to disk, and then let your tape backup
software backup those backup files to tape.
Tracy McKibben
MCDBA
http://www.realsqlguy.com
|||I found that even though the services are run as MYDOMAIN\Administrator the
backup task kept getting set to run as Administrator@.mydomain.com. When I
manually changed the job to MYDOMAIN\Administrator it started to work.
"Tracy McKibben" <tracy@.realsqlguy.com> wrote in message
news:4526493E.6080206@.realsqlguy.com...
> Jordan wrote:
> For what it's worth, most folks don't write SQL backups directly to tape.
> Write your SQL backups to disk, and then let your tape backup software
> backup those backup files to tape.
>
> --
> Tracy McKibben
> MCDBA
> http://www.realsqlguy.com
Can backup to disk, but not to tape - Access Denied
tape however I continually get an Access Denied message for the failure.
Even when I try to insert a previously successful tape and try to see what
is on it I still get the Access denied message (Bad Password). I am able to
backup to a folder without any problem.
Both SQL server and Agent start with a Domain Admin account and I have
created these jobs while logging in with the accounts. I have even created
the databases with this account as well. No problem accessing the data,
just backing up to tape.
Windows 2003 Server SP1
SQL 2000 SP3
All latest Windows UpdatesJordan wrote:
> I have been trying to use the Maintenance Wizard to setup a backup job to
> tape however I continually get an Access Denied message for the failure.
> Even when I try to insert a previously successful tape and try to see what
> is on it I still get the Access denied message (Bad Password). I am able
to
> backup to a folder without any problem.
> Both SQL server and Agent start with a Domain Admin account and I have
> created these jobs while logging in with the accounts. I have even create
d
> the databases with this account as well. No problem accessing the data,
> just backing up to tape.
> Windows 2003 Server SP1
> SQL 2000 SP3
> All latest Windows Updates
>
>
For what it's worth, most folks don't write SQL backups directly to
tape. Write your SQL backups to disk, and then let your tape backup
software backup those backup files to tape.
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||I found that even though the services are run as MYDOMAIN\Administrator the
backup task kept getting set to run as Administrator@.mydomain.com. When I
manually changed the job to MYDOMAIN\Administrator it started to work.
"Tracy McKibben" <tracy@.realsqlguy.com> wrote in message
news:4526493E.6080206@.realsqlguy.com...
> Jordan wrote:
> For what it's worth, most folks don't write SQL backups directly to tape.
> Write your SQL backups to disk, and then let your tape backup software
> backup those backup files to tape.
>
> --
> Tracy McKibben
> MCDBA
> http://www.realsqlguy.com