Book Image

Microsoft Azure Development Cookbook Second Edition

Book Image

Microsoft Azure Development Cookbook Second Edition

Overview of this book

Table of Contents (15 chapters)
Microsoft Azure Development Cookbook Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Connecting to a SQL Database from PHP and Java


Not every software application in the world is written in .NET and with Microsoft technologies, and of course, Azure could be used from another development environment and language. Azure is a collection of services, so the ability to use them all or a mix between them and other cloud providers is up to the consumer of the service. From a developer's perspective, the SQL Database is a fully managed relation database service, so a .NET client should connect to it like a PHP or Java application could.

It is just a matter of drivers and software components that mediate between the application and the data layer, implementing the product-specific feature of a particular Relational Database Management System (RDBMS).

In this short recipe, we connect to the SQL Database using PHP and Java.

Getting ready

In this recipe, we will use: