BizTalk Server with SQL Server AlwaysOn

Post on 23-Jan-2017

180 views 3 download

Transcript of BizTalk Server with SQL Server AlwaysOn

BizTalk Server with SQL Availability On DatabasesMark Brimble

/brimblemarkhttps://nz.linkedin.com/in/markbrimble

© Datacom 2017 2

BizTalk Server with SQL Server AlwaysONMark Brimble

Click to add image

© Datacom 2016 3

++

© Datacom 2016 6

Premises for this talk

BizTalk Server can connect to SQL AlwaysON databases in some scenarios.Highly available BizTalk Server 2016 can be built using SQL 2016 availability groups.

© Datacom 2016 8

Questions

• What are SQL AlwaysOn databases?• How do you connect to SQL AlwaysOn databases using BizTalk Server?• How do build a BizTalk 2016 Server to use SQL 2016 availability groups

9

What are SQL AlwaysON databases?Disasters happen

© Datacom 2016 10

What are SQL AlwaysON databases?

© Datacom 2016 11

SQL AlwaysON vs Traditional Failover Cluster

How do you connect to a Always On Database ? BizTalk Server WCF-SQL Adapter

How do you connect to a Always On Database ? BizTalk Server WCF-SQL Adapter

"System.Transactions.TransactionManagerCommunicationException: Communication with the underlying transaction manager has failed. ---> System.Runtime.InteropServices.COMException: The MSDTC transaction manager was unable to push the transaction to the destination transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the two machines cannot find each other by their NetBIOS names, or the support for network transactions is not enabled for one of the two transaction managers.”

https://connectedpawns.wordpress.com/2014/08/19/can-i-use-a-biztalk-wcf-sql-send-adapter-with-a-sql-2012-always-on-database/

© Datacom 2016 15

Idempotent

HTTP Method Idempotent

OPTIONS yes

GET yes

HEAD yes

PUT yes

POST no

DELETE yes

PATCH no

How do you connect to an Always On Database ? In Line SQL

Provider=SQLOLEDB;Server=A_LSTN;database=Flights;Integrated Security=SSPI; UserId = <UserName>; Password=<Password>; ApplicationIntent=ReadOnly

© Datacom 2016 18

BizTalk 2016 HA with SQL 2016

HA with SQL Availability groupsDemoBuilding BizTalk 2016 HA environment in Azure

© Datacom 2016 19

SQL Server 2016 AlwaysOn support

• New for BizTalk 2016• Provides supported multi-node BizTalk deployment in Azure• Modern, consistent HA/DR capabilities• No more log shipping or active/passive clustering as HA solution

Demo

HA with BizTalk 2016 and SQL 2016

Building BizTalk 2016 HA environment in Azure

SQL Server 2016 in Azure now supports multiple IPs over one ILB

The documentation is not correct.

Building BizTalk 2016 HA environment in Azure

Building the SQL Listener

© Datacom 2016 24

© Datacom 2016 25

© Datacom 2016 26

© Datacom 2016 27

© Datacom 2016 28

Links

https://connectedpawns.wordpress.com/2014/08/19/can-i-use-a-biztalk-wcf-sql-send-adapter-with-a-sql-2012-always-on-database/ https://msdn.microsoft.com/en-us/library/mt743081.aspxhttps://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-windows-portal-sql-alwayson-availability-groups-manual