SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Fooling SQL Server


Fooling SQL Server

Author
Message
SQLRNNR
SQLRNNR
SSC Guru
SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)

Group: General Forum Members
Points: 68609 Visits: 18570
Steve Jones - Editor (8/10/2010)
Apologies to anyone that feels I crossed the line into too much advertising. I was asked to write something on this product, and I think I failed to editorialize on it properly.

I did think this particular feature was cool, and it is different. Idera's product is very cool as well, but it gives you a read only look. This one actually allows write back, so you could in fact, "mount" a database and test, or run your application against it and see where something failed. It's unique (for now), and I think a fairly innovative integration into SQL Server.


This seems like a cool feature.

My concern, are you writing back to the BAK file? I would be very leery about being able to change data in the backup file. I am curious to know how the whole thing works.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw

steve block
steve block
SSCrazy
SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)

Group: General Forum Members
Points: 2002 Visits: 1563
jeff,

I found that if you back up the transaction log after each Index Rebuild you don't have the log growing very much at all.

Steve



Steve Jones
Steve Jones
SSC Guru
SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)

Group: Administrators
Points: 150702 Visits: 19455
The backup file isn't changed. What happens when you do the restore is that the mdf/ldf/ndf are created as sparse files. All reads from these files are redirected to the backup file, while the writes go to the sparse files. So the backup file is intact, but your changes are recorded, similar to a database snapshot.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
jeff.mason
jeff.mason
SSCrazy
SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)

Group: General Forum Members
Points: 2775 Visits: 2137
If only it were just a growing log file. We have separate files for very large tables on separate LUNs and spindles, and I found that those files double in size on a reindex. Data files, not log files. The distribution works great in live, but then there's tons of empty space that the restore has to consume on a restore and that space isn't there in dev.
Charles Kincaid
Charles Kincaid
Hall of Fame
Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)

Group: General Forum Members
Points: 3347 Visits: 2384
Steve Jones - Editor (8/11/2010)
The backup file isn't changed. What happens when you do the restore is that the mdf/ldf/ndf are created as sparse files. All reads from these files are redirected to the backup file, while the writes go to the sparse files. So the backup file is intact, but your changes are recorded, similar to a database snapshot.


Thanks for the clarification. I take it that in order to remove the restored database you DROP DATABASE just like anything else.

So your backup checkup of doing the fast restore and DBCC does not go far enough, IMHO. One should go a step farther and use SQL Compare to match the objects and the contents. Then you can say that your backups work.

ATBCharles Kincaid
SQLRNNR
SQLRNNR
SSC Guru
SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)

Group: General Forum Members
Points: 68609 Visits: 18570
Steve Jones - Editor (8/11/2010)
The backup file isn't changed. What happens when you do the restore is that the mdf/ldf/ndf are created as sparse files. All reads from these files are redirected to the backup file, while the writes go to the sparse files. So the backup file is intact, but your changes are recorded, similar to a database snapshot.


Thanks for clarifying.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw

Heather Sullivan
Heather Sullivan
SSC Rookie
SSC Rookie (30 reputation)SSC Rookie (30 reputation)SSC Rookie (30 reputation)SSC Rookie (30 reputation)SSC Rookie (30 reputation)SSC Rookie (30 reputation)SSC Rookie (30 reputation)SSC Rookie (30 reputation)

Group: General Forum Members
Points: 30 Visits: 88
I typically don't respond to posts but since 'advertising' is already a hot topic here....

Idera's SQL virtual database is not read-only and allows inserts, updates, deletes, dbcc commands, etc. It supports SQLsafe (compressed and encrypted) and native backups including compressed native backups.

Heather Sullivan
Director, SQL Server Products
Idera
Steve Jones
Steve Jones
SSC Guru
SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)SSC Guru (150K reputation)

Group: Administrators
Points: 150702 Visits: 19455
My apologies, Heather, for the implication. I was not aware that the Idera product had write capabilities. I have updated the editorial with a note as well.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
SQLBill
SQLBill
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11967 Visits: 1085
Steve,

Good article, well written. However, as brought up it does give an appearance (notice I said appearance) of a conflict of interest.

You highlight a RedGate product and guess what - Red Gate owns SQLServerCentral.com.

While most members are aware of this, not everyone may know that RedGate bought this site. It's not really highlighted anywhere.

I suggest doing like other media outlets do...include a disclaimer that RedGate owns this site when you write an article (pro or con) about one of their products.

Just my 2 cents.

-SQLBill



Nevyn
Nevyn
Hall of Fame
Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)

Group: General Forum Members
Points: 3636 Visits: 3149
SQLBill (8/20/2010)
Steve,

Good article, well written. However, as brought up it does give an appearance (notice I said appearance) of a conflict of interest.

You highlight a RedGate product and guess what - Red Gate owns SQLServerCentral.com.

While most members are aware of this, not everyone may know that RedGate bought this site. It's not really highlighted anywhere.

I suggest doing like other media outlets do...include a disclaimer that RedGate owns this site when you write an article (pro or con) about one of their products.

Just my 2 cents.

-SQLBill



Here's the thing, this is not a media outlet. No claims of impartiality are made.

And personally, Im willing to sit through the occasional shameless plug for the information and discussions that are fostered by this site. They gotta pay the bills, and Id much rather have that be through a little optional product pushing than through subscriptions.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search