AlwaysON DashBoard says the database is primary role, but dm_hadr_availability_replica_states
Hello,
I am confused now, DashBoard says the database on instance A is primary role, but the dm_hadr_availability_replica_states doesn't agree this.
Is it a bug or something else? I didn't find error in log.
SQL Server version is:
Microsoft SQL Server 2014 - 12.0.2456.0 (X64)
Dec 11 2014 17:32:03
Copyright (c) Microsoft Corporation
Enterprise Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: )
did you refresh your dashboard? please refresh the dashboard.
check this http://www.sqlskills.com/blogs/joe/answering-questions-with-the-alwayson-dashboard/
run this code on each instance and see if which is primary
IF SERVERPROPERTY ('IsHadrEnabled') = 1
BEGIN
SELECT
AGC.name -- Availability Group
, RCS.replica_server_name -- SQL cluster node name
, ARS.role_desc -- Replica Role
, AGL.dns_name -- Listener Name
FROM
sys.availability_groups_cluster AS AGC
INNER JOIN sys.dm_hadr_availability_replica_cluster_states AS RCS
ON
RCS.group_id = AGC.group_id
INNER JOIN sys.dm_hadr_availability_replica_states AS ARS
ON
ARS.replica_id = RCS.replica_id
INNER JOIN sys.availability_group_listeners AS AGL
ON
AGL.group_id = ARS.group_id
WHERE
ARS.role_desc = 'PRIMARY'
END
code from here http://www.mssqltips.com/sqlservertip/3206/finding-primary-replicas-for-sql-server-2012-alwayson-availability-groups-with-powershell/
Hope it Helps!!
Similar Messages
-
Help....I am trying to set up iClould on my pc....the set up was complete....when I try to sign in to set up it says the Apple ID is valid but is not an iCloud account. Please help me and tell me what I am doing wrong. Thx
Hi DesCoop,
You must initiallly activate iCloud from an IOS device or a Mac. You cannot inititally activated from a PC.
Sorry.
GB -
Streaming from my iPad to my tv is not working, it keeps saying the iTunes accounts are different but I've checked it a ton of times and its the same, anyone had the same problem?
Hi JenJen73,
If you are having issues with AirPlay streaming from your iPad to your Apple TV, you may want to take a look at the troubleshooting steps in the following article:
Apple Support: Troubleshooting AirPlay and AirPlay Mirroring
http://support.apple.com/kb/ts4215
Cheers,
- Brenden -
After my friend locked me out of my iPhone with too many wrong password attempts I restored my iPhone via recovery mode and now it is showing that picture of a cable leading towards itunes, and itunes says the sim is not supported but it is the original sim. How do I fix this?
Something went wrong with the update, this can and does happen with every version of iOS.
There is nothing wrong with the update.
Simply restore the device via iTunes on the computer.
If iTunes is stating it will take hours to update, that indicates an extremely slow Internet connection and is likely the reason the OTA update failed. -
i tunes wont download itouch restoring sotware it gets finished and gives me an error message saying the network conection timed out but its working fine what do i do?
I have this same problem, i though it was my internet (super slow) it would take 3 HOURS!! to download the update and then after all the waiting, it would say "network connection timed out" Ive restarted it and checked my settings over and over but it still says "timed out" wat should I do?!?
-
When I try to launch the product, it says the Serial Number is valid but a qualifying product couldnt be found on the computer..same error others are reporting, I have been waiting for over 1 month and have not been able to get an anwer .
You purchased the upgrade version and the serial number of the qualifying product is needed to complete the install. If it can not find a qualifying product installed on the machine, it should be asking you for the SN of that product, not the SN of the new install.
-
Time Machine says the backup is too large but it is not
Time Machine says the backup is too large but it is not.
While it is true my hard drive is very full (150 Gb used of the available 160Gb), this is way less than 42 Pb!!!!
I have tried numerous time to reset it and still the same issue.
Here is the reoccurring message:
Advice?PB.. what the heck is a PB.. I kind of thought TB are still in fairly low digits.
Do a disk verify.. something is seriously stupidly wrong.. Otherwise ring Apple support and give them an earful about nonsense popups.
http://pondini.org/TM/Troubleshooting.html A5 -
Restore back up of my iPhone-password not recognised. After restore, itunes can not restore because it says the password is incorrect. But I can sign into my apple account with the password. My iPhone is now set to factory settings as a new phone, what can i do to access the back up from my phone before I reset it.
That does happen. It depends on how hard the server is being hit, as well as the connection speed of your system. If you are on a windows system, you will want to disable any antivirus or firewall software during the download.
-
i went to turn on my device but it says i need to activate it even though i already did like 2 years ago and when i go to put in my apple id to reactivate it it says the activation servers are down but ive been trying for hours I <3 runon sentences.
Wow!
-
How long does it take for a cancellation fee to process? I just cancelled my annual subscription to adobe audition today and the customer service agent say the cancellation payment went through of $74.90, but i see no charge on my credit card. On the website it says my cancellation is effective in march 16, 2015. So when will i be charged?
Hi ,
I'm very sorry to hear of the problems you have had moving to pay as you go.
Please can you give customer service a call and ask to speak to the pay monthly retentions team who will be able to fix this issue for you.
Click here for contact details.
Thanks
James -
i've rebooted and deleted the acc and reinstated, still says the password is incorrect. i get mail but can't send. can anyone help please?
Hi LordBingington,
Welcome to the Apple Support Communities!
I understand that it can be frustrating when you can receive emails but cannot send them. In this situation, I would recommend using the information in the attached article to troubleshoot.
Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
Best regards,
Joe -
I need to reduce the files on my AIR, in particular the iPhoto library which is showing as 38.58Gb in Finder. However when I click on Info in iPhoto it says that I have 8,422 photos and they are only 18.9 GB.
Why is there this discrepancy? Could it be that somehow the library is duplicated? (No duplicates show up)However when I click on Info in iPhoto it says that I have 8,422 photos and they are only 18.9 GB.
This is the estimated sise of the resulting folder if you exported the entire library at the current setting.
the iPhoto library which is showing as 38.58Gb in Finder
This is the size of the Library installation. It contains all the versions of your photos, cache files, database files, thumbnails and so on. All are necessary for iPhoto to work.
If space is an issue then you can move your Library to an external disk.
Make sure the drive is formatted Mac OS Extended (Journaled)
1. Quit iPhoto
2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
Regards
TD -
I have a game center account that has 2 accounts in the same apple id. the problem is i can only access one account. when i try to type in for the second account it says already taken. How do i change to the 2nd account with the same apple id? Please help.
that's the issue, you bought the OS online so Donald is right, it is being mailed to you. post the URL where you bought it.
the 'app store' is an application running on OSX itself where you can DL software.
so, you have to wait for mountain lion to arrive.
if you want to get a clean OS on your machine now, do this
reboot holding down command/option/R (hoping your machine supports this)
open disk utility, erase your HD so you have a single mac journaled partition
choose install OSX on this HD
let it run. from what you said, you will be back on lion. -
how can I get round the problem I have with itunes. I have bought and downloaded various tracks to my library. When I try to sync my iphone from my PC I get a message on screen saying that it is not authorised to play them and tells me to authorise the computer by clicking store, entering apple id and password then clicking authorise this computer. I do that then get a message saying that my computer is already authorised yet when I try syncing the track again the same thihng happens. Im getting nowhere!
If only some of the songs on an album are giving you the authorisation message, that suggests those song files are damaged.
If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copies of the dodgy tracks and try redownloading fresh copies. For instructions, see the following document:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
Otherwise, I'd report the problem to the iTunes Store.
Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items. -
I was wondering if the i work apps are free it says the name on top free but says 19.99
the i work app are in the top free charts but says it's 19.99 pls help
Why are you showing an iOS operating system with a Mac. Macs run on OS X. iPhones, iPads and iPods Touch run on iOS.
The iWork apps are free with a new iOS device since 1 SEP 2013. They are free with a new Mac since 1 OCT 2013. They are also free with the upgrade to OS X Mavericks 10.9 if you had the previous version installed when you upgraded.
If you don't qualify for the free app, then you pay the regular price. If you qualify, the Buy button says Free.
Maybe you are looking for
-
How to add a link at the bottom of all emails as a default
I would like to have some information at the bottom of all my emails, like a name address and website. how do I set that as a default on all mail that I write? thanks in advance
-
I am new to ABAP-HR....... what is the difference between GET OBJEC and GET PERNR. Iam asked to write a program using logical databases .. which one should I use ... thanks, shekhar....
-
Ultrasonic c-scan using LeCroy LT342 scope and NI motion controller
I imagine this may seem simple, but can anyone help me get started trying to set up an automated ultrasonic c-scan rig using a NI stepper control card and a LeCroy scope hooked up via a NI GPIB card? I have some knowledge in wiring up motion control
-
When does iPod Touch 5 gen 16gb ou 8gb will come out?
I'm asking the community when does the 8gb or 16gb model of the new iPod Touch 5gen will come out?
-
Apply adjustment to affect all layers when xport layers to files
Hi. Have a set of sequence images opened with Bridge and placed in photoshop as individual layers. I´ve croped the image and applyed som adjusments eg. curves etc. Now i want to save the layers as files from the file-scripts having the layer adjustme