91
SQL + WEB + CLOUD Antimo Musone Cloud Computing Avanade - Microsoft Student Partner Uni Ferrara 15 Maggio 2014

Web Cloud Computing SQL Server - Ferrara University

Embed Size (px)

DESCRIPTION

Session about the use of sql server and web technology on cloud computing Platform like Azure

Citation preview

Page 1: Web Cloud Computing SQL Server  -  Ferrara University

SQL + WEB + CLOUD

Antimo MusoneCloud ComputingAvanade - Microsoft Student Partner

Uni Ferrara15 Maggio 2014

Engineer of II University of Naples

In Avanade dal 2006

Technical Architect Cloud amp Mobile

Speaker for Microsoft Student

Partner

Co-Founder of Fifth Element

Project

About Me

What is the cloud

An approach to computing thatrsquos about internet scale and connecting to a variety of devices and endpoints

Cloud Computing

Software-as-a-Service

consume

SaaSPlatform-as-a-Service

build

PaaSInfrastructure-as-a-

Service

host

IaaS

Applications

On-Premises

Storage

Servers

Networking

OS

Database

Virtualization

Runtime

Middleware

Infrastructureas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Runtime

Applications

Middleware

Platformas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Applications

Middleware

Softwareas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Applications

Middleware

RuntimeRuntime

Cloud Providers

Cloud Computing

Windows Azure

Comprehensive set of services that enable you to quickly build deploy and manage applications across a global network of Microsoft-managed datacenters

Solid

Open

Flexible

Your Datacenter

Virtualization

OS

Hardware

Network

Data

Applications

Firewall

Web Sites

Applications

Data

Cloud Services

Applications

Firewall Rules

Data

Virtual Network

Virtual Machines

Virtual Network

Data

Applications

Firewall Rules

OS

Focus on the Application

Windows Azure

Global Footprint

Pay only for what you use

Cloud services Web sites Virtual machines

Windows AzureDemo

Virtual machinesWindows Server and LinuxFlexible Workload SupportVirtual Private Networking

Virtual MachinesDemo

New Disk Persisted in

Storage

Cloud

Cloud First ProvisioningSelect Image and VM SizeGetting Started

Management Portal

gt_Scripting

(Windows Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

Extra SmallSmallMediumLarge X-Large

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 2: Web Cloud Computing SQL Server  -  Ferrara University

Engineer of II University of Naples

In Avanade dal 2006

Technical Architect Cloud amp Mobile

Speaker for Microsoft Student

Partner

Co-Founder of Fifth Element

Project

About Me

What is the cloud

An approach to computing thatrsquos about internet scale and connecting to a variety of devices and endpoints

Cloud Computing

Software-as-a-Service

consume

SaaSPlatform-as-a-Service

build

PaaSInfrastructure-as-a-

Service

host

IaaS

Applications

On-Premises

Storage

Servers

Networking

OS

Database

Virtualization

Runtime

Middleware

Infrastructureas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Runtime

Applications

Middleware

Platformas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Applications

Middleware

Softwareas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Applications

Middleware

RuntimeRuntime

Cloud Providers

Cloud Computing

Windows Azure

Comprehensive set of services that enable you to quickly build deploy and manage applications across a global network of Microsoft-managed datacenters

Solid

Open

Flexible

Your Datacenter

Virtualization

OS

Hardware

Network

Data

Applications

Firewall

Web Sites

Applications

Data

Cloud Services

Applications

Firewall Rules

Data

Virtual Network

Virtual Machines

Virtual Network

Data

Applications

Firewall Rules

OS

Focus on the Application

Windows Azure

Global Footprint

Pay only for what you use

Cloud services Web sites Virtual machines

Windows AzureDemo

Virtual machinesWindows Server and LinuxFlexible Workload SupportVirtual Private Networking

Virtual MachinesDemo

New Disk Persisted in

Storage

Cloud

Cloud First ProvisioningSelect Image and VM SizeGetting Started

Management Portal

gt_Scripting

(Windows Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

Extra SmallSmallMediumLarge X-Large

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 3: Web Cloud Computing SQL Server  -  Ferrara University

What is the cloud

An approach to computing thatrsquos about internet scale and connecting to a variety of devices and endpoints

Cloud Computing

Software-as-a-Service

consume

SaaSPlatform-as-a-Service

build

PaaSInfrastructure-as-a-

Service

host

IaaS

Applications

On-Premises

Storage

Servers

Networking

OS

Database

Virtualization

Runtime

Middleware

Infrastructureas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Runtime

Applications

Middleware

Platformas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Applications

Middleware

Softwareas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Applications

Middleware

RuntimeRuntime

Cloud Providers

Cloud Computing

Windows Azure

Comprehensive set of services that enable you to quickly build deploy and manage applications across a global network of Microsoft-managed datacenters

Solid

Open

Flexible

Your Datacenter

Virtualization

OS

Hardware

Network

Data

Applications

Firewall

Web Sites

Applications

Data

Cloud Services

Applications

Firewall Rules

Data

Virtual Network

Virtual Machines

Virtual Network

Data

Applications

Firewall Rules

OS

Focus on the Application

Windows Azure

Global Footprint

Pay only for what you use

Cloud services Web sites Virtual machines

Windows AzureDemo

Virtual machinesWindows Server and LinuxFlexible Workload SupportVirtual Private Networking

Virtual MachinesDemo

New Disk Persisted in

Storage

Cloud

Cloud First ProvisioningSelect Image and VM SizeGetting Started

Management Portal

gt_Scripting

(Windows Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

Extra SmallSmallMediumLarge X-Large

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 4: Web Cloud Computing SQL Server  -  Ferrara University

Cloud Computing

Software-as-a-Service

consume

SaaSPlatform-as-a-Service

build

PaaSInfrastructure-as-a-

Service

host

IaaS

Applications

On-Premises

Storage

Servers

Networking

OS

Database

Virtualization

Runtime

Middleware

Infrastructureas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Runtime

Applications

Middleware

Platformas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Applications

Middleware

Softwareas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Applications

Middleware

RuntimeRuntime

Cloud Providers

Cloud Computing

Windows Azure

Comprehensive set of services that enable you to quickly build deploy and manage applications across a global network of Microsoft-managed datacenters

Solid

Open

Flexible

Your Datacenter

Virtualization

OS

Hardware

Network

Data

Applications

Firewall

Web Sites

Applications

Data

Cloud Services

Applications

Firewall Rules

Data

Virtual Network

Virtual Machines

Virtual Network

Data

Applications

Firewall Rules

OS

Focus on the Application

Windows Azure

Global Footprint

Pay only for what you use

Cloud services Web sites Virtual machines

Windows AzureDemo

Virtual machinesWindows Server and LinuxFlexible Workload SupportVirtual Private Networking

Virtual MachinesDemo

New Disk Persisted in

Storage

Cloud

Cloud First ProvisioningSelect Image and VM SizeGetting Started

Management Portal

gt_Scripting

(Windows Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

Extra SmallSmallMediumLarge X-Large

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 5: Web Cloud Computing SQL Server  -  Ferrara University

Applications

On-Premises

Storage

Servers

Networking

OS

Database

Virtualization

Runtime

Middleware

Infrastructureas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Runtime

Applications

Middleware

Platformas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Applications

Middleware

Softwareas a Service

Storage

Servers

Networking

OS

Database

Virtualization

Applications

Middleware

RuntimeRuntime

Cloud Providers

Cloud Computing

Windows Azure

Comprehensive set of services that enable you to quickly build deploy and manage applications across a global network of Microsoft-managed datacenters

Solid

Open

Flexible

Your Datacenter

Virtualization

OS

Hardware

Network

Data

Applications

Firewall

Web Sites

Applications

Data

Cloud Services

Applications

Firewall Rules

Data

Virtual Network

Virtual Machines

Virtual Network

Data

Applications

Firewall Rules

OS

Focus on the Application

Windows Azure

Global Footprint

Pay only for what you use

Cloud services Web sites Virtual machines

Windows AzureDemo

Virtual machinesWindows Server and LinuxFlexible Workload SupportVirtual Private Networking

Virtual MachinesDemo

New Disk Persisted in

Storage

Cloud

Cloud First ProvisioningSelect Image and VM SizeGetting Started

Management Portal

gt_Scripting

(Windows Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

Extra SmallSmallMediumLarge X-Large

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 6: Web Cloud Computing SQL Server  -  Ferrara University

Windows Azure

Comprehensive set of services that enable you to quickly build deploy and manage applications across a global network of Microsoft-managed datacenters

Solid

Open

Flexible

Your Datacenter

Virtualization

OS

Hardware

Network

Data

Applications

Firewall

Web Sites

Applications

Data

Cloud Services

Applications

Firewall Rules

Data

Virtual Network

Virtual Machines

Virtual Network

Data

Applications

Firewall Rules

OS

Focus on the Application

Windows Azure

Global Footprint

Pay only for what you use

Cloud services Web sites Virtual machines

Windows AzureDemo

Virtual machinesWindows Server and LinuxFlexible Workload SupportVirtual Private Networking

Virtual MachinesDemo

New Disk Persisted in

Storage

Cloud

Cloud First ProvisioningSelect Image and VM SizeGetting Started

Management Portal

gt_Scripting

(Windows Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

Extra SmallSmallMediumLarge X-Large

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 7: Web Cloud Computing SQL Server  -  Ferrara University

Your Datacenter

Virtualization

OS

Hardware

Network

Data

Applications

Firewall

Web Sites

Applications

Data

Cloud Services

Applications

Firewall Rules

Data

Virtual Network

Virtual Machines

Virtual Network

Data

Applications

Firewall Rules

OS

Focus on the Application

Windows Azure

Global Footprint

Pay only for what you use

Cloud services Web sites Virtual machines

Windows AzureDemo

Virtual machinesWindows Server and LinuxFlexible Workload SupportVirtual Private Networking

Virtual MachinesDemo

New Disk Persisted in

Storage

Cloud

Cloud First ProvisioningSelect Image and VM SizeGetting Started

Management Portal

gt_Scripting

(Windows Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

Extra SmallSmallMediumLarge X-Large

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 8: Web Cloud Computing SQL Server  -  Ferrara University

Global Footprint

Pay only for what you use

Cloud services Web sites Virtual machines

Windows AzureDemo

Virtual machinesWindows Server and LinuxFlexible Workload SupportVirtual Private Networking

Virtual MachinesDemo

New Disk Persisted in

Storage

Cloud

Cloud First ProvisioningSelect Image and VM SizeGetting Started

Management Portal

gt_Scripting

(Windows Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

Extra SmallSmallMediumLarge X-Large

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 9: Web Cloud Computing SQL Server  -  Ferrara University

Pay only for what you use

Cloud services Web sites Virtual machines

Windows AzureDemo

Virtual machinesWindows Server and LinuxFlexible Workload SupportVirtual Private Networking

Virtual MachinesDemo

New Disk Persisted in

Storage

Cloud

Cloud First ProvisioningSelect Image and VM SizeGetting Started

Management Portal

gt_Scripting

(Windows Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

Extra SmallSmallMediumLarge X-Large

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 10: Web Cloud Computing SQL Server  -  Ferrara University

Cloud services Web sites Virtual machines

Windows AzureDemo

Virtual machinesWindows Server and LinuxFlexible Workload SupportVirtual Private Networking

Virtual MachinesDemo

New Disk Persisted in

Storage

Cloud

Cloud First ProvisioningSelect Image and VM SizeGetting Started

Management Portal

gt_Scripting

(Windows Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

Extra SmallSmallMediumLarge X-Large

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 11: Web Cloud Computing SQL Server  -  Ferrara University

Windows AzureDemo

Virtual machinesWindows Server and LinuxFlexible Workload SupportVirtual Private Networking

Virtual MachinesDemo

New Disk Persisted in

Storage

Cloud

Cloud First ProvisioningSelect Image and VM SizeGetting Started

Management Portal

gt_Scripting

(Windows Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

Extra SmallSmallMediumLarge X-Large

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 12: Web Cloud Computing SQL Server  -  Ferrara University

Virtual machinesWindows Server and LinuxFlexible Workload SupportVirtual Private Networking

Virtual MachinesDemo

New Disk Persisted in

Storage

Cloud

Cloud First ProvisioningSelect Image and VM SizeGetting Started

Management Portal

gt_Scripting

(Windows Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

Extra SmallSmallMediumLarge X-Large

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 13: Web Cloud Computing SQL Server  -  Ferrara University

Virtual MachinesDemo

New Disk Persisted in

Storage

Cloud

Cloud First ProvisioningSelect Image and VM SizeGetting Started

Management Portal

gt_Scripting

(Windows Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

Extra SmallSmallMediumLarge X-Large

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 14: Web Cloud Computing SQL Server  -  Ferrara University

New Disk Persisted in

Storage

Cloud

Cloud First ProvisioningSelect Image and VM SizeGetting Started

Management Portal

gt_Scripting

(Windows Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

Extra SmallSmallMediumLarge X-Large

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 15: Web Cloud Computing SQL Server  -  Ferrara University

We will supportSUSE SLES 11 sp2Open SUSE 121CentOS 62 by OpenLogic Ubuntu 1204

Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk

Linux on Windows Azure

Image provided by OpenLogic based on CentOS 62Integration Work will be needed

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 16: Web Cloud Computing SQL Server  -  Ferrara University

Gallery Images Available

MicrosoftWindows Server 2008 R2

SQL Server Eval 2012

Windows Server 2012

Biztalk Server 2013 Beta

Open SourceOpenSUSE 122

CentOS 63

Ubuntu 12041210

SUSE Linux Enterprise Server 11 SP2

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 17: Web Cloud Computing SQL Server  -  Ferrara University

Virtual Machine Sizes

Each Persistent Data Disk Can be up to 1 TB

VM Size CPU Cores Memory Bandwidth Data Disks

Extra Small Shared 768 MB 5 (Mbps) 1

Small 1 175 GB 100 (Mbps) 2

Medium 2 35 GB 200 (Mbps) 4

Large 4 7 GB 400 (Mbps) 8

Extra Large 8 14 GB 800 (Mbps) 16

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 18: Web Cloud Computing SQL Server  -  Ferrara University

Web sites Build with ASPNET Nodejs or PHPDeploy in seconds with FTP Git or TFSStart for free scale up as your traffic grows

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 19: Web Cloud Computing SQL Server  -  Ferrara University

Windows Azure Web Sites powerful web sites in seconds

start simplestart free scale up and out as you go friction-free and without the headaches

code smartwith classic asp aspnet php or nodejs develop on Windows OSX or Linux

go livedeploy live in seconds easily monitor performance rapidly diagnose and fix issues

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 20: Web Cloud Computing SQL Server  -  Ferrara University

Supported Web Frameworks

Or any custom FastCGI Handler

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 21: Web Cloud Computing SQL Server  -  Ferrara University

Supported Publishing Methods

FTP TFSWEBDEPLOY

DROPBOX

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 22: Web Cloud Computing SQL Server  -  Ferrara University

1shared reserved

SHARED INSTANCES

-)

shared

Web sites

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 23: Web Cloud Computing SQL Server  -  Ferrara University

2SHARED INSTANCES

-)

-)

shared reserved

shared

Web sites

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 24: Web Cloud Computing SQL Server  -  Ferrara University

SHARED INSTANCES

-)

1shared reserved

RESERVED INSTANCE

-)-)

0reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 25: Web Cloud Computing SQL Server  -  Ferrara University

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)

reserved

Web sites

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 26: Web Cloud Computing SQL Server  -  Ferrara University

2shared reserved

RESERVED INSTANCE

-)

RESERVED INSTANCE

-)-)

-) -)

-)

-) -)

reserved

Web sites

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 27: Web Cloud Computing SQL Server  -  Ferrara University

WordPress amp WebMatrix Demo

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 28: Web Cloud Computing SQL Server  -  Ferrara University

Windows Azure Web App Gallery

Ready-to-Go Open Source Web Applications Frameworks and Templates

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 29: Web Cloud Computing SQL Server  -  Ferrara University

SQL ServerDemo

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 30: Web Cloud Computing SQL Server  -  Ferrara University

SQL Server VS AccessData independence and efficient accessReduced application development timeData integrity and securityUniform data administrationConcurrency Logging and recovery from crashesHigh ScalabilityTransaction scheduling and supportEnterprise server support

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 31: Web Cloud Computing SQL Server  -  Ferrara University

SQL Server ComponentsServer Components Description

SQL Server Database Engine

Core service for storing and processing data

Analysis ServicesTools for creating and managing analytical processing

Reporting Services Components for creating and deploying reports

Integration Services Tools for moving copying and transforming data

The Database Engine also features these components

Service Broker

Full-Text Search Replication

Notification Services

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 32: Web Cloud Computing SQL Server  -  Ferrara University

SQL Server Management ToolsManagement tools Description

SQL Server Management Studio

An environment to access configure manage and administer SQL components

SQL Server Configuration Manager

An interface to provide management for SQL services protocols and client aliases

SQL Server Profiler A GUI tool to profile and trace the Database Engine and Analysis Services

Database Engine Tuning Advisor

An application to create an optimal sets of indexes indexed views and partitions

Business Intelligence Development Studio

An IDE for creating Analysis Services Reporting Services and Integration Services solutions

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 33: Web Cloud Computing SQL Server  -  Ferrara University

Concurrency ControlConcurrent execution of user programs is essential for good DBMS performance

Interleaving actions of different user programs can lead to inconsistency eg check is cleared while account balance is being computed

DBMS ensures such problems donrsquot arise users can pretend they are using a single-user system

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 34: Web Cloud Computing SQL Server  -  Ferrara University

TransactionIs an ACID sequence of operationsAtomicity requires that each transaction is all or nothing if one part of the transaction

fails the entire transaction fails and the database state is left unchanged An atomic system must guarantee atomicity in each and every situation including power failures errors and crashes

The consistency property ensures that any transaction will bring the database from one valid state to another Any data written to the database must be valid according to all defined rules including but not limited to constraints cascades triggers and any combination thereof

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed serially ie one after the other Each transaction must execute in total isolation ie if T1 and T2 execute concurrently then each should remain independent of the other

Durability means that once a transaction has been committed it will remain so even in the event of power loss crashes or errors In a relational database for instance once a group of SQL statements execute the results need to be stored permanently (even if the database crashes immediately thereafter)

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 35: Web Cloud Computing SQL Server  -  Ferrara University

Concurrency ProblemsSQL Server transaction isolation solves four major concurrency problems

Dirty read occur when a reader reads uncommitted data

Unrepeatable read occurs when existing row change within a transaction

Lost updates occur when two writers modify the same piece of state

Phantoms occur when new rows are added and appear within a transaction

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 36: Web Cloud Computing SQL Server  -  Ferrara University

Locking StrategiesOptimistic concurrency

Locks are not used ndash readers never waitConflicts are possible

Can be resolved before commitHigh concurrency ndash scale well

Pessimistic concurrencyUse exclusive and shared locksTransactions wait for each otherLow concurrency ndash does not scale

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 37: Web Cloud Computing SQL Server  -  Ferrara University

Isolation Levels and LockingANSI Isolation Levels

Level 0 ndash Read Uncommitted

Level 1 ndash Read Committed

Level 2 ndash Repeatable Reads

Level 3 ndash Serializable

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 38: Web Cloud Computing SQL Server  -  Ferrara University

Isolation Levels and Concurrency in SQL

Isolation Level Dirty Reads

Nonrepeat-able Reads

Lost Updates

Phantom Reads

Concurrency Model

Read uncommitted Yes Yes Yes Yes Pessimistic

Read committed snapshot No Yes Yes Yes Optimistic

Read committed No Yes Yes Yes Pessimistic

Repeatable read No No No Yes Pessimistic

Serializable No No No No Pessimistic

Optimistic concurrency uses row versioning instead of row locking

Lost updates in snapshot isolation level are prevented by conflict detection instead of locking

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 39: Web Cloud Computing SQL Server  -  Ferrara University

A History and Definition of ANSI SQL and T-SQL

ANSI-SQL defined by the American National Standards Institute

Microsoft implementation is T-SQL or Transact SQL

Other implementations include PLSQL and SQL Procedural Language

Developed in the early 1970s

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 40: Web Cloud Computing SQL Server  -  Ferrara University

Introduction to Basic T-SQL Syntax

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

SELECT ProductID Name ListPriceFROM ProductionProductWHERE ListPrice gt $40ORDER BY ListPrice ASC

There are four primary properties to the SELECT statement

The number and attributes of the columns in the result set11

The tables from which the result set data is retrieved 22

The conditions the rows in the source tables must meet 33

The sequence which the rows of the result set are ordered44

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 41: Web Cloud Computing SQL Server  -  Ferrara University

Elements of the SELECT Statement

[ HAVING search_condition ]

[ ORDER BY order_expression [ ASC | DESC ] ]

[ GROUP BY group_by_expression ]

FROM table_source

[ WHERE search_condition ]

SELECT select_list

[INTO new_table_name]

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 42: Web Cloud Computing SQL Server  -  Ferrara University

Retrieving Columns in a Table Displays All Columns in the Employee Table

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FROM HumanResourcesEmployee

Displays Only FirstName LastName and JobTitle ColumnsUSE AdventureWorks2008

GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

USE AdventureWorks2008GOSELECT FirstName LastName JobTitleFROM HumanResourcesEmployee

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 43: Web Cloud Computing SQL Server  -  Ferrara University

INSERT Fundamentals

INSERT [INTO] table_or_view [(column_list)] data_valuesINSERT [INTO] table_or_view [(column_list)] data_values

The INSERT statement adds one or more new rows to a table

INSERT inserts data_values as one or more rows into the specified table_or_view

column_list is a list of column names used to specify the columns for which data is supplied

INSERT Syntax

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 44: Web Cloud Computing SQL Server  -  Ferrara University

DELETE Fundamentals

DELETE table_or_view

FROM table_sources

WHERE search_condition

DELETE table_or_view

FROM table_sources

WHERE search_condition

The DELETE statement removes one or more rows in a table or view

DELETE removes rows from the table_or_view parameter that meet the search condition

table_sources can be used to specify additional tables or views that can be used by the WHERE clause

DELETE Syntax

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 45: Web Cloud Computing SQL Server  -  Ferrara University

UPDATE Fundamentals

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

UPDATE table_or_view

SET column_name = expression

FROM table_sources

WHERE search_condition

The UPDATE statement changes data values in one many or all rows of a table

An UPDATE statement referencing a table or view can change the data in only one base table at a time

UPDATE has three major clausesSET ndash comma-separated list of columns to be updated

FROM ndash supplies values for the SET clause

WHERE ndash specifies a search condition for the SET clause

UPDATE Syntax

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 46: Web Cloud Computing SQL Server  -  Ferrara University

Types of T-SQL OperatorsType Operators

bull Arithmetic operators bull + - Vacation + SickLeave AS Total PTO

bull Assignment operator bull =SET MyCounter = 1

bull Comparison operators bull = lt gt ltgt gt= lt=IF (MyProduct ltgt 0) hellip

bull Logical operators bull AND OR NOT WHERE Department = lsquoSales AND (Shift = Evening OR

Shift = Night)

bull String concatenation operatorbull +SELECT LastName + + FirstName AS Moniker

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 47: Web Cloud Computing SQL Server  -  Ferrara University

What Are T-SQL FunctionsFunctions Notes

Rowset bull Return objects that can be used as table references

Examples CONTAINSTABLE OPENDATASOURCE OPENQUERY

Aggregate bull Operate on a collection but returns a single value

Examples AVG CHECKSUM_AGG SUM COUN

Ranking bull Return a ranking value for each row in a partition

Examples RANK DENSE_RANK

Scalar bull Operate on a single value and then return a single value

Examples CREATE FUNCTION dboufn_CubicVolume

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 48: Web Cloud Computing SQL Server  -  Ferrara University

What Are T-SQL Variables

declare food varchar(20)set food = ice creamhellipWHERE Description = food

declare food varchar(20)set food = ice creamhellipWHERE Description = food

DECLARE local_variable as ltdata_typegtDECLARE local_variable as ltdata_typegt

Variables in batches and scripts are typically used to

Count the number of times a loop is performed

Hold data to be tested by a control-of-flow statement

Save data values to be returned by a function return value

A Transact-SQL local variable is an object that can hold a single data value of a specific type

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 49: Web Cloud Computing SQL Server  -  Ferrara University

SQL Server Database ObjectsObjects Notes

Tables Contain all the data in SQL Server databases

Views Act like a virtual table or a stored query

Indexes Enable fast retrieval built from one or more columns in table or view

Triggers Execute a batch of SQL code when an insert update or delete command is executed against a specific table

Procedures Accept parameters contain statements and return values

Constraints Prevent inconsistent data from being placed in a column

Rules Specify acceptable values that can be inserted in column

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 50: Web Cloud Computing SQL Server  -  Ferrara University

Syllabus

Authentication

Schemas

Database Security

Roles

Authorization

Tracking Changes

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 51: Web Cloud Computing SQL Server  -  Ferrara University

AuthenticationHow does the user login to the system

Windows Mode

Mixed Mode

To change authentication schemeServer-gt Properties -gt Security

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 52: Web Cloud Computing SQL Server  -  Ferrara University

SchemasA schema is a collection of database objects that is owned by a single principal and forms a single namespace (Two tables in the same schema cannot have the same name)A principal can be either of the following

An indivisible principal represents a single user such as a login or Windows user account

A group principalcan be a group of users such as a role or Windows group

Principals are ownerships of schemas but the ownership of a schema can be transferred easily to another principal and without changing the schema name

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 53: Web Cloud Computing SQL Server  -  Ferrara University

Schemas Default schema dbo

specifies the first schema that will be searched by the database server when it resolves the names of objects

The separation of database users from schemas provides significant benefits such as

One principal can own several schemasSeveral indivisible principals can own a single schema via

membership in roles or Windows groupsDropping a database user does not require the renaming of

objects contained by that userrsquos schema

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 54: Web Cloud Computing SQL Server  -  Ferrara University

Creating usersCREATE USER user_name[FOR LOGIN login |CERTIFICATE cert_name |ASYMMETRIC KEY key_name][ WITH DEFAULT_SCHEMA = schema_name ]

ExampleUSE sampleCREATE USER peter FOR LOGIN [NTB11901pete]CREATE USER mary FOR LOGIN mary WITH DEFAULT_SCHEMA =my_schema

ALTER USER DROP USER

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 55: Web Cloud Computing SQL Server  -  Ferrara University

Creating users

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 56: Web Cloud Computing SQL Server  -  Ferrara University

RolesIs a group of users that share the same security concernsMembers of a database role can be any of the following

Windows groups and user accountsSQL Server loginsOther roles

Roles belong to the following categoriesFixed server rolesFixed database rolesApplication rolesUser-defined roles

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 57: Web Cloud Computing SQL Server  -  Ferrara University

Fixed server rolesEach fixed server role has its implicit permissions within a database system You can view the permissions for each fixed server role using the sp_srvrolepermission system procedure

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 58: Web Cloud Computing SQL Server  -  Ferrara University

Assign a login to a Fixed server roles Database-gtSecurity-

gtServer Roles

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 59: Web Cloud Computing SQL Server  -  Ferrara University

Coffee Break

-)

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 60: Web Cloud Computing SQL Server  -  Ferrara University

Avanade Italy

| 60

SpeakerAntimo MusoneTechnical Architect Lecce

04 Marzo 2014

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 61: Web Cloud Computing SQL Server  -  Ferrara University

Chi egrave AvanadeAvanade nata nel 2000 dalla joint venture tra Microsoft e Accenture egrave il principale Technology Integrator a livello mondiale specializzato nello sviluppo e nellrsquoimplementazione di soluzioni su tecnologia Microsoft per le grandi aziende

bullCapacitagrave imprenditorialebullSoluzioni per

qualsiasi settorebullAcceleratore

di soluzioni trasversali

bull Specializzati su piattaforma Microsoftbull Architetture e asset bullRisultati

realizzati

bull Piattaforme Enterprisebull Prodotti allrsquoavanguardiabull Impegno per la ricerca e sviluppo

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 62: Web Cloud Computing SQL Server  -  Ferrara University

copy Copyright 2014 Avanade Inc All Rights ReservedThe Avanade name and logo are registered trademarks in the US and other countries

Avanade in 120 seconds

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 63: Web Cloud Computing SQL Server  -  Ferrara University

Ambiente internazionale che eredita i punti di forza di Microsoft ed Accenture tecnologia e leadership di pensiero creativitagrave e rigore professionale Sviluppo di una professionalitagrave nel settore IT in un contesto allrsquoavanguardiaAmbiente meritocratico che prevede Performance Review semestrali e annuali di ogni dipendente con il proprio Career Manager

Lavoro di squadra volto alla sinergia dei nostri talenti che lavorano allrsquounisono nel recepire le innovazioni tecnologicheAggiornamento continuo delle proprie competenze professionali attraverso programmi di training e conseguimento certificazioni Microsoft

Cosa offriamo

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 64: Web Cloud Computing SQL Server  -  Ferrara University

Avanade Confidential ndash Do Not Copy Forward or Circulatecopy Copyright 2014 Avanade Inc All Rights Reserved

Opportunitagrave ProfessionaliDopo un periodo di stage dedicato esclusivamente alla formazione i neolaureati (o laureandi) avranno la possibilitagrave di essere assunti con un contratto di apprendistato professionalizzante di 36 mesi finalizzato allrsquoinserimento a tempo indeterminatoLe aree di inserimento e formazione sono Application Development Collaboration CRM Technology Infrastructures Dynamics AX

Sede di lavoro Milano-Roma

Per ulteriori informazioni visita il nostro sitowwwavanadecom

o contatta il nostro HR sarabattistellaavanadecom

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 65: Web Cloud Computing SQL Server  -  Ferrara University

ASPnetDemo

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 66: Web Cloud Computing SQL Server  -  Ferrara University

Introduction to Microsoft NET

Includes the NET Framework servers and clients

Includes the NET Framework servers and clients

Use Visual Studio 20122013 as a development tool to build applications

Use Visual Studio 20122013 as a development tool to build applications

Is the infrastructure of Microsoft NET

Is the infrastructure of Microsoft NET

Provides a foundation to build and run NET applications and services

Provides a foundation to build and run NET applications and services

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Includes two main componentsmdashcommon language runtime (CLR) and the NET Framework class library

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 67: Web Cloud Computing SQL Server  -  Ferrara University

Benefits of the NET FrameworkSupports existing Internet technologies

Available to all NET-based applications

Functionality is organized into hierarchical namespaces and types for easy access

Extensible and language independent

Easy to install commercial applications

Automatic updates to the NET Framework through the Microsoft Update service

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 68: Web Cloud Computing SQL Server  -  Ferrara University

Components of the NET Framework

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

NET Framework Class LibraryNET Framework Class Library

LINQ ASPNET AJAX ASPNET Dynamic Data

WPF WCF WF Windows CardSpace

XML Web Services ASPNET ADONET

NET Framework 35NET Framework 35

NET Framework 30NET Framework 30

NET Framework 20NET Framework 20

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 69: Web Cloud Computing SQL Server  -  Ferrara University

Visual Studio The Tool for Development

Multi-Language supportmdashSelect the version of the NET Framework that you want your application to targetuumluuml

Tools for many application typesmdashBuild tools for Web-based applications Windows-based applications and Silverlightuumluuml

Debug and deploymdashUse the error-handling and debugging features to build error-free applicationsuumluuml

Help and documentationmdashUse the easily accessible help and documentationuumluuml

Tools for working with Cascading Style Sheets (CSS)mdashUse the Apply Styles and Manage Styles window to apply modify rename and delete styles

uumluuml

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 70: Web Cloud Computing SQL Server  -  Ferrara University

Overview of ASPNET Client-Server Interaction

What Is ASPNET

Components of ASPNET Web Applications

Generating and Rendering Markup and Code

ASPNET Dynamic Compilation Execution Model

ASPNET Extensions

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 71: Web Cloud Computing SQL Server  -  Ferrara University

Client-Server Interaction

Client Server

Request

Response

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 72: Web Cloud Computing SQL Server  -  Ferrara University

What Is ASPNETFree programming framework for building dynamic Web applications

Unified Web platform that provides the services necessary to build enterprise-class applications

Built on the NET Framework

Programming language and browser independent

Object-oriented and event-driven processing of server-side pages and Web Forms

Support for XML Web services

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

uumluuml

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 73: Web Cloud Computing SQL Server  -  Ferrara University

Components of ASPNET Applications

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

Configuration FilesmdashXML files that define the settings for the Web application and the Web server

CodemdashResides inline in the Web Form or in a code-behind file associated with a Web FormCodemdashResides inline in the Web Form or in a code-behind file associated with a Web Form

Master PagesmdashProvide streamlined UI across several Web FormsMaster PagesmdashProvide streamlined UI across several Web Forms

Web Forms (aspx pages)mdashProvide the UI for the Web applicationWeb Forms (aspx pages)mdashProvide the UI for the Web application

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 74: Web Cloud Computing SQL Server  -  Ferrara University

Generating and Rendering Markup ampCode

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

During compilation the ASPNET compiler generates

markup and code that appears and functions correctly on

the clients

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

After compilation the Web Forms or user controls become

a class definition with methods for rendering the page or

control

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 75: Web Cloud Computing SQL Server  -  Ferrara University

ASPNET Dynamic Compilation Execution Model

Process

Client Serverbull The client browser issues a GET HTTP request to the serverbull The ASPNET parser interprets the source codebull If the code was not already compiled in a DLL ASPNET invokes the compiler

bull The runtime loads and runs the MSIL code

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx

Parser

helloaspx

Compiler

Assembly IL

First Request

httphelloaspx

Process

Client Server

Internet Explorer

Assembly ILExecute HTTP

Runtime

Memory

httphelloaspx Assembly IL

Second Request

bull The client browser issues a GET HTTP request to the server

bull The runtime loads and immediately executes the MSIL code that was already compiled during the first request of the page

httphelloaspx

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 76: Web Cloud Computing SQL Server  -  Ferrara University

ASPNET Extensions

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET AJAX

Is a framework for building highly interactive

and responsive Web applications that work

across all popular browsers

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

ASPNET Dynamic Data

Is a framework that allows you to create data-

driven ASPNET Web applications

automatically

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 77: Web Cloud Computing SQL Server  -  Ferrara University

Features of the Integrated Development Environment

ToolboxToolbox

Server ExplorerServer Explorer

Output windowOutput window

Solution ExplorerSolution Explorer

Dynamic HelpDynamic Help

Properties windowProperties window

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 78: Web Cloud Computing SQL Server  -  Ferrara University

Create a new ASPNET Web Site Create a new ASPNET Web Site 11

Demo Hello World

Open the Web Form in the design view and source view Open the Web Form in the design view and source view 22

Add a Button control to the Web Form Add a Button control to the Web Form 33

Add code to the Button Click event Add code to the Button Click event 44

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 79: Web Cloud Computing SQL Server  -  Ferrara University

AdventureWork Database AdventureWork Database 11

Demo ASPNet + SQL

Create New Aspnet Create New Aspnet 22

Add new Page for ChartAdd new Page for Chart33

Test Membership ProviderTest Membership Provider44

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 80: Web Cloud Computing SQL Server  -  Ferrara University

DBSQL databaseRelational SQL Server Engine in the CloudClustered for high availabilityFully Managed ServiceSQL Reporting support

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 81: Web Cloud Computing SQL Server  -  Ferrara University

SQL AzureDemo

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 82: Web Cloud Computing SQL Server  -  Ferrara University

A Server Is Not A Machine

SQL Server

A Machine

SQL Database

Server

A TDS Endpoint

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 83: Web Cloud Computing SQL Server  -  Ferrara University

Server ProvisioningServer DefinedService head that contains databases

Connect via automatically generated FQDN (xxxdatabasewindowsnet)

Initially contains only a master database

Provision Servers InteractivelyLog on to Windows Azure Management Portal

Create a SQL Database server

Specify admin login credentials

Add firewall rules and enable service access

Automate Server ProvisioningUse Windows Azure Platform PowerShell cmdlets (or use REST API directly)

wappowershellcodeplexcom

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 84: Web Cloud Computing SQL Server  -  Ferrara University

SQL Database Architecture

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 85: Web Cloud Computing SQL Server  -  Ferrara University

Services Layer

Services Layer

Internet

SQL Database Firewall

SQL Database Firewall

Securing your dataIP Address-based access control for SQL Database

Rules can be defined at the server and database

No IP authorized by default

Configurable using the SQL Database Portal and REST API

Option to disableenable access from applications hosted in Windows Azure

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 86: Web Cloud Computing SQL Server  -  Ferrara University

Multiple languages httpWindowsAzurecom

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 87: Web Cloud Computing SQL Server  -  Ferrara University

Open source

httpgithubcomwindowsazure

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 88: Web Cloud Computing SQL Server  -  Ferrara University

Start nowhttpWindowsAzurecom

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 89: Web Cloud Computing SQL Server  -  Ferrara University

httpswwwfacebookcommspferrara

Questionshellipask to Ferrara MSP

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 90: Web Cloud Computing SQL Server  -  Ferrara University

http1drvms1nDUHBr

FeedbackPlease

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91
Page 91: Web Cloud Computing SQL Server  -  Ferrara University

gtThanks91

  • SQL + WEB + CLOUD
  • Slide 2
  • Slide 3
  • Cloud Computing
  • Cloud Computing (2)
  • Windows Azure
  • Slide 7
  • Global Footprint
  • Pay only for what you use
  • Slide 10
  • Windows Azure (2)
  • Slide 12
  • Virtual Machines
  • Cloud First Provisioning
  • Linux on Windows Azure
  • Gallery Images Available
  • Virtual Machine Sizes
  • Slide 18
  • Slide 19
  • Supported Web Frameworks
  • Supported Publishing Methods
  • Web sites
  • Web sites
  • Web sites (2)
  • Web sites (3)
  • Web sites (2)
  • WordPress amp WebMatrix
  • Windows Azure Web App Gallery
  • SQL Server
  • SQL Server VS Access
  • SQL Server Components
  • SQL Server Management Tools
  • Concurrency Control
  • Transaction
  • Concurrency Problems
  • Locking Strategies
  • Isolation Levels and Locking
  • Isolation Levels and Concurrency in SQL
  • A History and Definition of ANSI SQL and T-SQL
  • Introduction to Basic T-SQL Syntax
  • Elements of the SELECT Statement
  • Retrieving Columns in a Table
  • INSERT Fundamentals
  • DELETE Fundamentals
  • UPDATE Fundamentals
  • Types of T-SQL Operators
  • What Are T-SQL Functions
  • What Are T-SQL Variables
  • SQL Server Database Objects
  • Syllabus
  • Authentication
  • Schemas
  • Schemas
  • Creating users
  • Creating users (2)
  • Roles
  • Fixed server roles
  • Assign a login to a Fixed server roles
  • Slide 59
  • Slide 60
  • Chi egrave Avanade
  • Avanade in 120 seconds
  • Cosa offriamo
  • Opportunitagrave Professionali
  • ASPnet
  • Slide 66
  • Benefits of the NET Framework
  • Components of the NET Framework
  • Visual Studio The Tool for Development
  • Overview of ASPNET
  • Client-Server Interaction
  • What Is ASPNET
  • Components of ASPNET Applications
  • Generating and Rendering Markup ampCode
  • ASPNET Dynamic Compilation Execution Model
  • ASPNET Extensions
  • Slide 77
  • Slide 78
  • Slide 79
  • Slide 80
  • SQL Azure
  • A Server Is Not A Machine
  • Server Provisioning
  • SQL Database Architecture
  • SQL Database Firewall
  • Slide 86
  • Slide 87
  • Slide 88
  • Slide 89
  • Slide 90
  • Slide 91