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


how read from mirror server ?


how read from mirror server ?

Author
Message
saber_talas
saber_talas
SSC-Enthusiastic
SSC-Enthusiastic (119 reputation)SSC-Enthusiastic (119 reputation)SSC-Enthusiastic (119 reputation)SSC-Enthusiastic (119 reputation)SSC-Enthusiastic (119 reputation)SSC-Enthusiastic (119 reputation)SSC-Enthusiastic (119 reputation)SSC-Enthusiastic (119 reputation)

Group: General Forum Members
Points: 119 Visits: 110
Hi all,

I have a production server with 3000 online users,
I set up SQL server database mirroring,
Now I want to reduce load of database by :
1: connect main users to principal database (500 users).
2: connect other users to mirror database (2500 users who just view the reports of application)

how can I read data from mirror database for fetch reports?
Shall I use log shipping ?
Any ideas ?
tim_harkin
tim_harkin
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1211 Visits: 941
Take a snapshot of the mirror, and have the users connect to the snapshot:

http://technet.microsoft.com/en-us/library/ms175511.aspx
BuntyBoy
BuntyBoy
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1208 Visits: 405
if you plan to make use of snapshot, do remember its static and will have data upto point in time when snapshot is created....

===========================================
Better try and fail than not to try at all...

Database Best Practices

SQL Server Best Practices
balaji.it02
balaji.it02
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 Visits: 96
Hi

You have 2 options to perform..
1) Go for Database Snapshot & update snapshot frequently...
2) Go for Merge (Peer to Peer) replication for enabling mulitple users to update the data & merge it finally...
tim_harkin
tim_harkin
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1211 Visits: 941
balaji.it02 (3/7/2013)
Hi

You have 2 options to perform..
1) Go for Database Snapshot & update snapshot frequently...
2) Go for Merge (Peer to Peer) replication for enabling mulitple users to update the data & merge it finally...


The OP mentioned that the secondary group was for reporting only. Why complicate things exponentially by bringing merge replication into the mix? What is the advantage to that?
SQL Show
SQL Show
Hall of Fame
Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)

Group: General Forum Members
Points: 3663 Visits: 1078
Saber_Talas,

Snapshot is available in Enterprise edition only. If You have it, you can go ahead with snapshot.

Log shipping (with Standby mode) will you give more convenience than snapshot. But the problem is log restore and user connection are not mutally compatible, ie, user cant connect to database while restore happens or vice-versa. So you will need to balance in timing of these two activities.
Richard Fryar
Richard Fryar
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: 2009 Visits: 1172
How close are you to upgrading to 2012?

AlwaysOn can allow a secondary replica to accept read-only connections.


Check Your SQL Servers Quickly and Easily
www.sqlcopilot.com
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