This script checks which node is the primary in the SQL AlwaysOn cluster. A test database has been...