Skip to content

sqlsunday.com

  • About
  • Structured Concepts
    • Master data tool
    • OAuth wizard
    • Send passwords
  • Presentations
  • Downloads
  • Checklists
    • Installing SQL Server 2014
    • Installing SQL Server 2016
    • Installing SQL Server 2017
    • Installing SQL Server 2019
    • Installing SQL Server 2022
    • Conference organizer tools
    • Conference organizer checklist

Tag: create login

Availability Groups: How to sync logins between replicas

AlwaysOn Availability Groups are a reasonably simple way to set up disaster recovery (DR) for your SQL Server environment, and with fairly little effort, you can get a bit of high availability (HA) from it as well. But there are a few gotchas, the most obvious of them being that Availability Groups only synchronize specific user-databases, not the entire server setup.

Things that are not included in AGs include logins, SQL Server Agent jobs, SSIS packages stored in SQL Server, linked servers and server settings. You could sync these manually (as is often the case), but wouldn’t you just love to have an automated process do all this for you?

In this post, we’ll look at logins. For the sake of simplicity, I’ll assume that you have a primary replica with a single AG and any number of secondary replicas. The logic holds true if you have multiple AGs, it just gets trickier.

Continue reading Availability Groups: How to sync logins between replicas
Published 2016-10-11
Categorized as Intermediate, Scripts, SQL Server concepts, SQL Server security, T-SQL Tagged active directory, ag, availability group, create login, login, primary replica, procedure, secondary replica, server role, sync, synchronize, windows

Locked out from SQL Server?

When you install SQL Server, you need to specify what account(s) or group(s) that you want to give administrative privileges. Way back when, it would be sufficient to be a local administrator on the Windows machine running the SQL Server service, but not any more.

Luckily, there’s a solution.

Continue reading Locked out from SQL Server?
Published 2013-03-24
Categorized as Intermediate, SQL Server concepts, SQL Server security Tagged -m, admin, create login, local administrator, single user mode, sp_addsrvrolmember, sqlcmd, sqlservr.exe, sysadmin
sqlsunday.com
Proudly powered by WordPress.