Showing posts with label particular. Show all posts
Showing posts with label particular. Show all posts

Sunday, March 25, 2012

backup error

Hi all,
Sql server 7.0
I have backup job which takes the backup of the databases
at particular time once in a day. when i go to the
destination i can see the backup is taken and find
the .bak file in it. but i am getting the following error
message in sql error logs pls help me in identifying and
resolving this problem
BackupVirtualDeviceSet::Initialize: Open failure on backup
device 'BackupExecSqlAgent_Bas_BBC_PUND_00'. Operating
system error -2147024894(The system cannot find the file
specified.).
TIASeems you are using BackupExec. I suggest you discuss this when them, as the error suggests that SQL
Server cannot write to the virtual backup device...
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"haseeb" <anonymous@.discussions.microsoft.com> wrote in message
news:b15001c499a2$4bdb4730$a601280a@.phx.gbl...
> Hi all,
> Sql server 7.0
> I have backup job which takes the backup of the databases
> at particular time once in a day. when i go to the
> destination i can see the backup is taken and find
> the .bak file in it. but i am getting the following error
> message in sql error logs pls help me in identifying and
> resolving this problem
> BackupVirtualDeviceSet::Initialize: Open failure on backup
> device 'BackupExecSqlAgent_Bas_BBC_PUND_00'. Operating
> system error -2147024894(The system cannot find the file
> specified.).
> TIA
>sql

backup error

Hi all,
Sql server 7.0
I have backup job which takes the backup of the databases
at particular time once in a day. when i go to the
destination i can see the backup is taken and find
the .bak file in it. but i am getting the following error
message in sql error logs pls help me in identifying and
resolving this problem
BackupVirtualDeviceSet::Initialize: Open failure on backup
device 'BackupExecSqlAgent_Bas_BBC_PUND_00'. Operating
system error -2147024894(The system cannot find the file
specified.).
TIA
Seems you are using BackupExec. I suggest you discuss this when them, as the error suggests that SQL
Server cannot write to the virtual backup device...
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"haseeb" <anonymous@.discussions.microsoft.com> wrote in message
news:b15001c499a2$4bdb4730$a601280a@.phx.gbl...
> Hi all,
> Sql server 7.0
> I have backup job which takes the backup of the databases
> at particular time once in a day. when i go to the
> destination i can see the backup is taken and find
> the .bak file in it. but i am getting the following error
> message in sql error logs pls help me in identifying and
> resolving this problem
> BackupVirtualDeviceSet::Initialize: Open failure on backup
> device 'BackupExecSqlAgent_Bas_BBC_PUND_00'. Operating
> system error -2147024894(The system cannot find the file
> specified.).
> TIA
>
|||There is a timeout property that you need to increase.
It seems like backup in your case takes for a while and client
just doesn't wait til end of it.
Connection timeout
http://msdn.microsoft.com/library/de...tringtopic.asp
Command timeout
http://msdn.microsoft.com/library/de... outtopic.asp
Regards.
"Craig HB" wrote:

> I had a backup scheduled for a a time when people are using the website.
> I got this error...
> 59System.Data.SqlClient.SqlException: General network error. Check your
> network documentation
> Shouldn't you be able to backup while people are using the database ?
> It is about 4.5 Gigs in size -- would that make a difference ?
> Thanks,
> Craig

Sunday, March 11, 2012

Backup database

Hi,
Is there a way to backup database every week and the restore a particular week's database.
Thanks
Kiran
Of course. have you looked at Backup and Restore T-SQL commands and topics
about Scheduled Jobs in Books OnLine?
Dejan Sarka, SQL Server MVP
Associate Mentor
www.SolidQualityLearning.com

Backup database

Hi,
Is there a way to backup database every week and the restore a particular we
ek's database.
Thanks
KiranOf course. have you looked at Backup and Restore T-SQL commands and topics
about Scheduled Jobs in Books OnLine?
Dejan Sarka, SQL Server MVP
Associate Mentor
www.SolidQualityLearning.com

Wednesday, March 7, 2012

Backup and Restore Filegroups

Hi,
I want to take the backup of a particular filegroup in SQL server 2000 and then restore the same filegroup backup.
Currently I am using the following steps :
1. Creating the database with 2 filegroups. The syntax that I used for it is as follows :
create database test
on primary
(name = test1,
filename = 'D:\Program Files\Microsoft SQL Server\MSSQL\Data\test1.mdf'),
(name = test2,
filename = 'D:\Program Files\Microsoft SQL Server\MSSQL\Data\test2.ndf'),
filegroup group2
(name = test3,
filename = 'D:\Program Files\Microsoft SQL Server\MSSQL\Data\test3.ndf'),
(name = test4,
filename = 'D:\Program Files\Microsoft SQL Server\MSSQL\Data\test4.ndf')
log on
(name = test_log,
filename = 'D:\Program Files\Microsoft SQL Server\MSSQL\Data\test_log.ldf')

2. Now I am creating two tables table1 and table2 using Enterprise Manager. Both the Tables, table1 and table2 are on the "Group2" Filegroup of test database.

3. After creating the tables, I inserted three records in each table.

4. Then I performed the backup using the following commands:
backup log test
to disk = 'e:\test.lg1' with init

backup database test
filegroup = 'group2'
to disk = 'e:\test_group2.bak'

5. After the backup has been taken, I deleted the two records from both the tables. Now both my tables have one record each.

6. Now I tried restoring the database using following command :

backup log test
to disk = 'e:\test.lg3' with init

restore database test
filegroup = 'group2'
from disk = 'e:\test_group2.bak'
with norecovery

restore log test
from disk = 'e:\test.lg3' with norecovery

restore database test
with recovery

7. After all these commands are executed, when i checked my database, it contains again the one record in each table. Ideally, according to me the tables should contain 3 records as i had taken the backup when each table had 3 records.

How can I bring the database back to the state in which I had taken the backup.

Pls. help me as soon as possible.

And also let me know, if I need to do any SQL level or Database level settings for the above task.

Waiting for your reply. and thanking you in advance.

Regards,
a_k93A backup log beffore a backup database has no effect.

You must do a backup database, then backups log... and be sure that your option "trunc log on checkpoint " is set to false for this particular db.|||Hi,
Tried setting the option to false and followed the same backup and restore procedure after setting the option to false, but it is not working.

Can u post an example of the same, starting from the creation of the database and filegroups?

Regards,
a_k93|||do you need to recover this database as soon as possible?

unfortunately it appears that in your descirption that you have restored your full on top of your latest log backup so you should

restore the last full db backup with no recovery
restore any filegroup backups since the last full with no recovery
restore the log backups with recovery
this will force recovery to roll forward any commited xacts and roll back any incomplete xacts.
they you should be at the moment that the log backup was created.
unfortunately (if your description is correct) you will not be able to restore to the moment of corruption due to the lack of a log backup with no_truncate

good luck.

ps
download lumigent log explorer and use it to read your live log and your backed up logs and find the missing xacts and you can restore them or remove them.

Saturday, February 25, 2012

Backup and Restore

HI,
This particular question many of them would have answered, but am not able t
o get the right answer for this, request you to please advise me on this.
Scenario:
Full backup --> 12:00 noon
Differential Backup --> 14:00
Transaction log backup 1--> 14:30
Transaction log backup 2 --> 15:00
If the system crashes at 15:15, To restore the db, i'll apply the fullbackup
, diffrential backup and the last two transaction log backup, which means I'
ll be able to restore the db till 15:00. Now my question is, since the syste
m crashed at 15:15, will I
be able to restore the data for the duration of 15 minutes (15:00 to 15:15)
also?
Thanks in advance
YogYog wrote:
quote:

> Scenario:
> Full backup --> 12:00 noon
> Differential Backup --> 14:00
> Transaction log backup 1--> 14:30
> Transaction log backup 2 --> 15:00
> If the system crashes at 15:15, To restore the db, i'll apply the
> fullbackup, diffrential backup and the last two transaction log
> backup, which means I'll be able to restore the db till 15:00. Now my
> question is, since the system crashed at 15:15, will I be able to
> restore the data for the duration of 15 minutes (15:00 to 15:15)
> also?

if the backup file is OK after system crash, you just backup it before
restoring anything and then restore as mentioned and then restore that log
backup
hope this is clear enough
regards
Zarko|||Hi Zarko,
Thanks for the response. You mean to say if Transaction log is OK, then I ca
n back it up and then restore the way I have mentioned, right? I agree with
you...
But what if the whole system crashes (no access to the active files) and I h
ad taken the full backup, differential backup and transaction log backup on
different machine, then would I be able to restore the last 15 mins of data?
Am asking this because, fe
w of my friends claim that this is possible and I wanted to know, how...
Thanks again
Yog|||You should place the
1. log away from data
2. data away from master data
3. mirror the log
This sets you up in a situation where the database data can disappear, yet
you can still do a special log backup ( even when the database data is
gone.) The syntax is backup log prod to disk = ... with no_truncate...
This special log backup will have all of the changes since 15:00 in your
scenario....
In a situation when the whole server crashes, your risk of data loss is the
time between log backups, ...
Wayne Snyder, MCDBA, SQL Server MVP
Computer Education Services Corporation (CESC), Charlotte, NC
www.computeredservices.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Yog" <anonymous@.discussions.microsoft.com> wrote in message
news:74CC2E51-2951-4186-B638-89BC36414962@.microsoft.com...
quote:

> HI,
> This particular question many of them would have answered, but am not able

to get the right answer for this, request you to please advise me on this.
quote:

> Scenario:
> Full backup --> 12:00 noon
> Differential Backup --> 14:00
> Transaction log backup 1--> 14:30
> Transaction log backup 2 --> 15:00
> If the system crashes at 15:15, To restore the db, i'll apply the

fullbackup, diffrential backup and the last two transaction log backup,
which means I'll be able to restore the db till 15:00. Now my question is,
since the system crashed at 15:15, will I be able to restore the data for
the duration of 15 minutes (15:00 to 15:15) also?
quote:

> Thanks in advance
> Yog

Backup and Restore

HI,
This particular question many of them would have answered, but am not able to get the right answer for this, request you to please advise me on this
Scenario
Full backup --> 12:00 noo
Differential Backup --> 14:00
Transaction log backup 1--> 14:3
Transaction log backup 2 --> 15:0
If the system crashes at 15:15, To restore the db, i'll apply the fullbackup, diffrential backup and the last two transaction log backup, which means I'll be able to restore the db till 15:00. Now my question is, since the system crashed at 15:15, will I be able to restore the data for the duration of 15 minutes (15:00 to 15:15) also?
Thanks in advanc
YogYog wrote:
> Scenario:
> Full backup --> 12:00 noon
> Differential Backup --> 14:00
> Transaction log backup 1--> 14:30
> Transaction log backup 2 --> 15:00
> If the system crashes at 15:15, To restore the db, i'll apply the
> fullbackup, diffrential backup and the last two transaction log
> backup, which means I'll be able to restore the db till 15:00. Now my
> question is, since the system crashed at 15:15, will I be able to
> restore the data for the duration of 15 minutes (15:00 to 15:15)
> also?
if the backup file is OK after system crash, you just backup it before
restoring anything and then restore as mentioned and then restore that log
backup
hope this is clear enough
regards
Zarko|||Hi Zarko,
Thanks for the response. You mean to say if Transaction log is OK, then I can back it up and then restore the way I have mentioned, right? I agree with you..
But what if the whole system crashes (no access to the active files) and I had taken the full backup, differential backup and transaction log backup on different machine, then would I be able to restore the last 15 mins of data? Am asking this because, few of my friends claim that this is possible and I wanted to know, how...
Thanks agai
Yog|||You should place the
1. log away from data
2. data away from master data
3. mirror the log
This sets you up in a situation where the database data can disappear, yet
you can still do a special log backup ( even when the database data is
gone.) The syntax is backup log prod to disk = ... with no_truncate...
This special log backup will have all of the changes since 15:00 in your
scenario....
In a situation when the whole server crashes, your risk of data loss is the
time between log backups, ...
--
Wayne Snyder, MCDBA, SQL Server MVP
Computer Education Services Corporation (CESC), Charlotte, NC
www.computeredservices.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Yog" <anonymous@.discussions.microsoft.com> wrote in message
news:74CC2E51-2951-4186-B638-89BC36414962@.microsoft.com...
> HI,
> This particular question many of them would have answered, but am not able
to get the right answer for this, request you to please advise me on this.
> Scenario:
> Full backup --> 12:00 noon
> Differential Backup --> 14:00
> Transaction log backup 1--> 14:30
> Transaction log backup 2 --> 15:00
> If the system crashes at 15:15, To restore the db, i'll apply the
fullbackup, diffrential backup and the last two transaction log backup,
which means I'll be able to restore the db till 15:00. Now my question is,
since the system crashed at 15:15, will I be able to restore the data for
the duration of 15 minutes (15:00 to 15:15) also?
> Thanks in advance
> Yog

Thursday, February 16, 2012

Backup

Is it possible to take backup of database for 1 day change?
also possible to restore it back for the particular date?
for example..
In one month data of database I want to take a backup for changes in 13 of
the month.
if required restore it back.
WM_QUIT
RLNI'm not sure what you want to accomplish. Are you saying that you want to re
store the database as it
were at a certain point in time? If so, then you need to look into doing tra
nsaction log backups, as
they give you the ability to perform point-in-time restore.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"RLN" <RLN@.discussions.microsoft.com> wrote in message
news:77A5FB86-2765-4036-AA4A-4BA93CA767CB@.microsoft.com...
> Is it possible to take backup of database for 1 day change?
> also possible to restore it back for the particular date?
> for example..
> In one month data of database I want to take a backup for changes in 13 o
f
> the month.
> if required restore it back.
>
> --
> WM_QUIT
> RLN

Tuesday, February 14, 2012

Backup

Is it possible to take backup of database for 1 day change?
also possible to restore it back for the particular date?
for example..
In one month data of database I want to take a backup for changes in 13 of
the month.
if required restore it back.
WM_QUIT
RLN
I'm not sure what you want to accomplish. Are you saying that you want to restore the database as it
were at a certain point in time? If so, then you need to look into doing transaction log backups, as
they give you the ability to perform point-in-time restore.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"RLN" <RLN@.discussions.microsoft.com> wrote in message
news:77A5FB86-2765-4036-AA4A-4BA93CA767CB@.microsoft.com...
> Is it possible to take backup of database for 1 day change?
> also possible to restore it back for the particular date?
> for example..
> In one month data of database I want to take a backup for changes in 13 of
> the month.
> if required restore it back.
>
> --
> WM_QUIT
> RLN

Backup

Is it possible to take backup of database for 1 day change?
also possible to restore it back for the particular date?
for example..
In one month data of database I want to take a backup for changes in 13 of
the month.
if required restore it back.
WM_QUIT
RLN
Not as a backup. You would have to write something to extract the data you
want.
Andrew J. Kelly SQL MVP
"RLN" <RLN@.discussions.microsoft.com> wrote in message
news:9BD84D1A-ACC2-4680-BEE2-A41EC04E67B2@.microsoft.com...
> Is it possible to take backup of database for 1 day change?
> also possible to restore it back for the particular date?
> for example..
> In one month data of database I want to take a backup for changes in 13
> of
> the month.
> if required restore it back.
>
> --
> WM_QUIT
> RLN

Backup

Is it possible to take backup of database for 1 day change?
also possible to restore it back for the particular date?
for example..
In one month data of database I want to take a backup for changes in 13 of
the month.
if required restore it back.
--
WM_QUIT
RLNI'm not sure what you want to accomplish. Are you saying that you want to restore the database as it
were at a certain point in time? If so, then you need to look into doing transaction log backups, as
they give you the ability to perform point-in-time restore.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"RLN" <RLN@.discussions.microsoft.com> wrote in message
news:77A5FB86-2765-4036-AA4A-4BA93CA767CB@.microsoft.com...
> Is it possible to take backup of database for 1 day change?
> also possible to restore it back for the particular date?
> for example..
> In one month data of database I want to take a backup for changes in 13 of
> the month.
> if required restore it back.
>
> --
> WM_QUIT
> RLN