Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

Control database on both replicas?

$
0
0

Dear all,

I am running a 2014 Always On synchronous.

My goal is test the workload/pattern use/performance and other typical activites through a user database created by myself.

My concern is, where must I create this database? Both?

My idea would be just create this database in one node concrete as “not synchronized” out of Availability groups.

How can I achieve that?

I mean, is there some way for avoiding this control clause:

fn_hadr_backup_is_preferred_replica(your_database) = 1

 

“are you in the secondary”

then Sql Server Agent jobs and stored procedures are in the wrong server.

ONCE HERE, HOW CAN I GET THE INFO FOR THE ANOTHER SERVER, USING A LINK CONNECTION?

 

ELSE

 

“are you in the primary”.

then Sql Server Agent jobs and stored procedures attack the current one

 

If this plan is wrong, suppose I will have to create the database in both servers and move into Availability Group.

Thanks indeed for your inputs and hints related to,


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>