Download presentation
Presentation is loading. Please wait.
Published byBrett Booker Modified over 9 years ago
1
Azure databases 1
2
Azure storage possibilities Azure offers several storage possibilities Microsoft SQL Server database MySQL database Azure Document DB: NoSQL database Storage BLOB: Binary Large OBjects Tables Queues: Intended for communication between services Files Azure databases2
3
Azure: Using SQL Server database In Azure portal make an SQL Server database Be patient … When created …. Press the ”Open in Visual Studio” button SQL Server uses TCP port 1443. At home: Open this port in your firewall At school: Use the network EGV5-DMU Create tables etc in Visual Studio and Press the ”Update” button to deploy your table to Azure Be patient … Azure databases3
4
Create database Cloud Explorer (Top-Left corner) SQL Databases Your database General database advices Id primary key identity Identity: The database will generate the values String-like type Nvarchar(max_length) N means Unicode Var means varying length If you need timestamps Datetime default getDate() Azure databases4
5
Work from Visual Studio Port 1443 must be open for access At school use the local LAN named EGV5-DMU Write some T-SQL Press the “Update” button to update the database structure Top-left corner of the SQL design pane Generates a script (with the changes) and executes the changes Take a little while Azure databases5
6
Connection string To connect to the cloud database from an application, you need a connection string. The connection string for your cloud database can be found i Azure portal The connection string include your database name + password The connection string can be saved in your C# code file Or in the App.config file (console app) Or in Web.config (WCF provider) Azure databases6
7
Web service as front-end to databases Using the database causes port problems Port 1443 must be open Usually not open in firewalls Solution: Put a web service between the application and the database The web service runs on port 80 Usually open in firewalls Azure databases7
8
Storage as back-end to web services Web services are stateless Storage can be used as a back-end to web services Azure databases8
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.