Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Transaction Log Question Related to Log Shipping and DR (What's in a T-Log?) Expand / Collapse
Author
Message
Posted Tuesday, March 4, 2014 8:05 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 1:15 PM
Points: 142, Visits: 287
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
Post #1547356
Posted Tuesday, March 4, 2014 8:27 AM This worked for the OP Answer marked as solution


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 12:20 PM
Points: 233, Visits: 788
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.
Post #1547368
Posted Tuesday, March 4, 2014 8:31 AM This worked for the OP Answer marked as solution


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 11:51 AM
Points: 15,629, Visits: 28,014
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 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1547373
Posted Tuesday, March 4, 2014 8:32 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 1:15 PM
Points: 142, Visits: 287
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.
Post #1547374
Posted Tuesday, March 4, 2014 8:34 AM This worked for the OP Answer marked as solution
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: 2 days ago @ 11:19 AM
Points: 1,194, Visits: 2,215
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
Post #1547376
Posted Tuesday, March 4, 2014 8:34 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 12:20 PM
Points: 233, Visits: 788
Yep, it should be replicated.
Post #1547377
Posted Tuesday, March 4, 2014 8:48 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 1:15 PM
Points: 142, Visits: 287
Great, thanks so much!
Post #1547387
Posted Tuesday, March 4, 2014 10:12 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 9:36 AM
Points: 42,765, Visits: 35,863
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 2008, MVP
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

Post #1547433
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse