Showing posts with label recovery. Show all posts
Showing posts with label recovery. Show all posts

Thursday, February 16, 2012

Bypassing recovery for database 'mydb' because it is makred IN LOAD

Hi,
Im having a problem with a SQL server that gets an error after trying to
restore a Database. The restore says completed but it doesn't actually
complete. I have tred the Knowlege base artical 822852 with no luck still
has the same problem after going into the systemdatabases table and changing
status to 16 for the database 'mydb'.
Thanks
Matt
Perhaps you didn't specify WITH RECOVERY for the restore? Try:
RESTORE DATABASE dbname WITH RECOVERY
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Matt" <mattbeach@.hotmail.com> wrote in message news:uWEmD3mLGHA.2624@.TK2MSFTNGP12.phx.gbl...
> Hi,
> Im having a problem with a SQL server that gets an error after trying to
> restore a Database. The restore says completed but it doesn't actually
> complete. I have tred the Knowlege base artical 822852 with no luck still
> has the same problem after going into the systemdatabases table and changing
> status to 16 for the database 'mydb'.
> Thanks
> Matt
>
|||Yes I did try however it said it restored it in 0 seconds and actually
didn't work.
Matt
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:u%23xlbknLGHA.3936@.TK2MSFTNGP10.phx.gbl...[vbcol=seagreen]
> Perhaps you didn't specify WITH RECOVERY for the restore? Try:
> RESTORE DATABASE dbname WITH RECOVERY
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> Blog: http://solidqualitylearning.com/blogs/tibor/
>
> "Matt" <mattbeach@.hotmail.com> wrote in message
> news:uWEmD3mLGHA.2624@.TK2MSFTNGP12.phx.gbl...
|||My guess then is that the restore wend bad and you have to redo the operation. I'd do it from Query
Analyzer (so you can save the TSQL commands used and post here if that doesn't work).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Matt" <mattbeach@.hotmail.com> wrote in message news:e3d%23z9nLGHA.1192@.TK2MSFTNGP11.phx.gbl...
> Yes I did try however it said it restored it in 0 seconds and actually didn't work.
> Matt
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in message
> news:u%23xlbknLGHA.3936@.TK2MSFTNGP10.phx.gbl...
>

Bypassing recovery for database 'mydb' because it is makred IN LOAD

Hi,
Im having a problem with a SQL server that gets an error after trying to
restore a Database. The restore says completed but it doesn't actually
complete. I have tred the Knowlege base artical 822852 with no luck still
has the same problem after going into the systemdatabases table and changing
status to 16 for the database 'mydb'.
Thanks
MattPerhaps you didn't specify WITH RECOVERY for the restore? Try:
RESTORE DATABASE dbname WITH RECOVERY
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Matt" <mattbeach@.hotmail.com> wrote in message news:uWEmD3mLGHA.2624@.TK2MSFTNGP12.phx.gbl...
> Hi,
> Im having a problem with a SQL server that gets an error after trying to
> restore a Database. The restore says completed but it doesn't actually
> complete. I have tred the Knowlege base artical 822852 with no luck still
> has the same problem after going into the systemdatabases table and changing
> status to 16 for the database 'mydb'.
> Thanks
> Matt
>|||Yes I did try however it said it restored it in 0 seconds and actually
didn't work.
Matt
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:u%23xlbknLGHA.3936@.TK2MSFTNGP10.phx.gbl...
> Perhaps you didn't specify WITH RECOVERY for the restore? Try:
> RESTORE DATABASE dbname WITH RECOVERY
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> Blog: http://solidqualitylearning.com/blogs/tibor/
>
> "Matt" <mattbeach@.hotmail.com> wrote in message
> news:uWEmD3mLGHA.2624@.TK2MSFTNGP12.phx.gbl...
>> Hi,
>> Im having a problem with a SQL server that gets an error after trying to
>> restore a Database. The restore says completed but it doesn't actually
>> complete. I have tred the Knowlege base artical 822852 with no luck still
>> has the same problem after going into the systemdatabases table and
>> changing status to 16 for the database 'mydb'.
>> Thanks
>> Matt|||My guess then is that the restore wend bad and you have to redo the operation. I'd do it from Query
Analyzer (so you can save the TSQL commands used and post here if that doesn't work).
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Matt" <mattbeach@.hotmail.com> wrote in message news:e3d%23z9nLGHA.1192@.TK2MSFTNGP11.phx.gbl...
> Yes I did try however it said it restored it in 0 seconds and actually didn't work.
> Matt
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in message
> news:u%23xlbknLGHA.3936@.TK2MSFTNGP10.phx.gbl...
>> Perhaps you didn't specify WITH RECOVERY for the restore? Try:
>> RESTORE DATABASE dbname WITH RECOVERY
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://www.solidqualitylearning.com/
>> Blog: http://solidqualitylearning.com/blogs/tibor/
>>
>> "Matt" <mattbeach@.hotmail.com> wrote in message news:uWEmD3mLGHA.2624@.TK2MSFTNGP12.phx.gbl...
>> Hi,
>> Im having a problem with a SQL server that gets an error after trying to restore a Database. The
>> restore says completed but it doesn't actually complete. I have tred the Knowlege base artical
>> 822852 with no luck still has the same problem after going into the systemdatabases table and
>> changing status to 16 for the database 'mydb'.
>> Thanks
>> Matt
>

Bypassing recovery for database 'mydb' because it is makred IN LOAD

Hi,
Im having a problem with a SQL server that gets an error after trying to
restore a Database. The restore says completed but it doesn't actually
complete. I have tred the Knowlege base artical 822852 with no luck still
has the same problem after going into the systemdatabases table and changing
status to 16 for the database 'mydb'.
Thanks
MattPerhaps you didn't specify WITH RECOVERY for the restore? Try:
RESTORE DATABASE dbname WITH RECOVERY
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Matt" <mattbeach@.hotmail.com> wrote in message news:uWEmD3mLGHA.2624@.TK2MSFTNGP12.phx.gbl..
.
> Hi,
> Im having a problem with a SQL server that gets an error after trying to
> restore a Database. The restore says completed but it doesn't actually
> complete. I have tred the Knowlege base artical 822852 with no luck still
> has the same problem after going into the systemdatabases table and changi
ng
> status to 16 for the database 'mydb'.
> Thanks
> Matt
>|||Yes I did try however it said it restored it in 0 seconds and actually
didn't work.
Matt
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:u%23xlbknLGHA.3936@.TK2MSFTNGP10.phx.gbl...[vbcol=seagreen]
> Perhaps you didn't specify WITH RECOVERY for the restore? Try:
> RESTORE DATABASE dbname WITH RECOVERY
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> Blog: http://solidqualitylearning.com/blogs/tibor/
>
> "Matt" <mattbeach@.hotmail.com> wrote in message
> news:uWEmD3mLGHA.2624@.TK2MSFTNGP12.phx.gbl...|||My guess then is that the restore wend bad and you have to redo the operatio
n. I'd do it from Query
Analyzer (so you can save the TSQL commands used and post here if that doesn
't work).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Matt" <mattbeach@.hotmail.com> wrote in message news:e3d%23z9nLGHA.1192@.TK2MSFTNGP11.phx.gbl
..
> Yes I did try however it said it restored it in 0 seconds and actually did
n't work.
> Matt
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote i
n message
> news:u%23xlbknLGHA.3936@.TK2MSFTNGP10.phx.gbl...
>

Bypassing recovery for database

MS SQL-Server 7.0
Bypassing recovery for database 'EfW_765' because it is marked IN LOAD.
What does this mean?
Our customer is backing up is maindatabase and is recovering it to this
database for testing.
Our custumer tries it serveral times and then the recovery works and the
data are corrupt.
I have written a little programm which does some selects to this database.
The program is stopped during recovery but our customer beleves that this
has something to do with our program.
http://support.microsoft.com/defaul...kb;en-us;272683
This article doesnt halp me much. So hwat is the meaning of IN LOAD and what
does the server do if it bypasses the recovery.

THX

Jens"Jens Kalkbrenner" <jens.kalkbrenner@.wsk.de> wrote in message
news:c5gccs$73a$01$1@.news.t-online.com...
> MS SQL-Server 7.0
> Bypassing recovery for database 'EfW_765' because it is marked IN LOAD.
> What does this mean?
> Our customer is backing up is maindatabase and is recovering it to this
> database for testing.
> Our custumer tries it serveral times and then the recovery works and the
> data are corrupt.
> I have written a little programm which does some selects to this database.
> The program is stopped during recovery but our customer beleves that this
> has something to do with our program.
> http://support.microsoft.com/defaul...kb;en-us;272683
> This article doesnt halp me much. So hwat is the meaning of IN LOAD and
what
> does the server do if it bypasses the recovery.
> THX
> Jens

I'm not entirely sure, but it sounds as if the database has been partially
recovered, and then the MSSQLServer service has been restarted. This might
be normal, if someone is recovering the database by applying mutiple log
files, for example. Have you tried this, to restore the database and make it
available?

RESTORE DATABASE EfW_765 FROM ... WITH RECOVERY

If this doesn't help, can you give some more details about exactly what is
happening? Is the recovery from a full backup only or from a full backup
plus logfiles? What do you mean when you say the data is "corrupt"? Are you
sure you're recovering the correct backup set? Is the customer trying to
copy database A to database B using backup/restore? If so, have you followed
the steps in Books Online under "Copying Databases"?

Simon|||"Jens Kalkbrenner" <jens.kalkbrenner@.wsk.de> wrote in message
news:c5gccs$73a$01$1@.news.t-online.com...
> MS SQL-Server 7.0
> Bypassing recovery for database 'EfW_765' because it is marked IN LOAD.
> What does this mean?
> Our customer is backing up is maindatabase and is recovering it to this
> database for testing.
> Our custumer tries it serveral times and then the recovery works and the
> data are corrupt.
> I have written a little programm which does some selects to this database.
> The program is stopped during recovery but our customer beleves that this
> has something to do with our program.
> http://support.microsoft.com/defaul...kb;en-us;272683
> This article doesnt halp me much. So hwat is the meaning of IN LOAD and
what
> does the server do if it bypasses the recovery.
> THX
> Jens

I'm not entirely sure, but it sounds as if the database has been partially
recovered, and then the MSSQLServer service has been restarted. This might
be normal, if someone is recovering the database by applying mutiple log
files, for example. Have you tried this, to restore the database and make it
available?

RESTORE DATABASE EfW_765 FROM ... WITH RECOVERY

If this doesn't help, can you give some more details about exactly what is
happening? Is the recovery from a full backup only or from a full backup
plus logfiles? What do you mean when you say the data is "corrupt"? Are you
sure you're recovering the correct backup set? Is the customer trying to
copy database A to database B using backup/restore? If so, have you followed
the steps in Books Online under "Copying Databases"?

Simon

Friday, February 10, 2012

Bulk-Logged Recovery question

Dear all
I have read the BOL section on this and would really appreciate it if
someone confirmed my understanding of this for me with the following
scenario
Imagine that I have a database that has two sets of tables:
The first set contain what could best be described as the product portfolio,
i.e. data about products for sale. These tables contain many rows that are
only ever updated/inserted by using BULK INSERT operations.
The second set of tables contain information about orders. These tables are
updated as someone places an order (web or telesales front end).
If I take a full backup of the database and then set the transaction log to
backup every 15 minutes, then I'd expect one enormous *.BAK file and
sequential set of relatively small *.TRN files, whose size was approximately
proportional to the number of order entered.
However, I then bulk insert > 1 million rows into the product portfolio
tables. The recovery option for the database is set to BULK LOGGED; the
operation is therefore extremely fast and the only information saved to the
transaction log concerns the pages/extents affected.
However, what happens the next time the transaction log is backed up? Is
the TRN file enormous because it contains all the data that was inserted in
the BULK INSERT step? Or, is the TRN file the normal size because it was
effectively unaware of the BULK INSERT occurring? I'm unsure of this.
Assuming that the former is true (i.e. that the TRN is enormous), then I
presume that it would be sensible to have the product portfolio tables in
one database that was only backed up now and again and have the
orders-tables in another database that had FULL backup of the transactions?
Would this be the best scenario?
Thanks
GriffYes the transaction log backup will be big, those extents modified by the
BULK INSERT will be recorded in the Bulk Changed Map (BCM) page(s). When you
backup the log, those extents will be included. Since you have 2 disparate
recovery requirements, it would make sense to separate them into two
databases. This would allow point in time recovery for your orders (assuming
you set that database to FULL recovery) which would not be possible in the
BULK LOGGED recovery model and you could use SIMPLE recovery for your
product database.
--
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"Griff" <Howling@.The.Moon> wrote in message
news:ecmLg%231jEHA.484@.TK2MSFTNGP10.phx.gbl...
> Dear all
> I have read the BOL section on this and would really appreciate it if
> someone confirmed my understanding of this for me with the following
> scenario
> Imagine that I have a database that has two sets of tables:
> The first set contain what could best be described as the product
> portfolio,
> i.e. data about products for sale. These tables contain many rows that
> are
> only ever updated/inserted by using BULK INSERT operations.
> The second set of tables contain information about orders. These tables
> are
> updated as someone places an order (web or telesales front end).
> If I take a full backup of the database and then set the transaction log
> to
> backup every 15 minutes, then I'd expect one enormous *.BAK file and
> sequential set of relatively small *.TRN files, whose size was
> approximately
> proportional to the number of order entered.
> However, I then bulk insert > 1 million rows into the product portfolio
> tables. The recovery option for the database is set to BULK LOGGED; the
> operation is therefore extremely fast and the only information saved to
> the
> transaction log concerns the pages/extents affected.
> However, what happens the next time the transaction log is backed up? Is
> the TRN file enormous because it contains all the data that was inserted
> in
> the BULK INSERT step? Or, is the TRN file the normal size because it was
> effectively unaware of the BULK INSERT occurring? I'm unsure of this.
> Assuming that the former is true (i.e. that the TRN is enormous), then I
> presume that it would be sensible to have the product portfolio tables in
> one database that was only backed up now and again and have the
> orders-tables in another database that had FULL backup of the
> transactions?
> Would this be the best scenario?
> Thanks
> Griff
>|||Griff,
The point of BULK LOGGED is that all the details are not logged in the
transaction log so it remains relatively small. However, to make this all
work the extents that were modified are also backed up to the the .TRN file
along with the contents of the transaction log.
Here is an article from SQL Server Magazine that might be helpful in
explaining.
http://tinyurl.com/6hvmo
Russell Fields
"Griff" <Howling@.The.Moon> wrote in message
news:ecmLg%231jEHA.484@.TK2MSFTNGP10.phx.gbl...
> Dear all
> I have read the BOL section on this and would really appreciate it if
> someone confirmed my understanding of this for me with the following
> scenario
> Imagine that I have a database that has two sets of tables:
> The first set contain what could best be described as the product
portfolio,
> i.e. data about products for sale. These tables contain many rows that
are
> only ever updated/inserted by using BULK INSERT operations.
> The second set of tables contain information about orders. These tables
are
> updated as someone places an order (web or telesales front end).
> If I take a full backup of the database and then set the transaction log
to
> backup every 15 minutes, then I'd expect one enormous *.BAK file and
> sequential set of relatively small *.TRN files, whose size was
approximately
> proportional to the number of order entered.
> However, I then bulk insert > 1 million rows into the product portfolio
> tables. The recovery option for the database is set to BULK LOGGED; the
> operation is therefore extremely fast and the only information saved to
the
> transaction log concerns the pages/extents affected.
> However, what happens the next time the transaction log is backed up? Is
> the TRN file enormous because it contains all the data that was inserted
in
> the BULK INSERT step? Or, is the TRN file the normal size because it was
> effectively unaware of the BULK INSERT occurring? I'm unsure of this.
> Assuming that the former is true (i.e. that the TRN is enormous), then I
> presume that it would be sensible to have the product portfolio tables in
> one database that was only backed up now and again and have the
> orders-tables in another database that had FULL backup of the
transactions?
> Would this be the best scenario?
> Thanks
> Griff
>

Bulk-Logged Recovery question

Dear all
I have read the BOL section on this and would really appreciate it if
someone confirmed my understanding of this for me with the following
scenario
Imagine that I have a database that has two sets of tables:
The first set contain what could best be described as the product portfolio,
i.e. data about products for sale. These tables contain many rows that are
only ever updated/inserted by using BULK INSERT operations.
The second set of tables contain information about orders. These tables are
updated as someone places an order (web or telesales front end).
If I take a full backup of the database and then set the transaction log to
backup every 15 minutes, then I'd expect one enormous *.BAK file and
sequential set of relatively small *.TRN files, whose size was approximately
proportional to the number of order entered.
However, I then bulk insert > 1 million rows into the product portfolio
tables. The recovery option for the database is set to BULK LOGGED; the
operation is therefore extremely fast and the only information saved to the
transaction log concerns the pages/extents affected.
However, what happens the next time the transaction log is backed up? Is
the TRN file enormous because it contains all the data that was inserted in
the BULK INSERT step? Or, is the TRN file the normal size because it was
effectively unaware of the BULK INSERT occurring? I'm unsure of this.
Assuming that the former is true (i.e. that the TRN is enormous), then I
presume that it would be sensible to have the product portfolio tables in
one database that was only backed up now and again and have the
orders-tables in another database that had FULL backup of the transactions?
Would this be the best scenario?
Thanks
Griff
Yes the transaction log backup will be big, those extents modified by the
BULK INSERT will be recorded in the Bulk Changed Map (BCM) page(s). When you
backup the log, those extents will be included. Since you have 2 disparate
recovery requirements, it would make sense to separate them into two
databases. This would allow point in time recovery for your orders (assuming
you set that database to FULL recovery) which would not be possible in the
BULK LOGGED recovery model and you could use SIMPLE recovery for your
product database.
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"Griff" <Howling@.The.Moon> wrote in message
news:ecmLg%231jEHA.484@.TK2MSFTNGP10.phx.gbl...
> Dear all
> I have read the BOL section on this and would really appreciate it if
> someone confirmed my understanding of this for me with the following
> scenario
> Imagine that I have a database that has two sets of tables:
> The first set contain what could best be described as the product
> portfolio,
> i.e. data about products for sale. These tables contain many rows that
> are
> only ever updated/inserted by using BULK INSERT operations.
> The second set of tables contain information about orders. These tables
> are
> updated as someone places an order (web or telesales front end).
> If I take a full backup of the database and then set the transaction log
> to
> backup every 15 minutes, then I'd expect one enormous *.BAK file and
> sequential set of relatively small *.TRN files, whose size was
> approximately
> proportional to the number of order entered.
> However, I then bulk insert > 1 million rows into the product portfolio
> tables. The recovery option for the database is set to BULK LOGGED; the
> operation is therefore extremely fast and the only information saved to
> the
> transaction log concerns the pages/extents affected.
> However, what happens the next time the transaction log is backed up? Is
> the TRN file enormous because it contains all the data that was inserted
> in
> the BULK INSERT step? Or, is the TRN file the normal size because it was
> effectively unaware of the BULK INSERT occurring? I'm unsure of this.
> Assuming that the former is true (i.e. that the TRN is enormous), then I
> presume that it would be sensible to have the product portfolio tables in
> one database that was only backed up now and again and have the
> orders-tables in another database that had FULL backup of the
> transactions?
> Would this be the best scenario?
> Thanks
> Griff
>
|||Griff,
The point of BULK LOGGED is that all the details are not logged in the
transaction log so it remains relatively small. However, to make this all
work the extents that were modified are also backed up to the the .TRN file
along with the contents of the transaction log.
Here is an article from SQL Server Magazine that might be helpful in
explaining.
http://tinyurl.com/6hvmo
Russell Fields
"Griff" <Howling@.The.Moon> wrote in message
news:ecmLg%231jEHA.484@.TK2MSFTNGP10.phx.gbl...
> Dear all
> I have read the BOL section on this and would really appreciate it if
> someone confirmed my understanding of this for me with the following
> scenario
> Imagine that I have a database that has two sets of tables:
> The first set contain what could best be described as the product
portfolio,
> i.e. data about products for sale. These tables contain many rows that
are
> only ever updated/inserted by using BULK INSERT operations.
> The second set of tables contain information about orders. These tables
are
> updated as someone places an order (web or telesales front end).
> If I take a full backup of the database and then set the transaction log
to
> backup every 15 minutes, then I'd expect one enormous *.BAK file and
> sequential set of relatively small *.TRN files, whose size was
approximately
> proportional to the number of order entered.
> However, I then bulk insert > 1 million rows into the product portfolio
> tables. The recovery option for the database is set to BULK LOGGED; the
> operation is therefore extremely fast and the only information saved to
the
> transaction log concerns the pages/extents affected.
> However, what happens the next time the transaction log is backed up? Is
> the TRN file enormous because it contains all the data that was inserted
in
> the BULK INSERT step? Or, is the TRN file the normal size because it was
> effectively unaware of the BULK INSERT occurring? I'm unsure of this.
> Assuming that the former is true (i.e. that the TRN is enormous), then I
> presume that it would be sensible to have the product portfolio tables in
> one database that was only backed up now and again and have the
> orders-tables in another database that had FULL backup of the
transactions?
> Would this be the best scenario?
> Thanks
> Griff
>

Bulk-Logged Recovery question

Dear all
I have read the BOL section on this and would really appreciate it if
someone confirmed my understanding of this for me with the following
scenario
Imagine that I have a database that has two sets of tables:
The first set contain what could best be described as the product portfolio,
i.e. data about products for sale. These tables contain many rows that are
only ever updated/inserted by using BULK INSERT operations.
The second set of tables contain information about orders. These tables are
updated as someone places an order (web or telesales front end).
If I take a full backup of the database and then set the transaction log to
backup every 15 minutes, then I'd expect one enormous *.BAK file and
sequential set of relatively small *.TRN files, whose size was approximately
proportional to the number of order entered.
However, I then bulk insert > 1 million rows into the product portfolio
tables. The recovery option for the database is set to BULK LOGGED; the
operation is therefore extremely fast and the only information saved to the
transaction log concerns the pages/extents affected.
However, what happens the next time the transaction log is backed up? Is
the TRN file enormous because it contains all the data that was inserted in
the BULK INSERT step? Or, is the TRN file the normal size because it was
effectively unaware of the BULK INSERT occurring? I'm unsure of this.
Assuming that the former is true (i.e. that the TRN is enormous), then I
presume that it would be sensible to have the product portfolio tables in
one database that was only backed up now and again and have the
orders-tables in another database that had FULL backup of the transactions?
Would this be the best scenario?
Thanks
GriffYes the transaction log backup will be big, those extents modified by the
BULK INSERT will be recorded in the Bulk Changed Map (BCM) page(s). When you
backup the log, those extents will be included. Since you have 2 disparate
recovery requirements, it would make sense to separate them into two
databases. This would allow point in time recovery for your orders (assuming
you set that database to FULL recovery) which would not be possible in the
BULK LOGGED recovery model and you could use SIMPLE recovery for your
product database.
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"Griff" <Howling@.The.Moon> wrote in message
news:ecmLg%231jEHA.484@.TK2MSFTNGP10.phx.gbl...
> Dear all
> I have read the BOL section on this and would really appreciate it if
> someone confirmed my understanding of this for me with the following
> scenario
> Imagine that I have a database that has two sets of tables:
> The first set contain what could best be described as the product
> portfolio,
> i.e. data about products for sale. These tables contain many rows that
> are
> only ever updated/inserted by using BULK INSERT operations.
> The second set of tables contain information about orders. These tables
> are
> updated as someone places an order (web or telesales front end).
> If I take a full backup of the database and then set the transaction log
> to
> backup every 15 minutes, then I'd expect one enormous *.BAK file and
> sequential set of relatively small *.TRN files, whose size was
> approximately
> proportional to the number of order entered.
> However, I then bulk insert > 1 million rows into the product portfolio
> tables. The recovery option for the database is set to BULK LOGGED; the
> operation is therefore extremely fast and the only information saved to
> the
> transaction log concerns the pages/extents affected.
> However, what happens the next time the transaction log is backed up? Is
> the TRN file enormous because it contains all the data that was inserted
> in
> the BULK INSERT step? Or, is the TRN file the normal size because it was
> effectively unaware of the BULK INSERT occurring? I'm unsure of this.
> Assuming that the former is true (i.e. that the TRN is enormous), then I
> presume that it would be sensible to have the product portfolio tables in
> one database that was only backed up now and again and have the
> orders-tables in another database that had FULL backup of the
> transactions?
> Would this be the best scenario?
> Thanks
> Griff
>|||Griff,
The point of BULK LOGGED is that all the details are not logged in the
transaction log so it remains relatively small. However, to make this all
work the extents that were modified are also backed up to the the .TRN file
along with the contents of the transaction log.
Here is an article from SQL Server Magazine that might be helpful in
explaining.
http://tinyurl.com/6hvmo
Russell Fields
"Griff" <Howling@.The.Moon> wrote in message
news:ecmLg%231jEHA.484@.TK2MSFTNGP10.phx.gbl...
> Dear all
> I have read the BOL section on this and would really appreciate it if
> someone confirmed my understanding of this for me with the following
> scenario
> Imagine that I have a database that has two sets of tables:
> The first set contain what could best be described as the product
portfolio,
> i.e. data about products for sale. These tables contain many rows that
are
> only ever updated/inserted by using BULK INSERT operations.
> The second set of tables contain information about orders. These tables
are
> updated as someone places an order (web or telesales front end).
> If I take a full backup of the database and then set the transaction log
to
> backup every 15 minutes, then I'd expect one enormous *.BAK file and
> sequential set of relatively small *.TRN files, whose size was
approximately
> proportional to the number of order entered.
> However, I then bulk insert > 1 million rows into the product portfolio
> tables. The recovery option for the database is set to BULK LOGGED; the
> operation is therefore extremely fast and the only information saved to
the
> transaction log concerns the pages/extents affected.
> However, what happens the next time the transaction log is backed up? Is
> the TRN file enormous because it contains all the data that was inserted
in
> the BULK INSERT step? Or, is the TRN file the normal size because it was
> effectively unaware of the BULK INSERT occurring? I'm unsure of this.
> Assuming that the former is true (i.e. that the TRN is enormous), then I
> presume that it would be sensible to have the product portfolio tables in
> one database that was only backed up now and again and have the
> orders-tables in another database that had FULL backup of the
transactions?
> Would this be the best scenario?
> Thanks
> Griff
>

Bulk-Logged Recovery - Data Loss?

Folks,
Version: SQL Server 2000 SP3
I've been trying to determine from the documentation if there is any
potential for data loss while a database is in Bulk-Logged Recovery Mode
(BLRM), assuming that the server does not experience anything out of the norm.
Just prior to a DBREINDEX on several tables during minimal user activity, I
plan on putting the database into BLRM. I will return it to Full Recovery
Mode (FRM) upon completion of the reorg. My concern is that if there is a
user transaction during this DBREINDEX will it be logged, and therefore
recoverable? I'm thinking yes. Would just like confirmation.
Much obliged.
--
Scott H.Scott H.,
If the backup of the log include bulk-logged operations, then you will not
be able to restore to a point-in-time within that log backup; you can restore
only the whole log backup.
If something happend during the bulk operation and you need to backup the
log, then the data files that contain the bulk-logged transaction should be
accesible. If any affected data file is inaccessible, the transaction log
cannot be backed up and all operations committed in that log are lost.
Backup Under the Bulk-Logged Recovery Model
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/c6bce51b-f401-408e-a1d6-f53866cd7351.htm
AMB
"Scott H." wrote:
> Folks,
> Version: SQL Server 2000 SP3
> I've been trying to determine from the documentation if there is any
> potential for data loss while a database is in Bulk-Logged Recovery Mode
> (BLRM), assuming that the server does not experience anything out of the norm.
> Just prior to a DBREINDEX on several tables during minimal user activity, I
> plan on putting the database into BLRM. I will return it to Full Recovery
> Mode (FRM) upon completion of the reorg. My concern is that if there is a
> user transaction during this DBREINDEX will it be logged, and therefore
> recoverable? I'm thinking yes. Would just like confirmation.
> Much obliged.
> --
> Scott H.