BizTalk Server with SQL Server AlwaysOn

29
BizTalk Server with SQL Availability On Databases Mark Brimble /brimblemark https://nz.linkedin.com/in/markbrimble

Transcript of BizTalk Server with SQL Server AlwaysOn

Page 1: BizTalk Server with SQL Server AlwaysOn

BizTalk Server with SQL Availability On DatabasesMark Brimble

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

Page 2: BizTalk Server with SQL Server AlwaysOn

© Datacom 2017 2

BizTalk Server with SQL Server AlwaysONMark Brimble

Click to add image

Page 3: BizTalk Server with SQL Server AlwaysOn

© Datacom 2016 3

Page 4: BizTalk Server with SQL Server AlwaysOn
Page 5: BizTalk Server with SQL Server AlwaysOn

++

Page 6: BizTalk Server with SQL Server AlwaysOn

© Datacom 2016 6

Page 7: BizTalk Server with SQL Server AlwaysOn

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.

Page 8: BizTalk Server with SQL Server AlwaysOn

© 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

Page 9: BizTalk Server with SQL Server AlwaysOn

9

What are SQL AlwaysON databases?Disasters happen

Page 10: BizTalk Server with SQL Server AlwaysOn

© Datacom 2016 10

What are SQL AlwaysON databases?

Page 11: BizTalk Server with SQL Server AlwaysOn

© Datacom 2016 11

SQL AlwaysON vs Traditional Failover Cluster

Page 12: BizTalk Server with SQL Server AlwaysOn

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

Page 13: BizTalk Server with SQL Server AlwaysOn

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.”

Page 14: BizTalk Server with SQL Server AlwaysOn

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

Page 15: BizTalk Server with SQL Server AlwaysOn

© Datacom 2016 15

Idempotent

HTTP Method Idempotent

OPTIONS yes

GET yes

HEAD yes

PUT yes

POST no

DELETE yes

PATCH no

Page 16: BizTalk Server with SQL Server AlwaysOn

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

Page 17: BizTalk Server with SQL Server AlwaysOn
Page 18: BizTalk Server with SQL Server AlwaysOn

© Datacom 2016 18

BizTalk 2016 HA with SQL 2016

HA with SQL Availability groupsDemoBuilding BizTalk 2016 HA environment in Azure

Page 19: BizTalk Server with SQL Server AlwaysOn

© 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

Page 20: BizTalk Server with SQL Server AlwaysOn
Page 21: BizTalk Server with SQL Server AlwaysOn

Demo

HA with BizTalk 2016 and SQL 2016

Page 22: BizTalk Server with SQL Server AlwaysOn

Building BizTalk 2016 HA environment in Azure

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

The documentation is not correct.

Page 23: BizTalk Server with SQL Server AlwaysOn

Building BizTalk 2016 HA environment in Azure

Building the SQL Listener

Page 24: BizTalk Server with SQL Server AlwaysOn

© Datacom 2016 24

Page 25: BizTalk Server with SQL Server AlwaysOn

© Datacom 2016 25

Page 26: BizTalk Server with SQL Server AlwaysOn

© Datacom 2016 26

Page 27: BizTalk Server with SQL Server AlwaysOn

© Datacom 2016 27

Page 28: BizTalk Server with SQL Server AlwaysOn

© Datacom 2016 28

Page 29: BizTalk Server with SQL Server AlwaysOn

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