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


Transaction Log Question Related to Log Shipping and DR (What's in a T-Log?)


Transaction Log Question Related to Log Shipping and DR (What's in a T-Log?)

Author
Message
joshdbguy
joshdbguy
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1725 Visits: 725
Hi All,

You would think that it would be easy to find this information but I guess my googling skills are rusty. I've never had to run a recovery from a t-logs (which is a good thing), and apart from it being good to know, I need some info regarding Transaction Logs. I am working on a DR plan and we need to run log shipping to the DR server. Unfortunately, we are stuck with SQL Server Standard, so I settled on log-shipping as the technique to move data. My question is regarding to what is stored in the T-Log. I know inserts, updates, and deletes are stored but I also wanted to ask about new stored procs, functions, views, roles, logins, password changes, etc. Are all of these stored in the T-Logs as well? I need this information because if any of these are not, I'm going to have to do updates to both the DR site and the production site at the same time.

Thanks again
Dana
Dana
SSCertifiable
SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)

Group: General Forum Members
Points: 5664 Visits: 3450
Log Shipping takes care of stored procedures, et al. The thing it does not (at least how we use it) do is to keep the jobs and security synchronized.
Grant Fritchey
Grant Fritchey
SSC Guru
SSC Guru (93K reputation)SSC Guru (93K reputation)SSC Guru (93K reputation)SSC Guru (93K reputation)SSC Guru (93K reputation)SSC Guru (93K reputation)SSC Guru (93K reputation)SSC Guru (93K reputation)

Group: General Forum Members
Points: 93771 Visits: 33010
Yep, it includes all the changes made within a database, both structure and data, so no worries.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server Query Performance Tuning and SQL Server Execution Plans
Product Evangelist for Red Gate Software
joshdbguy
joshdbguy
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1725 Visits: 725
djj (3/4/2014)
Log Shipping takes care of stored procedures, et al. The thing it does not (at least how we use it) do is to keep the jobs and security synchronized.


Say I have a SQL Login titled "SQLAccount_John_Smith" at the global security level on both servers. I also have three new databases, db1, db2, and db3, all of which are being log-shipped to the DR server. If I add RW rights to db1, db2, and db3 for SQLAccount_John_Smith on the production server, will those rights be added on the DR server? My guess is that it will.
sqlbuddy123
sqlbuddy123
SSCertifiable
SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)

Group: General Forum Members
Points: 5796 Visits: 2243
JoshDBGuy (3/4/2014)
djj (3/4/2014)
Log Shipping takes care of stored procedures, et al. The thing it does not (at least how we use it) do is to keep the jobs and security synchronized.


Say I have a SQL Login titled "SQLAccount_John_Smith" at the global security level on both servers. I also have three new databases, db1, db2, and db3, all of which are being log-shipped to the DR server. If I add RW rights to db1, db2, and db3 for SQLAccount_John_Smith on the production server, will those rights be added on the DR server? My guess is that it will.


Yes, only DB-level rights will be copied over, but not Server level rights ..

--
SQLBuddy
Dana
Dana
SSCertifiable
SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)

Group: General Forum Members
Points: 5664 Visits: 3450
Yep, it should be replicated.
joshdbguy
joshdbguy
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1725 Visits: 725
Great, thanks so much!
GilaMonster
GilaMonster
SSC Guru
SSC Guru (211K reputation)SSC Guru (211K reputation)SSC Guru (211K reputation)SSC Guru (211K reputation)SSC Guru (211K reputation)SSC Guru (211K reputation)SSC Guru (211K reputation)SSC Guru (211K reputation)

Group: General Forum Members
Points: 211705 Visits: 46259
If it's a SQL login you have to make sure that the SID for the login is the same on both servers, otherwise the database user won't reference the login and won't be able to access the DB.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


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