Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 148017

All versions of Microsoft SQL Server (not MySQL). Please also add a version-specific tag, like sql-server-2016, since it is often relevant to the question.

-4 votes

Availability Group database stays in Reverting for too long after a failover

This code always works for me in the similar situation: ALTER DATABASE [Your Database] SET HADR SUSPEND; GO ALTER DATABASE [Your Database] SET HADR RESUME; GO
DBAfencer's user avatar
2 votes

TSQL Copy an existing database

Starting with SQL Server 2014 SP2 you can use the DBCC CLONEDATABASE command to duplicate an empty database. Here is a good primer on it Clone a SQL Server Database Using DBCC CLONEDATABASE
DBAfencer's user avatar
-1 votes

Distributed Availability groups & Listeners

Apparently it can be done in SQL 2016/2017. See Distributed Availability Groups. Still no automatic failover but there is one listener for both AG groups.
DBAfencer's user avatar
0 votes

Using ASPState database in the AG cluster with multiple teams using the same ASPState

Great answers. Using these and other information from Erin in SQLSkills, I replicated the same ASPState database on each of the replicas. I have also converted the ASPState into in-memory databases, t …
DBAfencer's user avatar
1 vote
2 answers
1k views

Using ASPState database in the AG cluster with multiple teams using the same ASPState

We are migrating a number of the 2008 Windows clusters to the 2016 servers and consolidating databases in the same AlwaysOn cluster. Our dev teams are currently using ASPState databases specific to th …
DBAfencer's user avatar