Showing posts with label time. Show all posts
Showing posts with label time. Show all posts

Friday, March 30, 2012

Recovery of Database 'xxx' (Complete in 68,395 more seconds)

I'm having a problem with a SQL Server. Every time I stop and restart the
SQL Server service I get a message similar to this one. What do I have to
do to force checkpoints during the load process? ThanksP.S. - The message is coming up in the Application Event Log during the
recovery process after I start the server. I found a quote on the MS
Website stating I "may need to 'Troubleshoot the Recovery Process'", but I
can't find anything more specific than that. Can someone point me in the
right direction? Thanks
"Michael C#" <xyz@.yomomma.com> wrote in message
news:%23G$j92yKFHA.2284@.TK2MSFTNGP10.phx.gbl...
> I'm having a problem with a SQL Server. Every time I stop and restart the
> SQL Server service I get a message similar to this one. What do I have to
> do to force checkpoints during the load process? Thanks
>|||How is the data being loaded?
--
Simon Worth
Michael C# wrote:
> I'm having a problem with a SQL Server. Every time I stop and restart the
> SQL Server service I get a message similar to this one. What do I have to
> do to force checkpoints during the load process? Thanks
>|||On this particular box they're using Bulk Insert.
"Simon Worth" <REMOVEFIRST_simon.worth@.gmail.com> wrote in message
news:%23e3nP%23yKFHA.1284@.TK2MSFTNGP14.phx.gbl...
> How is the data being loaded?
> --
> Simon Worth
> Michael C# wrote:
>> I'm having a problem with a SQL Server. Every time I stop and restart
>> the SQL Server service I get a message similar to this one. What do I
>> have to do to force checkpoints during the load process? Thanks|||What is the relation between the load and stopping SQL Server? Also, have you change the recovery
interval setting with sp_configure?
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Michael C#" <xyz@.yomomma.com> wrote in message news:ON8LT$yKFHA.1600@.TK2MSFTNGP10.phx.gbl...
> On this particular box they're using Bulk Insert.
> "Simon Worth" <REMOVEFIRST_simon.worth@.gmail.com> wrote in message
> news:%23e3nP%23yKFHA.1284@.TK2MSFTNGP14.phx.gbl...
>> How is the data being loaded?
>> --
>> Simon Worth
>> Michael C# wrote:
>> I'm having a problem with a SQL Server. Every time I stop and restart the SQL Server service I
>> get a message similar to this one. What do I have to do to force checkpoints during the load
>> process? Thanks
>|||Today was the first time we've stopped this SQL Server since we started
loading it. The load was completed. No, I haven't changed the recovery
interval; I'll take a look at it today. What setting would you recommend?
Thanks
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:%23IUlVr4KFHA.4032@.TK2MSFTNGP14.phx.gbl...
> What is the relation between the load and stopping SQL Server? Also, have
> you change the recovery interval setting with sp_configure?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Michael C#" <xyz@.yomomma.com> wrote in message
> news:ON8LT$yKFHA.1600@.TK2MSFTNGP10.phx.gbl...
>> On this particular box they're using Bulk Insert.
>> "Simon Worth" <REMOVEFIRST_simon.worth@.gmail.com> wrote in message
>> news:%23e3nP%23yKFHA.1284@.TK2MSFTNGP14.phx.gbl...
>> How is the data being loaded?
>> --
>> Simon Worth
>> Michael C# wrote:
>> I'm having a problem with a SQL Server. Every time I stop and restart
>> the SQL Server service I get a message similar to this one. What do I
>> have to do to force checkpoints during the load process? Thanks
>>
>

Recovery of Database 'xxx' (Complete in 68,395 more seconds)

I'm having a problem with a SQL Server. Every time I stop and restart the
SQL Server service I get a message similar to this one. What do I have to
do to force checkpoints during the load process? Thanks
P.S. - The message is coming up in the Application Event Log during the
recovery process after I start the server. I found a quote on the MS
Website stating I "may need to 'Troubleshoot the Recovery Process'", but I
can't find anything more specific than that. Can someone point me in the
right direction? Thanks
"Michael C#" <xyz@.yomomma.com> wrote in message
news:%23G$j92yKFHA.2284@.TK2MSFTNGP10.phx.gbl...
> I'm having a problem with a SQL Server. Every time I stop and restart the
> SQL Server service I get a message similar to this one. What do I have to
> do to force checkpoints during the load process? Thanks
>
|||How is the data being loaded?
Simon Worth
Michael C# wrote:
> I'm having a problem with a SQL Server. Every time I stop and restart the
> SQL Server service I get a message similar to this one. What do I have to
> do to force checkpoints during the load process? Thanks
>
|||On this particular box they're using Bulk Insert.
"Simon Worth" <REMOVEFIRST_simon.worth@.gmail.com> wrote in message
news:%23e3nP%23yKFHA.1284@.TK2MSFTNGP14.phx.gbl...[vbcol=seagreen]
> How is the data being loaded?
> --
> Simon Worth
> Michael C# wrote:
|||What is the relation between the load and stopping SQL Server? Also, have you change the recovery
interval setting with sp_configure?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Michael C#" <xyz@.yomomma.com> wrote in message news:ON8LT$yKFHA.1600@.TK2MSFTNGP10.phx.gbl...
> On this particular box they're using Bulk Insert.
> "Simon Worth" <REMOVEFIRST_simon.worth@.gmail.com> wrote in message
> news:%23e3nP%23yKFHA.1284@.TK2MSFTNGP14.phx.gbl...
>
|||Today was the first time we've stopped this SQL Server since we started
loading it. The load was completed. No, I haven't changed the recovery
interval; I'll take a look at it today. What setting would you recommend?
Thanks
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:%23IUlVr4KFHA.4032@.TK2MSFTNGP14.phx.gbl...
> What is the relation between the load and stopping SQL Server? Also, have
> you change the recovery interval setting with sp_configure?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Michael C#" <xyz@.yomomma.com> wrote in message
> news:ON8LT$yKFHA.1600@.TK2MSFTNGP10.phx.gbl...
>
sql

Recovery of Database 'xxx' (Complete in 68,395 more seconds)

I'm having a problem with a SQL Server. Every time I stop and restart the
SQL Server service I get a message similar to this one. What do I have to
do to force checkpoints during the load process? ThanksP.S. - The message is coming up in the Application Event Log during the
recovery process after I start the server. I found a quote on the MS
Website stating I "may need to 'Troubleshoot the Recovery Process'", but I
can't find anything more specific than that. Can someone point me in the
right direction? Thanks
"Michael C#" <xyz@.yomomma.com> wrote in message
news:%23G$j92yKFHA.2284@.TK2MSFTNGP10.phx.gbl...
> I'm having a problem with a SQL Server. Every time I stop and restart the
> SQL Server service I get a message similar to this one. What do I have to
> do to force checkpoints during the load process? Thanks
>|||How is the data being loaded?
Simon Worth
Michael C# wrote:
> I'm having a problem with a SQL Server. Every time I stop and restart the
> SQL Server service I get a message similar to this one. What do I have to
> do to force checkpoints during the load process? Thanks
>|||On this particular box they're using Bulk Insert.
"Simon Worth" <REMOVEFIRST_simon.worth@.gmail.com> wrote in message
news:%23e3nP%23yKFHA.1284@.TK2MSFTNGP14.phx.gbl...[vbcol=seagreen]
> How is the data being loaded?
> --
> Simon Worth
> Michael C# wrote:|||What is the relation between the load and stopping SQL Server? Also, have yo
u change the recovery
interval setting with sp_configure?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Michael C#" <xyz@.yomomma.com> wrote in message news:ON8LT$yKFHA.1600@.TK2MSFTNGP10.phx.gbl..
.
> On this particular box they're using Bulk Insert.
> "Simon Worth" <REMOVEFIRST_simon.worth@.gmail.com> wrote in message
> news:%23e3nP%23yKFHA.1284@.TK2MSFTNGP14.phx.gbl...
>|||Today was the first time we've stopped this SQL Server since we started
loading it. The load was completed. No, I haven't changed the recovery
interval; I'll take a look at it today. What setting would you recommend?
Thanks
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:%23IUlVr4KFHA.4032@.TK2MSFTNGP14.phx.gbl...
> What is the relation between the load and stopping SQL Server? Also, have
> you change the recovery interval setting with sp_configure?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Michael C#" <xyz@.yomomma.com> wrote in message
> news:ON8LT$yKFHA.1600@.TK2MSFTNGP10.phx.gbl...
>

Wednesday, March 21, 2012

Recovering Database

I am doing a point in time recover of a database. I point to the backup and
trans logs and begin the recovery. It says (Loading database) and it
starts.. It goes through the backup then applies all the translogs. When
it gets to the end it says, DATABASE RESTORE HAS COMPLETED SUCCESSFULLY. But
when I go to the database, it is still at a status of LOADING. How do I
bring the database online? Thanks
Jason Greene
Hi Jason
You may not have requested that SQL Server run the recovery process after
the last log was loaded in.
From the Query Analyzer, try:
RESTORE DATABASE <name of db> WITH RECOVERY
(Note that you don't need to specify any backup files, as these have already
been loaded. The WITH RECOVERY is the important part.)
HTH
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
>I am doing a point in time recover of a database. I point to the backup
>and
> trans logs and begin the recovery. It says (Loading database) and it
> starts.. It goes through the backup then applies all the translogs.
> When
> it gets to the end it says, DATABASE RESTORE HAS COMPLETED SUCCESSFULLY.
> But
> when I go to the database, it is still at a status of LOADING. How do I
> bring the database online? Thanks
> Jason Greene
>
|||I will try that now and let you know.. Thanks
"Kalen Delaney" wrote:

> Hi Jason
> You may not have requested that SQL Server run the recovery process after
> the last log was loaded in.
> From the Query Analyzer, try:
> RESTORE DATABASE <name of db> WITH RECOVERY
> (Note that you don't need to specify any backup files, as these have already
> been loaded. The WITH RECOVERY is the important part.)
> --
> HTH
> --
> Kalen Delaney
> SQL Server MVP
> www.SolidQualityLearning.com
>
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
>
>
|||Thanks for the fast response.. Also, I have another posting with a
question.. I was wondering if you had any insite on it..
I had a hardware crash where my Datafile got corrupted but my Logfile was on
another array of disks so it was fine. Every two hours, I do a backup of my
Transaction Log. When my hardware crashed, it had be awhile since the last
Transaction log backup. Can I do a restore to a point it time. I can not
backup my current logfile because it has to be attached to a datafile an
online in order to be backed up. I tried to restore an old COLD backup of my
datafile and attach the logfile to it to try to back it up and that did not
work.. Any help would be appreciated. I need to recover to the point of
hardware failure..
"Kalen Delaney" wrote:

> Hi Jason
> You may not have requested that SQL Server run the recovery process after
> the last log was loaded in.
> From the Query Analyzer, try:
> RESTORE DATABASE <name of db> WITH RECOVERY
> (Note that you don't need to specify any backup files, as these have already
> been loaded. The WITH RECOVERY is the important part.)
> --
> HTH
> --
> Kalen Delaney
> SQL Server MVP
> www.SolidQualityLearning.com
>
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
>
>
|||Answered in your post "Point in Time Recovery" in this group.
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
news:50564A61-1266-412E-846E-F7376C511708@.microsoft.com...[vbcol=seagreen]
> Thanks for the fast response.. Also, I have another posting with a
> question.. I was wondering if you had any insite on it..
> I had a hardware crash where my Datafile got corrupted but my Logfile was
> on
> another array of disks so it was fine. Every two hours, I do a backup of
> my
> Transaction Log. When my hardware crashed, it had be awhile since the
> last
> Transaction log backup. Can I do a restore to a point it time. I can not
> backup my current logfile because it has to be attached to a datafile an
> online in order to be backed up. I tried to restore an old COLD backup of
> my
> datafile and attach the logfile to it to try to back it up and that did
> not
> work.. Any help would be appreciated. I need to recover to the point of
> hardware failure..
>
>
> "Kalen Delaney" wrote:
|||When I issue that command I get the following error.
Server: Msg 3101, Level 16, State 2, Line 1
Exclusive access could not be obtained because the database is in use.
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
"Kalen Delaney" wrote:

> Hi Jason
> You may not have requested that SQL Server run the recovery process after
> the last log was loaded in.
> From the Query Analyzer, try:
> RESTORE DATABASE <name of db> WITH RECOVERY
> (Note that you don't need to specify any backup files, as these have already
> been loaded. The WITH RECOVERY is the important part.)
> --
> HTH
> --
> Kalen Delaney
> SQL Server MVP
> www.SolidQualityLearning.com
>
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
>
>
|||Hi
There is another connection using the DB, put it into single user mode
(Right click on it and select properties)
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
news:5D6388E6-A38F-4C5F-A715-6433A0A43588@.microsoft.com...[vbcol=seagreen]
> When I issue that command I get the following error.
>
> Server: Msg 3101, Level 16, State 2, Line 1
> Exclusive access could not be obtained because the database is in use.
> Server: Msg 3013, Level 16, State 1, Line 1
> RESTORE DATABASE is terminating abnormally.
> "Kalen Delaney" wrote:
|||That did it.. Thanks.. Now I got my database back to the last good Translog
that was backed up.. Now I am going to try to see if I can use the Online
Translog that was part of the database when it crashed to see if I can
restore to the point of failure..
"Mike Epprecht (SQL MVP)" wrote:

> Hi
> There is another connection using the DB, put it into single user mode
> (Right click on it and select properties)
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:5D6388E6-A38F-4C5F-A715-6433A0A43588@.microsoft.com...
>
>
|||Hi
No, the transaction log is no good to you as the sequences do not agree
anymore between the log and the DB.
Kiss that data good bye.
The fast that your drive crashed and it took your DB's along with it, how
about getting some RAID?
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
news:3B80AE01-78FA-4D68-BD58-96BDDC08D97F@.microsoft.com...[vbcol=seagreen]
> That did it.. Thanks.. Now I got my database back to the last good
> Translog
> that was backed up.. Now I am going to try to see if I can use the Online
> Translog that was part of the database when it crashed to see if I can
> restore to the point of failure..
>
> "Mike Epprecht (SQL MVP)" wrote:
|||It is raid 5 double parity. The entire array died.. All drives at the same
time. I think it was electrical.
On the original note.. I got an old copy of my database .mdf file and
logfile .ldf file. I mounted this database and brought it only. Then I took
the database offline, then swithed the logfile of the old one with the good
current one. Then I restarted the computer.. When it came online, it
brought the database online as Suspect.. Old datafile, current logfile. I
then issued a Backup Logfile command and it backed it up. I then used that
logfile backup to restore the database to the time the database crashed..
"Mike Epprecht (SQL MVP)" wrote:

> Hi
> No, the transaction log is no good to you as the sequences do not agree
> anymore between the log and the DB.
> Kiss that data good bye.
> The fast that your drive crashed and it took your DB's along with it, how
> about getting some RAID?
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:3B80AE01-78FA-4D68-BD58-96BDDC08D97F@.microsoft.com...
>
>

Recovering Database

I am doing a point in time recover of a database. I point to the backup and
trans logs and begin the recovery. It says (Loading database) and it
starts.. It goes through the backup then applies all the translogs. When
it gets to the end it says, DATABASE RESTORE HAS COMPLETED SUCCESSFULLY. Bu
t
when I go to the database, it is still at a status of LOADING. How do I
bring the database online? Thanks
Jason GreeneHi Jason
You may not have requested that SQL Server run the recovery process after
the last log was loaded in.
From the Query Analyzer, try:
RESTORE DATABASE <name of db> WITH RECOVERY
(Note that you don't need to specify any backup files, as these have already
been loaded. The WITH RECOVERY is the important part.)
--
HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
>I am doing a point in time recover of a database. I point to the backup
>and
> trans logs and begin the recovery. It says (Loading database) and it
> starts.. It goes through the backup then applies all the translogs.
> When
> it gets to the end it says, DATABASE RESTORE HAS COMPLETED SUCCESSFULLY.
> But
> when I go to the database, it is still at a status of LOADING. How do I
> bring the database online? Thanks
> Jason Greene
>|||I will try that now and let you know.. Thanks
"Kalen Delaney" wrote:

> Hi Jason
> You may not have requested that SQL Server run the recovery process after
> the last log was loaded in.
> From the Query Analyzer, try:
> RESTORE DATABASE <name of db> WITH RECOVERY
> (Note that you don't need to specify any backup files, as these have alrea
dy
> been loaded. The WITH RECOVERY is the important part.)
> --
> HTH
> --
> Kalen Delaney
> SQL Server MVP
> www.SolidQualityLearning.com
>
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
>
>|||Thanks for the fast response.. Also, I have another posting with a
question.. I was wondering if you had any insite on it..
I had a hardware crash where my Datafile got corrupted but my Logfile was on
another array of disks so it was fine. Every two hours, I do a backup of my
Transaction Log. When my hardware crashed, it had be awhile since the last
Transaction log backup. Can I do a restore to a point it time. I can not
backup my current logfile because it has to be attached to a datafile an
online in order to be backed up. I tried to restore an old COLD backup of m
y
datafile and attach the logfile to it to try to back it up and that did not
work.. Any help would be appreciated. I need to recover to the point of
hardware failure..
"Kalen Delaney" wrote:

> Hi Jason
> You may not have requested that SQL Server run the recovery process after
> the last log was loaded in.
> From the Query Analyzer, try:
> RESTORE DATABASE <name of db> WITH RECOVERY
> (Note that you don't need to specify any backup files, as these have alrea
dy
> been loaded. The WITH RECOVERY is the important part.)
> --
> HTH
> --
> Kalen Delaney
> SQL Server MVP
> www.SolidQualityLearning.com
>
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
>
>|||Answered in your post "Point in Time Recovery" in this group.
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
news:50564A61-1266-412E-846E-F7376C511708@.microsoft.com...[vbcol=seagreen]
> Thanks for the fast response.. Also, I have another posting with a
> question.. I was wondering if you had any insite on it..
> I had a hardware crash where my Datafile got corrupted but my Logfile was
> on
> another array of disks so it was fine. Every two hours, I do a backup of
> my
> Transaction Log. When my hardware crashed, it had be awhile since the
> last
> Transaction log backup. Can I do a restore to a point it time. I can not
> backup my current logfile because it has to be attached to a datafile an
> online in order to be backed up. I tried to restore an old COLD backup of
> my
> datafile and attach the logfile to it to try to back it up and that did
> not
> work.. Any help would be appreciated. I need to recover to the point of
> hardware failure..
>
>
> "Kalen Delaney" wrote:
>|||When I issue that command I get the following error.
Server: Msg 3101, Level 16, State 2, Line 1
Exclusive access could not be obtained because the database is in use.
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
"Kalen Delaney" wrote:

> Hi Jason
> You may not have requested that SQL Server run the recovery process after
> the last log was loaded in.
> From the Query Analyzer, try:
> RESTORE DATABASE <name of db> WITH RECOVERY
> (Note that you don't need to specify any backup files, as these have alrea
dy
> been loaded. The WITH RECOVERY is the important part.)
> --
> HTH
> --
> Kalen Delaney
> SQL Server MVP
> www.SolidQualityLearning.com
>
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
>
>|||Hi
There is another connection using the DB, put it into single user mode
(Right click on it and select properties)
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
news:5D6388E6-A38F-4C5F-A715-6433A0A43588@.microsoft.com...[vbcol=seagreen]
> When I issue that command I get the following error.
>
> Server: Msg 3101, Level 16, State 2, Line 1
> Exclusive access could not be obtained because the database is in use.
> Server: Msg 3013, Level 16, State 1, Line 1
> RESTORE DATABASE is terminating abnormally.
> "Kalen Delaney" wrote:
>|||That did it.. Thanks.. Now I got my database back to the last good Translog
that was backed up.. Now I am going to try to see if I can use the Online
Translog that was part of the database when it crashed to see if I can
restore to the point of failure..
"Mike Epprecht (SQL MVP)" wrote:

> Hi
> There is another connection using the DB, put it into single user mode
> (Right click on it and select properties)
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:5D6388E6-A38F-4C5F-A715-6433A0A43588@.microsoft.com...
>
>|||Hi
No, the transaction log is no good to you as the sequences do not agree
anymore between the log and the DB.
Kiss that data good bye.
The fast that your drive crashed and it took your DB's along with it, how
about getting some RAID?
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
news:3B80AE01-78FA-4D68-BD58-96BDDC08D97F@.microsoft.com...[vbcol=seagreen]
> That did it.. Thanks.. Now I got my database back to the last good
> Translog
> that was backed up.. Now I am going to try to see if I can use the Online
> Translog that was part of the database when it crashed to see if I can
> restore to the point of failure..
>
> "Mike Epprecht (SQL MVP)" wrote:
>|||It is raid 5 double parity. The entire array died.. All drives at the sam
e
time. I think it was electrical.
On the original note.. I got an old copy of my database .mdf file and
logfile .ldf file. I mounted this database and brought it only. Then I too
k
the database offline, then swithed the logfile of the old one with the good
current one. Then I restarted the computer.. When it came online, it
brought the database online as Suspect.. Old datafile, current logfile. I
then issued a Backup Logfile command and it backed it up. I then used that
logfile backup to restore the database to the time the database crashed..
"Mike Epprecht (SQL MVP)" wrote:

> Hi
> No, the transaction log is no good to you as the sequences do not agree
> anymore between the log and the DB.
> Kiss that data good bye.
> The fast that your drive crashed and it took your DB's along with it, how
> about getting some RAID?
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:3B80AE01-78FA-4D68-BD58-96BDDC08D97F@.microsoft.com...
>
>

Recovering Database

I am doing a point in time recover of a database. I point to the backup and
trans logs and begin the recovery. It says (Loading database) and it
starts.. It goes through the backup then applies all the translogs. When
it gets to the end it says, DATABASE RESTORE HAS COMPLETED SUCCESSFULLY. But
when I go to the database, it is still at a status of LOADING. How do I
bring the database online? Thanks
Jason GreeneHi Jason
You may not have requested that SQL Server run the recovery process after
the last log was loaded in.
From the Query Analyzer, try:
RESTORE DATABASE <name of db> WITH RECOVERY
(Note that you don't need to specify any backup files, as these have already
been loaded. The WITH RECOVERY is the important part.)
--
HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
>I am doing a point in time recover of a database. I point to the backup
>and
> trans logs and begin the recovery. It says (Loading database) and it
> starts.. It goes through the backup then applies all the translogs.
> When
> it gets to the end it says, DATABASE RESTORE HAS COMPLETED SUCCESSFULLY.
> But
> when I go to the database, it is still at a status of LOADING. How do I
> bring the database online? Thanks
> Jason Greene
>|||I will try that now and let you know.. Thanks
"Kalen Delaney" wrote:
> Hi Jason
> You may not have requested that SQL Server run the recovery process after
> the last log was loaded in.
> From the Query Analyzer, try:
> RESTORE DATABASE <name of db> WITH RECOVERY
> (Note that you don't need to specify any backup files, as these have already
> been loaded. The WITH RECOVERY is the important part.)
> --
> HTH
> --
> Kalen Delaney
> SQL Server MVP
> www.SolidQualityLearning.com
>
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
> >I am doing a point in time recover of a database. I point to the backup
> >and
> > trans logs and begin the recovery. It says (Loading database) and it
> > starts.. It goes through the backup then applies all the translogs.
> > When
> > it gets to the end it says, DATABASE RESTORE HAS COMPLETED SUCCESSFULLY.
> > But
> > when I go to the database, it is still at a status of LOADING. How do I
> > bring the database online? Thanks
> > Jason Greene
> >
>
>|||Thanks for the fast response.. Also, I have another posting with a
question.. I was wondering if you had any insite on it..
I had a hardware crash where my Datafile got corrupted but my Logfile was on
another array of disks so it was fine. Every two hours, I do a backup of my
Transaction Log. When my hardware crashed, it had be awhile since the last
Transaction log backup. Can I do a restore to a point it time. I can not
backup my current logfile because it has to be attached to a datafile an
online in order to be backed up. I tried to restore an old COLD backup of my
datafile and attach the logfile to it to try to back it up and that did not
work.. Any help would be appreciated. I need to recover to the point of
hardware failure..
"Kalen Delaney" wrote:
> Hi Jason
> You may not have requested that SQL Server run the recovery process after
> the last log was loaded in.
> From the Query Analyzer, try:
> RESTORE DATABASE <name of db> WITH RECOVERY
> (Note that you don't need to specify any backup files, as these have already
> been loaded. The WITH RECOVERY is the important part.)
> --
> HTH
> --
> Kalen Delaney
> SQL Server MVP
> www.SolidQualityLearning.com
>
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
> >I am doing a point in time recover of a database. I point to the backup
> >and
> > trans logs and begin the recovery. It says (Loading database) and it
> > starts.. It goes through the backup then applies all the translogs.
> > When
> > it gets to the end it says, DATABASE RESTORE HAS COMPLETED SUCCESSFULLY.
> > But
> > when I go to the database, it is still at a status of LOADING. How do I
> > bring the database online? Thanks
> > Jason Greene
> >
>
>|||Answered in your post "Point in Time Recovery" in this group.
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
news:50564A61-1266-412E-846E-F7376C511708@.microsoft.com...
> Thanks for the fast response.. Also, I have another posting with a
> question.. I was wondering if you had any insite on it..
> I had a hardware crash where my Datafile got corrupted but my Logfile was
> on
> another array of disks so it was fine. Every two hours, I do a backup of
> my
> Transaction Log. When my hardware crashed, it had be awhile since the
> last
> Transaction log backup. Can I do a restore to a point it time. I can not
> backup my current logfile because it has to be attached to a datafile an
> online in order to be backed up. I tried to restore an old COLD backup of
> my
> datafile and attach the logfile to it to try to back it up and that did
> not
> work.. Any help would be appreciated. I need to recover to the point of
> hardware failure..
>
>
> "Kalen Delaney" wrote:
>> Hi Jason
>> You may not have requested that SQL Server run the recovery process after
>> the last log was loaded in.
>> From the Query Analyzer, try:
>> RESTORE DATABASE <name of db> WITH RECOVERY
>> (Note that you don't need to specify any backup files, as these have
>> already
>> been loaded. The WITH RECOVERY is the important part.)
>> --
>> HTH
>> --
>> Kalen Delaney
>> SQL Server MVP
>> www.SolidQualityLearning.com
>>
>> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
>> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
>> >I am doing a point in time recover of a database. I point to the backup
>> >and
>> > trans logs and begin the recovery. It says (Loading database) and it
>> > starts.. It goes through the backup then applies all the translogs.
>> > When
>> > it gets to the end it says, DATABASE RESTORE HAS COMPLETED
>> > SUCCESSFULLY.
>> > But
>> > when I go to the database, it is still at a status of LOADING. How do
>> > I
>> > bring the database online? Thanks
>> > Jason Greene
>> >
>>|||When I issue that command I get the following error.
Server: Msg 3101, Level 16, State 2, Line 1
Exclusive access could not be obtained because the database is in use.
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
"Kalen Delaney" wrote:
> Hi Jason
> You may not have requested that SQL Server run the recovery process after
> the last log was loaded in.
> From the Query Analyzer, try:
> RESTORE DATABASE <name of db> WITH RECOVERY
> (Note that you don't need to specify any backup files, as these have already
> been loaded. The WITH RECOVERY is the important part.)
> --
> HTH
> --
> Kalen Delaney
> SQL Server MVP
> www.SolidQualityLearning.com
>
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
> >I am doing a point in time recover of a database. I point to the backup
> >and
> > trans logs and begin the recovery. It says (Loading database) and it
> > starts.. It goes through the backup then applies all the translogs.
> > When
> > it gets to the end it says, DATABASE RESTORE HAS COMPLETED SUCCESSFULLY.
> > But
> > when I go to the database, it is still at a status of LOADING. How do I
> > bring the database online? Thanks
> > Jason Greene
> >
>
>|||Hi
There is another connection using the DB, put it into single user mode
(Right click on it and select properties)
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
news:5D6388E6-A38F-4C5F-A715-6433A0A43588@.microsoft.com...
> When I issue that command I get the following error.
>
> Server: Msg 3101, Level 16, State 2, Line 1
> Exclusive access could not be obtained because the database is in use.
> Server: Msg 3013, Level 16, State 1, Line 1
> RESTORE DATABASE is terminating abnormally.
> "Kalen Delaney" wrote:
>> Hi Jason
>> You may not have requested that SQL Server run the recovery process after
>> the last log was loaded in.
>> From the Query Analyzer, try:
>> RESTORE DATABASE <name of db> WITH RECOVERY
>> (Note that you don't need to specify any backup files, as these have
>> already
>> been loaded. The WITH RECOVERY is the important part.)
>> --
>> HTH
>> --
>> Kalen Delaney
>> SQL Server MVP
>> www.SolidQualityLearning.com
>>
>> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
>> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
>> >I am doing a point in time recover of a database. I point to the backup
>> >and
>> > trans logs and begin the recovery. It says (Loading database) and it
>> > starts.. It goes through the backup then applies all the translogs.
>> > When
>> > it gets to the end it says, DATABASE RESTORE HAS COMPLETED
>> > SUCCESSFULLY.
>> > But
>> > when I go to the database, it is still at a status of LOADING. How do
>> > I
>> > bring the database online? Thanks
>> > Jason Greene
>> >
>>|||That did it.. Thanks.. Now I got my database back to the last good Translog
that was backed up.. Now I am going to try to see if I can use the Online
Translog that was part of the database when it crashed to see if I can
restore to the point of failure..
"Mike Epprecht (SQL MVP)" wrote:
> Hi
> There is another connection using the DB, put it into single user mode
> (Right click on it and select properties)
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:5D6388E6-A38F-4C5F-A715-6433A0A43588@.microsoft.com...
> > When I issue that command I get the following error.
> >
> >
> > Server: Msg 3101, Level 16, State 2, Line 1
> > Exclusive access could not be obtained because the database is in use.
> > Server: Msg 3013, Level 16, State 1, Line 1
> > RESTORE DATABASE is terminating abnormally.
> >
> > "Kalen Delaney" wrote:
> >
> >> Hi Jason
> >>
> >> You may not have requested that SQL Server run the recovery process after
> >> the last log was loaded in.
> >> From the Query Analyzer, try:
> >>
> >> RESTORE DATABASE <name of db> WITH RECOVERY
> >>
> >> (Note that you don't need to specify any backup files, as these have
> >> already
> >> been loaded. The WITH RECOVERY is the important part.)
> >> --
> >> HTH
> >> --
> >> Kalen Delaney
> >> SQL Server MVP
> >> www.SolidQualityLearning.com
> >>
> >>
> >> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> >> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
> >> >I am doing a point in time recover of a database. I point to the backup
> >> >and
> >> > trans logs and begin the recovery. It says (Loading database) and it
> >> > starts.. It goes through the backup then applies all the translogs.
> >> > When
> >> > it gets to the end it says, DATABASE RESTORE HAS COMPLETED
> >> > SUCCESSFULLY.
> >> > But
> >> > when I go to the database, it is still at a status of LOADING. How do
> >> > I
> >> > bring the database online? Thanks
> >> > Jason Greene
> >> >
> >>
> >>
> >>
>
>|||Hi
No, the transaction log is no good to you as the sequences do not agree
anymore between the log and the DB.
Kiss that data good bye.
The fast that your drive crashed and it took your DB's along with it, how
about getting some RAID?
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
news:3B80AE01-78FA-4D68-BD58-96BDDC08D97F@.microsoft.com...
> That did it.. Thanks.. Now I got my database back to the last good
> Translog
> that was backed up.. Now I am going to try to see if I can use the Online
> Translog that was part of the database when it crashed to see if I can
> restore to the point of failure..
>
> "Mike Epprecht (SQL MVP)" wrote:
>> Hi
>> There is another connection using the DB, put it into single user mode
>> (Right click on it and select properties)
>> Regards
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
>> news:5D6388E6-A38F-4C5F-A715-6433A0A43588@.microsoft.com...
>> > When I issue that command I get the following error.
>> >
>> >
>> > Server: Msg 3101, Level 16, State 2, Line 1
>> > Exclusive access could not be obtained because the database is in use.
>> > Server: Msg 3013, Level 16, State 1, Line 1
>> > RESTORE DATABASE is terminating abnormally.
>> >
>> > "Kalen Delaney" wrote:
>> >
>> >> Hi Jason
>> >>
>> >> You may not have requested that SQL Server run the recovery process
>> >> after
>> >> the last log was loaded in.
>> >> From the Query Analyzer, try:
>> >>
>> >> RESTORE DATABASE <name of db> WITH RECOVERY
>> >>
>> >> (Note that you don't need to specify any backup files, as these have
>> >> already
>> >> been loaded. The WITH RECOVERY is the important part.)
>> >> --
>> >> HTH
>> >> --
>> >> Kalen Delaney
>> >> SQL Server MVP
>> >> www.SolidQualityLearning.com
>> >>
>> >>
>> >> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in
>> >> message
>> >> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
>> >> >I am doing a point in time recover of a database. I point to the
>> >> >backup
>> >> >and
>> >> > trans logs and begin the recovery. It says (Loading database) and
>> >> > it
>> >> > starts.. It goes through the backup then applies all the
>> >> > translogs.
>> >> > When
>> >> > it gets to the end it says, DATABASE RESTORE HAS COMPLETED
>> >> > SUCCESSFULLY.
>> >> > But
>> >> > when I go to the database, it is still at a status of LOADING. How
>> >> > do
>> >> > I
>> >> > bring the database online? Thanks
>> >> > Jason Greene
>> >> >
>> >>
>> >>
>> >>
>>|||It is raid 5 double parity. The entire array died.. All drives at the same
time. I think it was electrical.
On the original note.. I got an old copy of my database .mdf file and
logfile .ldf file. I mounted this database and brought it only. Then I took
the database offline, then swithed the logfile of the old one with the good
current one. Then I restarted the computer.. When it came online, it
brought the database online as Suspect.. Old datafile, current logfile. I
then issued a Backup Logfile command and it backed it up. I then used that
logfile backup to restore the database to the time the database crashed..
"Mike Epprecht (SQL MVP)" wrote:
> Hi
> No, the transaction log is no good to you as the sequences do not agree
> anymore between the log and the DB.
> Kiss that data good bye.
> The fast that your drive crashed and it took your DB's along with it, how
> about getting some RAID?
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> news:3B80AE01-78FA-4D68-BD58-96BDDC08D97F@.microsoft.com...
> > That did it.. Thanks.. Now I got my database back to the last good
> > Translog
> > that was backed up.. Now I am going to try to see if I can use the Online
> > Translog that was part of the database when it crashed to see if I can
> > restore to the point of failure..
> >
> >
> > "Mike Epprecht (SQL MVP)" wrote:
> >
> >> Hi
> >>
> >> There is another connection using the DB, put it into single user mode
> >> (Right click on it and select properties)
> >>
> >> Regards
> >> --
> >> Mike Epprecht, Microsoft SQL Server MVP
> >> Zurich, Switzerland
> >>
> >> IM: mike@.epprecht.net
> >>
> >> MVP Program: http://www.microsoft.com/mvp
> >>
> >> Blog: http://www.msmvps.com/epprecht/
> >>
> >> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> >> news:5D6388E6-A38F-4C5F-A715-6433A0A43588@.microsoft.com...
> >> > When I issue that command I get the following error.
> >> >
> >> >
> >> > Server: Msg 3101, Level 16, State 2, Line 1
> >> > Exclusive access could not be obtained because the database is in use.
> >> > Server: Msg 3013, Level 16, State 1, Line 1
> >> > RESTORE DATABASE is terminating abnormally.
> >> >
> >> > "Kalen Delaney" wrote:
> >> >
> >> >> Hi Jason
> >> >>
> >> >> You may not have requested that SQL Server run the recovery process
> >> >> after
> >> >> the last log was loaded in.
> >> >> From the Query Analyzer, try:
> >> >>
> >> >> RESTORE DATABASE <name of db> WITH RECOVERY
> >> >>
> >> >> (Note that you don't need to specify any backup files, as these have
> >> >> already
> >> >> been loaded. The WITH RECOVERY is the important part.)
> >> >> --
> >> >> HTH
> >> >> --
> >> >> Kalen Delaney
> >> >> SQL Server MVP
> >> >> www.SolidQualityLearning.com
> >> >>
> >> >>
> >> >> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in
> >> >> message
> >> >> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
> >> >> >I am doing a point in time recover of a database. I point to the
> >> >> >backup
> >> >> >and
> >> >> > trans logs and begin the recovery. It says (Loading database) and
> >> >> > it
> >> >> > starts.. It goes through the backup then applies all the
> >> >> > translogs.
> >> >> > When
> >> >> > it gets to the end it says, DATABASE RESTORE HAS COMPLETED
> >> >> > SUCCESSFULLY.
> >> >> > But
> >> >> > when I go to the database, it is still at a status of LOADING. How
> >> >> > do
> >> >> > I
> >> >> > bring the database online? Thanks
> >> >> > Jason Greene
> >> >> >
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>|||Hi everybody:
Hi Jason. what command did you execute to backup the transacation log file
when you had "the old datafile with the current logfile"?.
I'm getting the following error when trying to backup the transaction log
file:
--
Database 'NorthwindTest' cannot be opened due to inaccessible files or
insufficient memory or disk space. See the SQL Server errorlog for details.
BACKUP LOG is terminating abnormally.
--
The event log shows that the following command its executing:
--
BACKUP LOG [NorthwindTest] TO DISK = N'C:\Program Files\Microsoft SQL
Server\MSSQL\BACKUP\NorthwindTest.bak' WITH NOINIT , NOUNLOAD , NAME =N'NorthwindTest backup', NOSKIP , STATS = 10, NOFORMAT
--
Any one knows a good procedure to achieve a restore of a database to the
point of failure?
Cheers!
Amando Reséndez
"Jason Greene" wrote:
> It is raid 5 double parity. The entire array died.. All drives at the same
> time. I think it was electrical.
> On the original note.. I got an old copy of my database .mdf file and
> logfile .ldf file. I mounted this database and brought it only. Then I took
> the database offline, then swithed the logfile of the old one with the good
> current one. Then I restarted the computer.. When it came online, it
> brought the database online as Suspect.. Old datafile, current logfile. I
> then issued a Backup Logfile command and it backed it up. I then used that
> logfile backup to restore the database to the time the database crashed..
>
> "Mike Epprecht (SQL MVP)" wrote:
> > Hi
> >
> > No, the transaction log is no good to you as the sequences do not agree
> > anymore between the log and the DB.
> > Kiss that data good bye.
> >
> > The fast that your drive crashed and it took your DB's along with it, how
> > about getting some RAID?
> >
> > Regards
> > --
> > Mike Epprecht, Microsoft SQL Server MVP
> > Zurich, Switzerland
> >
> > IM: mike@.epprecht.net
> >
> > MVP Program: http://www.microsoft.com/mvp
> >
> > Blog: http://www.msmvps.com/epprecht/
> >
> > "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> > news:3B80AE01-78FA-4D68-BD58-96BDDC08D97F@.microsoft.com...
> > > That did it.. Thanks.. Now I got my database back to the last good
> > > Translog
> > > that was backed up.. Now I am going to try to see if I can use the Online
> > > Translog that was part of the database when it crashed to see if I can
> > > restore to the point of failure..
> > >
> > >
> > > "Mike Epprecht (SQL MVP)" wrote:
> > >
> > >> Hi
> > >>
> > >> There is another connection using the DB, put it into single user mode
> > >> (Right click on it and select properties)
> > >>
> > >> Regards
> > >> --
> > >> Mike Epprecht, Microsoft SQL Server MVP
> > >> Zurich, Switzerland
> > >>
> > >> IM: mike@.epprecht.net
> > >>
> > >> MVP Program: http://www.microsoft.com/mvp
> > >>
> > >> Blog: http://www.msmvps.com/epprecht/
> > >>
> > >> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> > >> news:5D6388E6-A38F-4C5F-A715-6433A0A43588@.microsoft.com...
> > >> > When I issue that command I get the following error.
> > >> >
> > >> >
> > >> > Server: Msg 3101, Level 16, State 2, Line 1
> > >> > Exclusive access could not be obtained because the database is in use.
> > >> > Server: Msg 3013, Level 16, State 1, Line 1
> > >> > RESTORE DATABASE is terminating abnormally.
> > >> >
> > >> > "Kalen Delaney" wrote:
> > >> >
> > >> >> Hi Jason
> > >> >>
> > >> >> You may not have requested that SQL Server run the recovery process
> > >> >> after
> > >> >> the last log was loaded in.
> > >> >> From the Query Analyzer, try:
> > >> >>
> > >> >> RESTORE DATABASE <name of db> WITH RECOVERY
> > >> >>
> > >> >> (Note that you don't need to specify any backup files, as these have
> > >> >> already
> > >> >> been loaded. The WITH RECOVERY is the important part.)
> > >> >> --
> > >> >> HTH
> > >> >> --
> > >> >> Kalen Delaney
> > >> >> SQL Server MVP
> > >> >> www.SolidQualityLearning.com
> > >> >>
> > >> >>
> > >> >> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in
> > >> >> message
> > >> >> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
> > >> >> >I am doing a point in time recover of a database. I point to the
> > >> >> >backup
> > >> >> >and
> > >> >> > trans logs and begin the recovery. It says (Loading database) and
> > >> >> > it
> > >> >> > starts.. It goes through the backup then applies all the
> > >> >> > translogs.
> > >> >> > When
> > >> >> > it gets to the end it says, DATABASE RESTORE HAS COMPLETED
> > >> >> > SUCCESSFULLY.
> > >> >> > But
> > >> >> > when I go to the database, it is still at a status of LOADING. How
> > >> >> > do
> > >> >> > I
> > >> >> > bring the database online? Thanks
> > >> >> > Jason Greene
> > >> >> >
> > >> >>
> > >> >>
> > >> >>
> > >>
> > >>
> > >>
> >
> >
> >|||I did it through the Enterprise Manager.
Backup Transaction Logs.
"Amando Resendez" wrote:
> Hi everybody:
> Hi Jason. what command did you execute to backup the transacation log file
> when you had "the old datafile with the current logfile"?.
> I'm getting the following error when trying to backup the transaction log
> file:
> --
> Database 'NorthwindTest' cannot be opened due to inaccessible files or
> insufficient memory or disk space. See the SQL Server errorlog for details.
> BACKUP LOG is terminating abnormally.
> --
> The event log shows that the following command its executing:
> --
> BACKUP LOG [NorthwindTest] TO DISK = N'C:\Program Files\Microsoft SQL
> Server\MSSQL\BACKUP\NorthwindTest.bak' WITH NOINIT , NOUNLOAD , NAME => N'NorthwindTest backup', NOSKIP , STATS = 10, NOFORMAT
> --
> Any one knows a good procedure to achieve a restore of a database to the
> point of failure?
> Cheers!
> Amando Reséndez
>
> "Jason Greene" wrote:
> > It is raid 5 double parity. The entire array died.. All drives at the same
> > time. I think it was electrical.
> >
> > On the original note.. I got an old copy of my database .mdf file and
> > logfile .ldf file. I mounted this database and brought it only. Then I took
> > the database offline, then swithed the logfile of the old one with the good
> > current one. Then I restarted the computer.. When it came online, it
> > brought the database online as Suspect.. Old datafile, current logfile. I
> > then issued a Backup Logfile command and it backed it up. I then used that
> > logfile backup to restore the database to the time the database crashed..
> >
> >
> >
> > "Mike Epprecht (SQL MVP)" wrote:
> >
> > > Hi
> > >
> > > No, the transaction log is no good to you as the sequences do not agree
> > > anymore between the log and the DB.
> > > Kiss that data good bye.
> > >
> > > The fast that your drive crashed and it took your DB's along with it, how
> > > about getting some RAID?
> > >
> > > Regards
> > > --
> > > Mike Epprecht, Microsoft SQL Server MVP
> > > Zurich, Switzerland
> > >
> > > IM: mike@.epprecht.net
> > >
> > > MVP Program: http://www.microsoft.com/mvp
> > >
> > > Blog: http://www.msmvps.com/epprecht/
> > >
> > > "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> > > news:3B80AE01-78FA-4D68-BD58-96BDDC08D97F@.microsoft.com...
> > > > That did it.. Thanks.. Now I got my database back to the last good
> > > > Translog
> > > > that was backed up.. Now I am going to try to see if I can use the Online
> > > > Translog that was part of the database when it crashed to see if I can
> > > > restore to the point of failure..
> > > >
> > > >
> > > > "Mike Epprecht (SQL MVP)" wrote:
> > > >
> > > >> Hi
> > > >>
> > > >> There is another connection using the DB, put it into single user mode
> > > >> (Right click on it and select properties)
> > > >>
> > > >> Regards
> > > >> --
> > > >> Mike Epprecht, Microsoft SQL Server MVP
> > > >> Zurich, Switzerland
> > > >>
> > > >> IM: mike@.epprecht.net
> > > >>
> > > >> MVP Program: http://www.microsoft.com/mvp
> > > >>
> > > >> Blog: http://www.msmvps.com/epprecht/
> > > >>
> > > >> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in message
> > > >> news:5D6388E6-A38F-4C5F-A715-6433A0A43588@.microsoft.com...
> > > >> > When I issue that command I get the following error.
> > > >> >
> > > >> >
> > > >> > Server: Msg 3101, Level 16, State 2, Line 1
> > > >> > Exclusive access could not be obtained because the database is in use.
> > > >> > Server: Msg 3013, Level 16, State 1, Line 1
> > > >> > RESTORE DATABASE is terminating abnormally.
> > > >> >
> > > >> > "Kalen Delaney" wrote:
> > > >> >
> > > >> >> Hi Jason
> > > >> >>
> > > >> >> You may not have requested that SQL Server run the recovery process
> > > >> >> after
> > > >> >> the last log was loaded in.
> > > >> >> From the Query Analyzer, try:
> > > >> >>
> > > >> >> RESTORE DATABASE <name of db> WITH RECOVERY
> > > >> >>
> > > >> >> (Note that you don't need to specify any backup files, as these have
> > > >> >> already
> > > >> >> been loaded. The WITH RECOVERY is the important part.)
> > > >> >> --
> > > >> >> HTH
> > > >> >> --
> > > >> >> Kalen Delaney
> > > >> >> SQL Server MVP
> > > >> >> www.SolidQualityLearning.com
> > > >> >>
> > > >> >>
> > > >> >> "Jason Greene" <JasonGreene@.discussions.microsoft.com> wrote in
> > > >> >> message
> > > >> >> news:73331569-98FB-4010-A7F9-F4EBA2B9DFF4@.microsoft.com...
> > > >> >> >I am doing a point in time recover of a database. I point to the
> > > >> >> >backup
> > > >> >> >and
> > > >> >> > trans logs and begin the recovery. It says (Loading database) and
> > > >> >> > it
> > > >> >> > starts.. It goes through the backup then applies all the
> > > >> >> > translogs.
> > > >> >> > When
> > > >> >> > it gets to the end it says, DATABASE RESTORE HAS COMPLETED
> > > >> >> > SUCCESSFULLY.
> > > >> >> > But
> > > >> >> > when I go to the database, it is still at a status of LOADING. How
> > > >> >> > do
> > > >> >> > I
> > > >> >> > bring the database online? Thanks
> > > >> >> > Jason Greene
> > > >> >> >
> > > >> >>
> > > >> >>
> > > >> >>
> > > >>
> > > >>
> > > >>
> > >
> > >
> > >sql

Friday, March 9, 2012

recover adodb::_ConnectionPtr

Most of the the time my connection is created and closed fine.

However, sometimes I get Connection failures (these happen often because I am connecting to the server using a VPN connection). Once I get the connection failure, sometimes I cannot successfully recreate the connection until I kill the application and restart it. Below is my open and release code. I call release anytime the connection fails or a stored procedure fails. If you see anything wrong with it the code below that would prevent the connection from recovering please let me know.

Thanks in advance.

Code Snippet

adodb::_ConnectionPtr m_spConnection;

HRESULT InitializeConnections()

{

HRESULT hr = E_FAIL;

if (m_spConnection && m_spConnection->GetState() == adodb::adStateOpen)

{

hr = S_OK;

}

else

{

if (m_spOperationEvents)

{

const _bstr_t c_bstrEmpty(_T(""));

try

{

CComBSTR bstrInit;

hr = get_DbInitializationString(&bstrInit);

if (!m_spConnection)

{

hr = m_spConnection.CreateInstance(adodb::CLSID_Connection);

}

if(SUCCEEDED(hr))

{

m_spConnection->ConnectionTimeout=30;

hr = m_spConnection->Open((LPCWSTR)bstrInit, c_bstrEmpty, c_bstrEmpty, -1);

}

}

catch (_com_error ce)

{

hr = E_FAIL;

CString strArgs;

strArgs.Format(_T("x%x\t%s\t"), ce.Error(), (LPCWSTR)ce.Description());

m_strLastError = GetTranslatedString(eMsgConnectionError, strArgs);

}

catch(HRESULT hrException)

{

hr = hrException;

}

catch(...)

{

hr = E_FAIL;

m_strLastError = GetTranslatedString(eMsgUnknownConnectionError, NULL);

}

}

}

if (!SUCCEEDED(hr))

{

ReleaseConnections();

}

return hr;

}

// Queued thread job to release thread resources

HRESULT CSptAggregation::ReleaseConnections()

{

HRESULT hr = E_FAIL;

try

{

if (m_spConnection)

{

m_spConnection->Cancel();

if (m_spConnection->GetState()== adodb::adStateOpen)

m_spConnection->Close();

}

m_spConnection = NULL;

}

catch (_com_error ce) { hr = E_FAIL; }

catch(...) { hr = E_FAIL; }

return S_OK;

}

To see whether this might be related to OLEDB session pooling you can try disabling it by adding
"OLE DB Services=-2" to your connection string. Depending on what the result is we could discuss further steps.

recover adodb::_ConnectionPtr

Most of the the time my connection is created and closed fine.

However, sometimes I get Connection failures (these happen often because I am connecting to the server using a VPN connection). Once I get the connection failure, sometimes I cannot successfully recreate the connection until I kill the application and restart it. Below is my open and release code. I call release anytime the connection fails or a stored procedure fails. If you see anything wrong with it the code below that would prevent the connection from recovering please let me know.

Thanks in advance.

Code Snippet

adodb::_ConnectionPtr m_spConnection;

HRESULT InitializeConnections()

{

HRESULT hr = E_FAIL;

if (m_spConnection && m_spConnection->GetState() == adodb::adStateOpen)

{

hr = S_OK;

}

else

{

if (m_spOperationEvents)

{

const _bstr_t c_bstrEmpty(_T(""));

try

{

CComBSTR bstrInit;

hr = get_DbInitializationString(&bstrInit);

if (!m_spConnection)

{

hr = m_spConnection.CreateInstance(adodb::CLSID_Connection);

}

if(SUCCEEDED(hr))

{

m_spConnection->ConnectionTimeout=30;

hr = m_spConnection->Open((LPCWSTR)bstrInit, c_bstrEmpty, c_bstrEmpty, -1);

}

}

catch (_com_error ce)

{

hr = E_FAIL;

CString strArgs;

strArgs.Format(_T("x%x\t%s\t"), ce.Error(), (LPCWSTR)ce.Description());

m_strLastError = GetTranslatedString(eMsgConnectionError, strArgs);

}

catch(HRESULT hrException)

{

hr = hrException;

}

catch(...)

{

hr = E_FAIL;

m_strLastError = GetTranslatedString(eMsgUnknownConnectionError, NULL);

}

}

}

if (!SUCCEEDED(hr))

{

ReleaseConnections();

}

return hr;

}

// Queued thread job to release thread resources

HRESULT CSptAggregation::ReleaseConnections()

{

HRESULT hr = E_FAIL;

try

{

if (m_spConnection)

{

m_spConnection->Cancel();

if (m_spConnection->GetState()== adodb::adStateOpen)

m_spConnection->Close();

}

m_spConnection = NULL;

}

catch (_com_error ce) { hr = E_FAIL; }

catch(...) { hr = E_FAIL; }

return S_OK;

}

To see whether this might be related to OLEDB session pooling you can try disabling it by adding
"OLE DB Services=-2" to your connection string. Depending on what the result is we could discuss further steps.

recover a pdf via Web services

Hi,

It's the first time that I use reporting services and web servcies. And I have some problems.

I have severals reporting services. These reports are simple text with some data. I have to call these reports by web services. The report have to receive a int as parameter.

And the report has to return a pdf and give it to the web service.

Can you help me please?

Thank you

Regards

Oups I forgot to ask the question.

Do you know how cal a report by a web servcie and is it possible to give a pdf file to a web service?

|||

ok,

I found the class ReportingService. But Visual studio doesn't recognize it. Is it because i put it in a web service? I search in alot of different sites and I have exactly the same code

|||You need to generate the Web Service proxy:
http://msdn2.microsoft.com/en-us/library/ms155134.aspx

Wednesday, March 7, 2012

Recordset solution is sought. Please help.

-- First of all, thank you for your effort and your time.
--
-- I am looking for a record set solution to the following problem.
--
-- We have feature 1 2 and 3 and users define certain combinations of them.
These can be 2-way combinations where feature3 is null or 3 way combinations
-- For simplicity, let us assume we have values A B and C for these three
features.
-- Users can fill them in redundant ways as
-- ACB, CBA, BCA, CAB, ABC, BAC.
-- I would like to select a single occurrence, ABC, or one out of six,
always one distinct combination.
--
-- I have made an attempt however I remove all duplicate occurances. I just
don't see how I can resolve this. Please help.
--
-- Thanks again for your help.
--
set nocount on
declare @.tmp table (Feature varchar(10) not null, Feature1 varchar(10) not
null, Feature2 varchar(10) null)
insert @.tmp values ('A','C','B') -- one of the folowing 6 to return
insert @.tmp values ('C','B','A')
insert @.tmp values ('B','C','A')
insert @.tmp values ('C','A','B')
insert @.tmp values ('A','B','C')
insert @.tmp values ('B','A','C')
insert @.tmp values ('D','A','C') -- return either DAC or ACD
insert @.tmp values ('P','A','C')
insert @.tmp values ('N','B','D')
insert @.tmp values ('A','C','D')
SELECT *
FROM @.tmp t
WHERE NOT EXISTS
(
SELECT *
FROM @.tmp t2
WHERE t2.feature1 = t.feature AND t2.feature = t.feature1
AND t2.feature2 IS NULL AND t.feature2 IS NULL -- two way
)
AND NOT EXISTS
(
SELECT *
FROM @.tmp t2
WHERE -- 3 way
t2.feature = t.feature AND t2.feature1 = t.feature2 AND t2.feature2 =
t.feature1
OR
t2.feature1 = t.feature1 AND t2.feature = t.feature2 AND t2.feature2 =
t.feature
OR
t2.feature2 = t.feature2 AND t2.feature = t.feature1 AND t2.feature1 =
t.feature
)
-- Expected outcome:
A,B,C
D,A,C
P,A,C
N,B,DYou can add an Identity column to the temp table and check for Identity
column not equal in your sub query.
Perayu
"Farmer" wrote:

> -- First of all, thank you for your effort and your time.
> --
> -- I am looking for a record set solution to the following problem.
> --
> -- We have feature 1 2 and 3 and users define certain combinations of them
.
> These can be 2-way combinations where feature3 is null or 3 way combinatio
ns
> -- For simplicity, let us assume we have values A B and C for these three
> features.
> -- Users can fill them in redundant ways as
> -- ACB, CBA, BCA, CAB, ABC, BAC.
> -- I would like to select a single occurrence, ABC, or one out of six,
> always one distinct combination.
> --
> -- I have made an attempt however I remove all duplicate occurances. I jus
t
> don't see how I can resolve this. Please help.
> --
> -- Thanks again for your help.
> --
> set nocount on
> declare @.tmp table (Feature varchar(10) not null, Feature1 varchar(10) not
> null, Feature2 varchar(10) null)
> insert @.tmp values ('A','C','B') -- one of the folowing 6 to return
> insert @.tmp values ('C','B','A')
> insert @.tmp values ('B','C','A')
> insert @.tmp values ('C','A','B')
> insert @.tmp values ('A','B','C')
> insert @.tmp values ('B','A','C')
> insert @.tmp values ('D','A','C') -- return either DAC or ACD
> insert @.tmp values ('P','A','C')
> insert @.tmp values ('N','B','D')
> insert @.tmp values ('A','C','D')
>
> SELECT *
> FROM @.tmp t
> WHERE NOT EXISTS
> (
> SELECT *
> FROM @.tmp t2
> WHERE t2.feature1 = t.feature AND t2.feature = t.feature1
> AND t2.feature2 IS NULL AND t.feature2 IS NULL -- two way
> )
> AND NOT EXISTS
> (
> SELECT *
> FROM @.tmp t2
> WHERE -- 3 way
> t2.feature = t.feature AND t2.feature1 = t.feature2 AND t2.feature2 =
> t.feature1
> OR
> t2.feature1 = t.feature1 AND t2.feature = t.feature2 AND t2.feature2 =
> t.feature
> OR
> t2.feature2 = t.feature2 AND t2.feature = t.feature1 AND t2.feature1 =
> t.feature
> )
> -- Expected outcome:
> A,B,C
> D,A,C
> P,A,C
> N,B,D
>
>|||Thank you for replying.
How do you suggest I do it? Please post what you think I can use.
"Perayu" <Perayu@.discussions.microsoft.com> wrote in message
news:B06C8780-1282-4F0E-AC17-EFBF72703991@.microsoft.com...
> You can add an Identity column to the temp table and check for Identity
> column not equal in your sub query.
> Perayu
> "Farmer" wrote:
>|||Farmer
Why not perfom such reports on the client side?
"Farmer" <someone@.somewhere.com> wrote in message
news:ukeQ0UzpFHA.3180@.TK2MSFTNGP15.phx.gbl...
> Thank you for replying.
> How do you suggest I do it? Please post what you think I can use.
>
> "Perayu" <Perayu@.discussions.microsoft.com> wrote in message
> news:B06C8780-1282-4F0E-AC17-EFBF72703991@.microsoft.com...
>

Recordset Destination

Every time I try to us a recordset destination for error output, I have problems with setting the "VariableName" field. Is this a known issue? Or am I just doing something wrong?

Thanks
Jim

Jim,
Can you elaborate on what the problem is? An error message would be helpful.

My only tip based on what you have said is make sure that the type of the variable to which you are assigning the recordset is "Object".

Regards
Jamie|||Here is the text I get

Error 3 Validation error. Data Flow Task: Recordset Destination [332]: The VariableName property is not set to the name of a valid variable. Need a runtime variable name to write to. Package.dtsx 0 0|||Have a look here and see if it helps

This is the June CTP

Shredding a Recordset
(http://www.sqlis.com/default.aspx?59)|||In addition to having to point to a variable of type "Object", this property is also case sensitive. You may want to specify the variable's namespace as well.

Other than that I can't think what's wrong because I have had this working!

-Jamie|||Thanks Allan.

Pretty simple and I figured it was something like this. I didn't realize I needed a "variable" to hold onto my recordset.

Jim|||You need to create a variable by providing a name, of type object and also the scope of the variable. Check your object type.

I have written a book for beginners and even if you are not you may benefit from reading it. I recommend as it gives you a more deeper understanding of packages as implemented in the Visual studio 2005

http://www.packtpub.com/sql-server-integration-services-visual-studio-2005/book

Saturday, February 25, 2012

Records newer than 90 minutes (smalldatetime)

Hi,

I have a table in SQLServer2000 where e.g. the actual time is insert for
every record (smalldatetime). But how do I select every records newer
than 90 minutes?

/ChrisOn Mon, 08 Nov 2004 21:24:33 +0100, Chris wrote:

>Hi,
>I have a table in SQLServer2000 where e.g. the actual time is insert for
>every record (smalldatetime). But how do I select every records newer
>than 90 minutes?
>/Chris

Hi Chris,

SELECT Column1, Column2, ..., ColumnN
FROM MyTable
WHERE InsertionTime > DATEADD(minute, -90, CURRENT_TIMESTAMP)

Best, Hugo
--

(Remove _NO_ and _SPAM_ to get my e-mail address)|||On Mon, 08 Nov 2004 21:24:33 +0100, Chris wrote:

> Hi,
> I have a table in SQLServer2000 where e.g. the actual time is insert for
> every record (smalldatetime). But how do I select every records newer
> than 90 minutes?
> /Chris

SELECT * FROM Tbl WHERE DateDiff(m,time_column,GetDate()) BETWEEN 0 AND 90

And you'd better have an index on your time_column.|||On Mon, 8 Nov 2004 16:45:45 -0500, Ross Presser wrote:

>On Mon, 08 Nov 2004 21:24:33 +0100, Chris wrote:
>> Hi,
>>
>> I have a table in SQLServer2000 where e.g. the actual time is insert for
>> every record (smalldatetime). But how do I select every records newer
>> than 90 minutes?
>>
>> /Chris
>SELECT * FROM Tbl WHERE DateDiff(m,time_column,GetDate()) BETWEEN 0 AND 90
>And you'd better have an index on your time_column.

Hi Ross,

As far as I know, that index won't be used in your query, since the
time_column is embedded in a function call. You'd have to have the
time_column all by itself at one side of a comparison operator (like in my
query) for the index to be useful.

Best, Hugo
--

(Remove _NO_ and _SPAM_ to get my e-mail address)|||Hugo Kornelis <hugo@.pe_NO_rFact.in_SPAM_fo> wrote in
news:kpuvo0l9uegi5iuute1h7rte13cp34dsh6@.4ax.com:

> On Mon, 8 Nov 2004 16:45:45 -0500, Ross Presser wrote:
>>On Mon, 08 Nov 2004 21:24:33 +0100, Chris wrote:
>>
>>> Hi,
>>>
>>> I have a table in SQLServer2000 where e.g. the actual time is insert
>>> for every record (smalldatetime). But how do I select every records
>>> newer than 90 minutes?
>>>
>>> /Chris
>>
>>SELECT * FROM Tbl WHERE DateDiff(m,time_column,GetDate()) BETWEEN 0
>>AND 90
>>
>>And you'd better have an index on your time_column.
> Hi Ross,
> As far as I know, that index won't be used in your query, since the
> time_column is embedded in a function call. You'd have to have the
> time_column all by itself at one side of a comparison operator (like
> in my query) for the index to be useful.
> Best, Hugo

Thank you for clarifying my fuzzy thinking, Hugo. Your query is much better
in that respect.

Recording the time

Can anyone tell me if there is a data type used in oracle for recording the time of an event. The SQL books I have read mention the TIME data type but this is not recognised in oracle.
I have tried the timestamp but I require the time and date in separate columns?At least in my opinion, storing the time and date in different columns is an extraordinarily bad idea. They are both parts of the same thing (a temporal data type), and storing them as two columns makes as much sense as storing money as dollars in one int and the cents in another int... It certainly can be done, but it is a fundamentally bad idea.

If you insist on doing things the hard way, Oracle will gladly let you. Create two separate timestamp columns. Store the date in one of the columns, and the time in the other. Or store both of them in one column, and use the time manipulation functions to extract just the time or date when you only need one of them.

-PatP|||what is the time of an event?

do you mean "this event lasts for two hours and fifteen minutes"?

or do you mean "this event occurs at 3:30 pm every day"?

if the former, use an INTERVAL

if the latter, use DATE (which stores date and time) and ignore the date portion

Monday, February 20, 2012

Recording changes

Hi,
Is there any way i can map changes between databases at different time. Lets say i have created a backup on 17 March 2004. I come back to the server on 17 April 2004 (a month later) and now i need to know what has changed between this two dates. Is there
any way i can compare a backup to the database to get the changes ?
Thanks in advance,
Regards,
Hatim Ali.
Hatim Ali,
Data changes or schema changes? Red Gate Software provides tools to
check both:
http://www.red-gate.com/sql/summary.htm
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Hatim Ali wrote:
> Hi,
> Is there any way i can map changes between databases at different time. Lets say i have created a backup on 17 March 2004. I come back to the server on 17 April 2004 (a month later) and now i need to know what has changed between this two dates. Is ther
e any way i can compare a backup to the database to get the changes ?
> Thanks in advance,
> Regards,
> Hatim Ali.
|||Are you interested in structural/schema changes or the data changes or both?
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
Is .NET important for a database professional?
http://vyaskn.tripod.com/poll.htm
"Hatim Ali" <HatimAli@.discussions.microsoft.com> wrote in message
news:D4F700FB-37D0-4655-8CDA-AD4C6DFE45DC@.microsoft.com...
Hi,
Is there any way i can map changes between databases at different time. Lets
say i have created a backup on 17 March 2004. I come back to the server on
17 April 2004 (a month later) and now i need to know what has changed
between this two dates. Is there any way i can compare a backup to the
database to get the changes ?
Thanks in advance,
Regards,
Hatim Ali.
|||For the only true database change management software on the market for SQL Server - DB Ghost is the solution. Everything else is too late - making the change is not change management, knowing who made the change, when the change was made and a history of
all the changes made are a fundamental requirement when it comes to change management. Nothing else out there can do this. DB Ghost makes this easy.
www.dbghost.com
true database change management for SQL Server
"Hatim Ali" wrote:

> Hi,
> Is there any way i can map changes between databases at different time. Lets say i have created a backup on 17 March 2004. I come back to the server on 17 April 2004 (a month later) and now i need to know what has changed between this two dates. Is ther
e any way i can compare a backup to the database to get the changes ?
> Thanks in advance,
> Regards,
> Hatim Ali.
|||I'm interested in data as well as structural changes. Is there any other approach rather than using a tool ?
Regards,
Hatim Ali.
"Narayana Vyas Kondreddi" wrote:

> Are you interested in structural/schema changes or the data changes or both?
> --
> HTH,
> Vyas, MVP (SQL Server)
> http://vyaskn.tripod.com/
> Is .NET important for a database professional?
> http://vyaskn.tripod.com/poll.htm
>
> "Hatim Ali" <HatimAli@.discussions.microsoft.com> wrote in message
> news:D4F700FB-37D0-4655-8CDA-AD4C6DFE45DC@.microsoft.com...
> Hi,
> Is there any way i can map changes between databases at different time. Lets
> say i have created a backup on 17 March 2004. I come back to the server on
> 17 April 2004 (a month later) and now i need to know what has changed
> between this two dates. Is there any way i can compare a backup to the
> database to get the changes ?
> Thanks in advance,
> Regards,
> Hatim Ali.
>
>

Recording changes

Hi,
Is there any way i can map changes between databases at different time. Lets say i have created a backup on 17 March 2004. I come back to the server on 17 April 2004 (a month later) and now i need to know what has changed between this two dates. Is there any way i can compare a backup to the database to get the changes '
Thanks in advance,
Regards,
Hatim Ali.Hatim Ali,
Data changes or schema changes? Red Gate Software provides tools to
check both:
http://www.red-gate.com/sql/summary.htm
--
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Hatim Ali wrote:
> Hi,
> Is there any way i can map changes between databases at different time. Lets say i have created a backup on 17 March 2004. I come back to the server on 17 April 2004 (a month later) and now i need to know what has changed between this two dates. Is there any way i can compare a backup to the database to get the changes '
> Thanks in advance,
> Regards,
> Hatim Ali.|||Are you interested in structural/schema changes or the data changes or both?
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
Is .NET important for a database professional?
http://vyaskn.tripod.com/poll.htm
"Hatim Ali" <HatimAli@.discussions.microsoft.com> wrote in message
news:D4F700FB-37D0-4655-8CDA-AD4C6DFE45DC@.microsoft.com...
Hi,
Is there any way i can map changes between databases at different time. Lets
say i have created a backup on 17 March 2004. I come back to the server on
17 April 2004 (a month later) and now i need to know what has changed
between this two dates. Is there any way i can compare a backup to the
database to get the changes '
Thanks in advance,
Regards,
Hatim Ali.|||For the only true database change management software on the market for SQL Server - DB Ghost is the solution. Everything else is too late - making the change is not change management, knowing who made the change, when the change was made and a history of all the changes made are a fundamental requirement when it comes to change management. Nothing else out there can do this. DB Ghost makes this easy.
www.dbghost.com
true database change management for SQL Server
"Hatim Ali" wrote:
> Hi,
> Is there any way i can map changes between databases at different time. Lets say i have created a backup on 17 March 2004. I come back to the server on 17 April 2004 (a month later) and now i need to know what has changed between this two dates. Is there any way i can compare a backup to the database to get the changes '
> Thanks in advance,
> Regards,
> Hatim Ali.|||I'm interested in data as well as structural changes. Is there any other approach rather than using a tool '
Regards,
Hatim Ali.
"Narayana Vyas Kondreddi" wrote:
> Are you interested in structural/schema changes or the data changes or both?
> --
> HTH,
> Vyas, MVP (SQL Server)
> http://vyaskn.tripod.com/
> Is .NET important for a database professional?
> http://vyaskn.tripod.com/poll.htm
>
> "Hatim Ali" <HatimAli@.discussions.microsoft.com> wrote in message
> news:D4F700FB-37D0-4655-8CDA-AD4C6DFE45DC@.microsoft.com...
> Hi,
> Is there any way i can map changes between databases at different time. Lets
> say i have created a backup on 17 March 2004. I come back to the server on
> 17 April 2004 (a month later) and now i need to know what has changed
> between this two dates. Is there any way i can compare a backup to the
> database to get the changes '
> Thanks in advance,
> Regards,
> Hatim Ali.
>
>

Recording changes

Hi,
Is there any way i can map changes between databases at different time. Lets
say i have created a backup on 17 March 2004. I come back to the server on
17 April 2004 (a month later) and now i need to know what has changed betwee
n this two dates. Is there
any way i can compare a backup to the database to get the changes '
Thanks in advance,
Regards,
Hatim Ali.Hatim Ali,
Data changes or schema changes? Red Gate Software provides tools to
check both:
http://www.red-gate.com/sql/summary.htm
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Hatim Ali wrote:
> Hi,
> Is there any way i can map changes between databases at different time. Lets say i
have created a backup on 17 March 2004. I come back to the server on 17 April 2004
(a month later) and now i need to know what has changed between this two dates. Is t
her
e any way i can compare a backup to the database to get the changes '
> Thanks in advance,
> Regards,
> Hatim Ali.|||Are you interested in structural/schema changes or the data changes or both?
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
Is .NET important for a database professional?
http://vyaskn.tripod.com/poll.htm
"Hatim Ali" <HatimAli@.discussions.microsoft.com> wrote in message
news:D4F700FB-37D0-4655-8CDA-AD4C6DFE45DC@.microsoft.com...
Hi,
Is there any way i can map changes between databases at different time. Lets
say i have created a backup on 17 March 2004. I come back to the server on
17 April 2004 (a month later) and now i need to know what has changed
between this two dates. Is there any way i can compare a backup to the
database to get the changes '
Thanks in advance,
Regards,
Hatim Ali.|||For the only true database change management software on the market for SQL
Server - DB Ghost is the solution. Everything else is too late - making the
change is not change management, knowing who made the change, when the chang
e was made and a history of
all the changes made are a fundamental requirement when it comes to change m
anagement. Nothing else out there can do this. DB Ghost makes this easy.
www.dbghost.com
true database change management for SQL Server
"Hatim Ali" wrote:

> Hi,
> Is there any way i can map changes between databases at different time. Lets say i
have created a backup on 17 March 2004. I come back to the server on 17 April 2004
(a month later) and now i need to know what has changed between this two dates. Is t
her
e any way i can compare a backup to the database to get the changes '
> Thanks in advance,
> Regards,
> Hatim Ali.|||I'm interested in data as well as structural changes. Is there any other app
roach rather than using a tool '
Regards,
Hatim Ali.
"Narayana Vyas Kondreddi" wrote:

> Are you interested in structural/schema changes or the data changes or bot
h?
> --
> HTH,
> Vyas, MVP (SQL Server)
> http://vyaskn.tripod.com/
> Is .NET important for a database professional?
> http://vyaskn.tripod.com/poll.htm
>
> "Hatim Ali" <HatimAli@.discussions.microsoft.com> wrote in message
> news:D4F700FB-37D0-4655-8CDA-AD4C6DFE45DC@.microsoft.com...
> Hi,
> Is there any way i can map changes between databases at different time. Le
ts
> say i have created a backup on 17 March 2004. I come back to the server on
> 17 April 2004 (a month later) and now i need to know what has changed
> between this two dates. Is there any way i can compare a backup to the
> database to get the changes '
> Thanks in advance,
> Regards,
> Hatim Ali.
>
>