In a database mirroring setup, one or more copies of a source database are maintained on separate servers. The copies are updated as soon as the source database changes in any way, i.e. the changes are mirrored on the copies. This setup is used to ensure that when the source database server goes down for whatever reason (e.g. a system crash, a disk crash or a network disconnect), users of the database can still keep working.
Questions tagged [database-mirroring]
136 questions
6
votes
2 answers
Segfault on 2nd connection with pyodbc to mirrored MS SQL Server
I'm facing an issue with a Python script that connects to a mirrored MS SQL server DB. It's throwing a segmentation fault when I try connecting to the DB for the second time. Both the app server and the DB instances are running on Google Compute…

Max Twardowski
- 117
- 1
- 6
5
votes
1 answer
Why is MSDTC not supported when using SQL Server Mirroring & Automatic Failover?
I have an application that I would like to have support SQL Server Mirroring. However, the architecture is currently such that multiple WCF services and DB connections will be enlisted in a single MSDTC transactions, and Microsoft states that MSDTC…

Bryan Batchelder
- 3,627
- 21
- 17
4
votes
1 answer
Set database to single user mode for database involved in database mirroring session or an availability group
I'm trying to set a database to single user mode that is currently in an availability group or in a mirroring session. But i'm getting the following error:
The operation cannot be performed on database "DATABASE_NAME" because it is involved in a…

Aditya Nair
- 514
- 1
- 9
- 18
4
votes
1 answer
SqlServer db mirror failover with EF6 fail Principle to Mirror only
Sql server 2014, Entity framework 6.1.2, .net framework 4.5, IIS 8, DB mirror in high safety mode with no witness.
I have the following connection string
Data Source=A;Failover Partner=B;Initial Catalog=DB;Integrated Security=False;User…

Sleeper Smith
- 3,212
- 4
- 28
- 39
3
votes
1 answer
Don't quite understand SQL Server transaction logs
I've read up on SQL Server transaction logs, but still not entirely comfortable with how to use/manage them. I get that they are important for things like transaction rollbacks, mirroring, replication and log shipping etc.
To me, they still seem…

kenwarner
- 28,650
- 28
- 130
- 173
3
votes
0 answers
error during Django 1.8 test with multiple databases
I'm moving a Django 1.8 project from a single database setup to a writer/reader setup. I ran into the issue described in Django bug 23718 but the work arounds described didn't seem to help.
Has anyone run into similar issues? Relevant code segments…

Jon
- 79
- 5
3
votes
1 answer
Operation cannot be performed on database because it is involved in a database mirroring session or an availability group (Azure)
I am experiencing an intermittent issue with SQL Azure. I am copying a readonly SQL Azure database (V12) from one elastic pool into another. Once the database is copied, I set it to read/write using:
$"ALTER DATABASE [{databaseName}] SET…

ASH
- 573
- 2
- 7
- 20
3
votes
1 answer
SQL OLEDB provider: connection string to Failover partner
We're trying to connect to SQL with Database Mirroring enabled.
We have 2 servers: DB1 (Principal) and DB2 (Mirror).
We're using connection string:
Provider=SQLOLEDB;Data Source=DB1;Failover…

Baufix
- 31
- 5
3
votes
1 answer
Change Tracking on a mirrored database in SQL Server 2012
I'm working on a datawarehouse on a SQL Server 2012 Standard. For the benefit of our ETL process I want to enable Change Tracking. This is easily done, but this server is mirrored on another SQL Server 2012.
What are the consequences for the…

8x0
- 33
- 2
3
votes
1 answer
SSIS 2012 oledb connectionstring using mirroring
I am trying to configure a SSIS 2012 project on a couple of mirrored databases.
I was hoping to be able to use the OLEDB provider, but that doesn't seem to support the Failover Partner attribute in the connectionstring.
I have tried to add the keys…

Henrik Sjang Davidsen
- 33
- 1
- 3
3
votes
1 answer
Synchronize between an MS Access (Jet / MADB) database and PostgreSQL DB, is this possible?
Is it possible to have a MS access backend database (Microsoft JET or Access Database Engine) set up so that whenever entries are inserted/updated those changes are replicated* to a PostgreSQL database?
Two-way synchronization would be nice, but one…
user1532394
2
votes
1 answer
What mechanisms are used by SQL Server 2008 Mirroring to notify a driver that the primary has failed over?
I've got a database that is mirrored using SQL 2008 Mirroring.
I have a java application, running on Linux, using the Microsoft SQL
type 4 JDBC drivers.
I have this setup duplicated as a QA environment.
On my QA environment, when I manually fail…

Matt Fellows
- 6,512
- 4
- 35
- 57
2
votes
2 answers
Can classic ASP handle SQL Server mirroring failovers?
I have a couple of "classic" ASP apps that need to connect to a SQL Server database that is using database mirroring. Can ASP handle the failover in a similar way to ASP.NET? As in if I adjust the connection string to put the failover server…

Piers Karsenbarg
- 3,105
- 5
- 31
- 67
2
votes
1 answer
FailOver causes "The underlying provider failed"
We implemented database mirroring for WCF and set up failover partner in connectionstring as following
....Data Source=10.0.13.21,1433;Failover Partner=10.0.13.31,1433; ...
10.0.13.21 - primary server
10.0.13.31 - secondary server
but somehow we…

Angrest
- 99
- 2
- 5
2
votes
2 answers
Which is the fastest way to create a test database(with all data) from a production database which is quite big in size (400 GB)?
I am a java person and not so much familiar with Oracle available features. Please help me.
The requirement is that, we are looking for some virtual(replica/mirror/view) database to be created from Production database just for testing purpose. Once…

deepti mullur
- 569
- 1
- 4
- 14