SlideShare a Scribd company logo
1 of 40
Download to read offline
#sqlsatMoscow 
Windows AzureSQL Database Tipsand Tricksfor Beginners 
Tobiasz Janusz Koprowski 
SQL Server MVP, FORG+
#sqlsatMoscow 
Спонсоры
#sqlsatMoscow 
Sponsors
#sqlsatMoscow 
ABOUT ME 
PolishSQL Server User GroupLeader 
Microsoft CertifiedTrainer(MCP, MCSA, MLSS, MLSBS, MCTS, MCITP) 
SQL Server MVP (fouryearsin a row) 
Blogger, Influencer, Technical Writer 
Last8 yearslivingin Data Center in Wrocław 
About14 years in IT/banking area 
Speaker at SQL Server Community Launch, Time for SharePoint, CodeCamps, SharePoint Community Launch, CISSP Day, SQL in the City, InfoTRAMS, SQL Bits, SQL Saturday, CareerCon, Sharepoint& SQL Connection, IT Camp, SQL Rally, SQL Relay… 
DeepDivesCo-Author: 
High availability of SQL Server in the context 
of Service Level Agreements(Chapter18th) 
Technical reviewer: 
ExploringMDX for SQL Server 2012 
@KoprowskiT
#sqlsatMoscow 
AGENDA 
PART ONE: SQL Azure 
Introduction 
Security and errors 
Compability 
Scenarios 
PART TWO: Demo 
Easycreate 
Easymanage 
PART THREE: Cloud Services 
Backupand Restore, 
Synchronize andSchedule 
PART THREE: 
additionallinks 
Q&A
#sqlsatMoscow 
PART ONE: SQL AzureDatabase
#sqlsatMoscow 
ShortIntroduction 
•Windows Azure Compute: Virtualized compute environment based on Windows ServerStorage: Durable, scalable, & available storageManagement: Automated, model-driven management of the service 
•SQL Azure (cloud-based database) Database: Relational processing for structured/unstructured data 
•App Fabric (.NET services) Service Bus: General purpose application busAccess Control: Rules-driven, claims-based access control
#sqlsatMoscow 
Security Requirementsfor AzurePlatform 
AsaServiceProviderMicrosofthasanobligationtopassingtheseveralrulesforsecurity: 
•ISO/IEC27001:2005 
•SAS70Type1andII 
Alsotheypassing(continuisly)severaldatasecuringaudits: 
•PCIDSS 
•SOXcompliance 
•HIPAAcompliance 
AndofcourserequirementsforDataCenters: 
•Physical security of the data centers (locks, cameras, biometric devices, card readers, alarms) 
•Firewalls, application gateways and IDS to protect the network 
•Access Control Lists (ACLs) applied to virtual local area networks (VLANs) and applications 
•Authentication and authorization of persons or processes that request access to data 
•Hardening of the servers and operating system instances 
•Redundant internal and external DNS infrastructure with restricted write access 
•Securing of virtual machine objects 
•Securing of static and dynamic storage containers
#sqlsatMoscow 
Windows AzureDataCenters 
Some datacenters have servers grouped inside containers -each containing 1800-2500 servers. 
North America 
North-central US -Chicago, IL 
South-central US -San Antonio, TX 
West US -California 
East US -Virginia 
Asia 
East Asia -Hong Kong, China 
South East Asia -Singapore 
Europe 
North Europe -Dublin, Ireland 
West Europe -Amsterdam, Netherlands 
Japan 
Japan East, the Tokyo area 
Japan West, the Kansai area 
Oceania (announced, coming soon) 
Sydney, New South Wales 
Melbourne, Victoria
#sqlsatMoscow 
PART ONE: SQL Azure 
We want to work with SQL Azure (oops SQL Database) 
Size doesit matter? 
Personal: 1GB, 5GB 
Business: 10GB, 20GB, 30GB, 40GB, 50GB, 100GB, 150GB (3x50) 
“Private”: less than 100 MB ($4.995 / month) 
Version does it matter? 
10.25 my firstexperience, but afterJuly 2011 Service Release… 
11.00 now> closeto SQL Server 2012 
Collation does it matter? 
defaultcollation: SQL_Latin1_General_CP1_CI_AS 
table level collation 
error msg 40544: 
The database has reached its size quota. Partition or delete data, drop indexes, or consult the documentation for possible resolutions.
#sqlsatMoscow 
PART ONE: SQL Database 
Naming, Logins, Users 
Admin, administrator, guest, root, sa 
Data Migration Support 
Youcanuse: 
SQL Server 2008 Integration Services (SSIS) 
The bulkcopyutility(BCP.exe) 
System.Data.SqlClient.SqlBulkCopyclass 
Scripts thatuseINSERT statementsto loaddata intothe database 
SQL Data Compare from Red Gate 
Youcan'tuse: 
The RESTORE statement. 
Attachinga databaseto the SQL Database server. 
No SQL Server Agent (almost) 
No SQL Server jobs 
No SQL Server Browser 
No Cross Database queries
#sqlsatMoscow 
PART ONE: SQL Database 
Indexes, of courseindexes 
You MUST use CLUSTERED INDEX with your (Azure)SQL Database. 
Heap tables are not supportes, so You MUST create CLUSTERED INDEX before INSERT will be executed 
error msg 40054: 
Tables without a clustered index are not supported in this version of SQL Server.Create a clustered index and try again. 
CREATETABLESource(IdintNOTNULLIDENTITY, [Name]nvarchar(max), 
CONSTRAINT[PK_Source]PRIMARYKEYCLUSTERED 
( 
[Id]ASC 
))
#sqlsatMoscow 
PART ONE: SQL Database 
Closed connections to the service… by the service 
Becauseof multi-tenant: 
Excessive resource usage 
Connections that have been idle for 30 minutes or longer (Program assuming your connection is going to fail) 
Failover because of server failures 
errors: 
40197, 40501, 40544, 40549, 40550, 40551, 40552, 40553, and 40613
#sqlsatMoscow 
Hardware Boundary 
Hardware Boundary 
Hardware Boundary 
Hardware Boundary 
Shared Environment 
B 
C 
D 
A 
A 
B 
B 
C 
C 
D 
D 
A
#sqlsatMoscow 
Sample of SQL Compability 
In Scope for v1 
Constants 
Constraints 
Cursors 
Index management and rebuilding indexes 
Local temporary tables 
Reserved keywords 
Stored procedures 
Statistics management 
Transactions 
Triggers 
Tables, joins, and table variables 
Transact-SQL language elements such as 
Create/drop databases 
Create/alter/drop tables 
Create/alter/drop users and logins 
and so on. 
User-defined functions 
Views 
Out of Scope for v1 
Common Language Runtime (CLR) 
Database file placement 
Database mirroring 
Distributed queries 
Distributed transactions 
Filegroup management 
Global temporary tables 
Spatial data and indexes 
SQL Server configuration options 
SQL Server Service Broker 
System tables 
Trace Flags 
Physical server or catalog DDL and views
#sqlsatMoscow 
SQLServer 2005 {9.0}NON-Compability 
Common Language Runtime (CLR) and CLR User-Defined Types 
Database Mirroring 
Service Broker 
Table Partitioning 
Typed XML and XML indexing is not supported. The XML data type is supported by SQL Azure.
#sqlsatMoscow 
SQL Server 2008 {10.0} NON-Compability 
Change Data Capture 
Data Auditing 
Data Compression 
Extended Events 
External Key Management / Extensible Key Management 
FILESTREAM Data 
Integrated Full-Text Search 
Large User-Defined Aggregates (UDAs) 
Large User-Defined Types (UDTs) 
Performance Data Collection (Data Collector) 
Policy-Based Management 
Resource Governor 
SQL Server Replication 
Transparent Data Encryption
#sqlsatMoscow 
SQL Server 2008 R2 {10.50} NON-Compability 
SQL Server Utility 
SQL Server PowerShell Provider 
Master Data Services 
SQL Server Management Studio does not support Windows Azure SQL Database in versions prior to SQL Server 2008 R2
#sqlsatMoscow 
Connection Model 
When writing applications for Windows Azure SQL Database, you can use the following drivers and libraries: 
• .NET Framework Data Provider for SQL Server (System.Data.SqlClient) from the .NET Framework 3.5 Service Pack 1 or later. 
• Entity Framework from the .NET Framework 3.5 Service Pack 1 or later. 
• SQL Server 2008 R2 Native Client ODBC driver. SQL Server 2008 Native Client ODBC driver is also supported, but has less functionality. 
• SQL Server 2008 Driver for PHP version 1.1 or later. 
• An updated version of SQL Server JDBC Driver 3.0 that supports SQL Database. 
Windows Azure SQL Database supports tabular data stream (TDS) protocol client version 7.3 or later. Earlier versions of TDS protocol are not supported. 
Connecting to Windows Azure SQL Database by using OLE DB or ADO is not supported 
Support for ASP.NET controls 
Clients connect directly to a database
#sqlsatMoscow 
Security Model 
Uses regular SQL security model 
Authenticate logins, map to users and roles 
Authorize users and roles to SQL objects 
Support for standard SQL Authlogins 
Username + password 
Future AD Federation, WLID–Windows Live ID, etcas alternate authentication protocols 
[admin, administrator, guest, root, sa] Security model is 100% compatible with on-premise SQL
#sqlsatMoscow 
Scenarios for V1 
•Departmental Applications 
‒Simple application built by individual or department 
‒Need simple deployment, self-management, IT: “Empowerment and Governance” 
•Web Applications 
‒Small business or startup that uses the cloud as their IT 
‒Simple deployment, self-management, scale on demand 
•ISV 
‒ISV hosting software on behalf of customer 
‒Multi-tenant support for billing and isolation 
•Data Hub (Shortly After V1) 
‒Sharing and aggregating of data across tiers and across enterprises 
‒Centralized place for data, high scale, sync with existing data sources
PART ONE: SQL Database 
Point of Difference On-premise SQL Server Windows Azure SQL Database 
Where you manage server-level security 
The Security folder in SQL Server 
Management Studio'sObject Explorer 
The master database 
Server-level security role for creating logins securityadmin fixed server role 
loginmanager database role in the master 
database 
Commands for managing logins 
CREATE LOGIN CREATE LOGIN 
ALTER LOGIN ALTER LOGIN 
DROP LOGIN DROP LOGIN 
(There are some parameter limitations and you 
must be connected to the master database) 
View that shows all logins 
sys.syslogins (sys.sql_logins for SQL Server 
authentication logins) 
sys.sql_logins 
(You must be connected to 
the master database) 
Server-level role for creating databases dbcreator fixed database role 
dbmanager database role in the master 
database 
Command for creating a database CREATE DATABASE 
CREATE DATABASE 
(There are some parameter limitations and you 
must be connected to the master database) 
Dropping databases DROP DATABASE 
DROP DATABASE 
If a user is in the dbmanager role, they have 
permission to DROP any database, regardless 
of which user originally created it. 
View that lists all databases 
sys.databases sys.databases 
(view) 
(You must be connected to 
the master database) 
22 |
#sqlsatMoscow 
PART ONE: SQL Database 
Adventure… 
… of course Adventure Works 2012 for SQL Database 
Adventure Works for SQL Server 2012 
Release date: March 2012 
Adventure Works for SQL Azure 
Release date: April 2012
#sqlsatMoscow 
PART TWO: WASD Demo
#sqlsatMoscow 
PART TWO: CloudServices
#sqlsatMoscow 
PART TWO: CloudServices 
What is Cloud Services from RedGate? 
Suite of tools to help managing cloud services 
Came out of SQL Azure Backup 
Launched in Feb2012–continually developing 
Contain different, but integrated features 
Set up SQL Azure backup/restore 
Back up/Restoreyour Blob storage 
Back up/RestoreAzure table 
Flexible scheduling 
Receive automated emails after each job 
Quickly review your job 
Control how your SQL Azure backups are named
#sqlsatMoscow 
PART TWO: Backupand Restore 
Backup to Azure Blob Storage or Amazon S3 
Format is a .bacpac 
Zip file containing xml schema and jsondata 
Permissions needed for a transactional backup 
dbmanagerand dbo 
( CREATE DATABASE x AS COPY OF y) 
To export to bacpacfile 
dbo
#sqlsatMoscow 
PART TWO: Backup Demo
#sqlsatMoscow 
PART TWO: Storage Backup 
Backup between Azure Storage and Amazon S3 
Checksum or filename comparison 
Copies only updated or added files 
Deleted files are not removed currently 
New features coming fast 
Architected to support more storage systems
#sqlsatMoscow 
PART TWO: Storage Demo
#sqlsatMoscow 
PART TWO: Future…
#sqlsatMoscow 
APPENDIX: links& demos
#sqlsatMoscow 
Most ImportantArticle(in my privateopinion) 
http://bit.ly/WIHlDL 
Authors:Conor Cunningham,Tobias Ternström,Silvano Coriani,Ewan Fairweather 
Contributing Author:Ralph Squillace
#sqlsatMoscow 
MSDN SQL Database District 
Windows Azure SQL Database (formerly SQL Azure)| http://bit.ly/H0Wdfx 
What's New in Windows Azure SQL Database (formerly SQL Azure) 
Backward Compatibility in Windows Azure SQL Database 
Known Issues in Windows Azure SQL Database 
Introducing Windows Azure SQL Database 
Tutorials 
Feedback and Community Information 
Windows Azure Platform Management Portal 
Windows Azure SQL Database Concepts 
Administration 
Development 
Guidelines and Limitations 
Management REST API Reference 
Transact-SQL Reference 
Errors and Exceptions Reference
#sqlsatMoscow 
APPENDIX: additionallinks 
Red Gate Cloud Ready Services 
http://cloudservices.red-gate.com/ 
Windows AzureDataCenterVideo 
http://www.youtube.com/watch?v=JJ44hEr5DFE 
General Guidelines and Limitations (Windows Azure SQL Database) 
http://bit.ly/11wB6cK 
Adventure Works for SQL Database (formerly SQL Azure) 
http://bit.ly/125s0W0 
Federations: Building Scalable, Elastic, and Multi-tenant Database Solutions 
http://bit.ly/ZxzjmQ| http://bit.ly/15GzIEE 
Error Messages (Windows Azure SQL Database) 
http://bit.ly/17tnQtE 
Compare SQL Server with Windows Azure SQL Database 
http://bit.ly/15RyB5u
#sqlsatMoscow 
APPENDIX: additionallinks 
SQLDatabaseMigrationWizardv3.9.14.1&v4.0.17.1 
ProjectDescription 
SQLDatabaseMigrationWizard(SQLAzureMW)isdesignedtohelpyoumigrateyourSQLServer2005/2008/2012databasestoAzureSQLDatabase. 
Requirements 
SQLAzureMWv3xandtoolsrequiresSQLServer2008R2SP1bitstorun. 
SQLAzureMWv4xandtoolsrequiresSQLServer2012bitstorun. 
AzureMWBatchBackup: 
Thisisusedtocreateabackupofadatabaseschemaanddata.ThedataisdownloadedviaBCP.TheTSQLoutputfromSQLAzureMWBatchBackupcanbeusedbySQLAzureMWorSQLAzureMWBatchUpload. 
SQLAzureMWBatchUpload: 
TakestheoutputfromSQLAzureMWorSQLAzureMWBatchBackupandrunsitagainstthetargetAzureSQLDatabase(orSQLServer)server.
#sqlsatMoscow
#sqlsatMoscow 
AFTER SESSION 
CONTACT: 
MAIL: KoprowskiT@windowslive.com 
MSG: KoprowskiT@windowslive.com 
TWITTER/FACEBOOK/LINKEDIN: KoprowskiT 
SLIDES FROM SESSION: 
SQLSatPage: http://www.sqlsaturday.com/290/schedule.aspx 
SlideShareProfile: http://www.slideshare.net/Anorak 
BLOGS: 
ITPRO Anorak’sVision: http://itblogs.pl/notbeautifulanymore/ 
Volume LicensingSpecialites: http://koprowskit.eu/licensing/ 
My MVP Blog: http://koprowskit.eu/geek/
#sqlsatMoscow 
Sponsors
#sqlsatMoscow 
Дужедякую! 
Q & A

More Related Content

What's hot

AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...
AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...
AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...
Michael Noel
 
KoprowskiT - SQLBITS X - 2am a disaster just began
KoprowskiT - SQLBITS X - 2am a disaster just beganKoprowskiT - SQLBITS X - 2am a disaster just began
KoprowskiT - SQLBITS X - 2am a disaster just began
Tobias Koprowski
 
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorldSQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
Polish SQL Server User Group
 
SQL Server Clustering for Dummies
SQL Server Clustering for DummiesSQL Server Clustering for Dummies
SQL Server Clustering for Dummies
Mark Broadbent
 
Sql 2012 always on
Sql 2012 always onSql 2012 always on
Sql 2012 always on
dilip nayak
 
Pre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctlyPre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctly
Antonios Chatzipavlis
 
SQL Server Cluster Presentation
SQL Server Cluster PresentationSQL Server Cluster Presentation
SQL Server Cluster Presentation
webhostingguy
 
SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...
SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...
SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...
Michael Noel
 

What's hot (20)

SQL Azure for ITPros
SQL Azure for ITProsSQL Azure for ITPros
SQL Azure for ITPros
 
AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...
AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...
AUDWC 2016 - Using SQL Server 20146 AlwaysOn Availability Groups for SharePoi...
 
SQL Server - High availability
SQL Server - High availabilitySQL Server - High availability
SQL Server - High availability
 
Keep your environment always on with sql server 2016 sql bits 2017
Keep your environment always on with sql server 2016 sql bits 2017Keep your environment always on with sql server 2016 sql bits 2017
Keep your environment always on with sql server 2016 sql bits 2017
 
KoprowskiT - SQLBITS X - 2am a disaster just began
KoprowskiT - SQLBITS X - 2am a disaster just beganKoprowskiT - SQLBITS X - 2am a disaster just began
KoprowskiT - SQLBITS X - 2am a disaster just began
 
SQL Server Clustering Part1
SQL Server Clustering Part1SQL Server Clustering Part1
SQL Server Clustering Part1
 
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorldSQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
 
SQL Server Clustering for Dummies
SQL Server Clustering for DummiesSQL Server Clustering for Dummies
SQL Server Clustering for Dummies
 
SQL Server Clustering and High Availability
SQL Server Clustering and High AvailabilitySQL Server Clustering and High Availability
SQL Server Clustering and High Availability
 
KoprowskiT_SQLSat152_Bulgaria_HighAvailabilityOfSQLintheContextOfSLA
KoprowskiT_SQLSat152_Bulgaria_HighAvailabilityOfSQLintheContextOfSLAKoprowskiT_SQLSat152_Bulgaria_HighAvailabilityOfSQLintheContextOfSLA
KoprowskiT_SQLSat152_Bulgaria_HighAvailabilityOfSQLintheContextOfSLA
 
Compare Clustering Methods for MS SQL Server
Compare Clustering Methods for MS SQL ServerCompare Clustering Methods for MS SQL Server
Compare Clustering Methods for MS SQL Server
 
Sql 2012 always on
Sql 2012 always onSql 2012 always on
Sql 2012 always on
 
SQL Server Alwayson for SharePoint HA/DR Step by Step Guide
SQL Server Alwayson for SharePoint HA/DR Step by Step GuideSQL Server Alwayson for SharePoint HA/DR Step by Step Guide
SQL Server Alwayson for SharePoint HA/DR Step by Step Guide
 
Pre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctlyPre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctly
 
SQL Server Cluster Presentation
SQL Server Cluster PresentationSQL Server Cluster Presentation
SQL Server Cluster Presentation
 
SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...
SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...
SQL 2012 AlwaysOn Availability Groups for SharePoint 2013 - SharePoint Connec...
 
SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)
 
SQL Server 2016 AlwaysOn Availability Groups New Features
SQL Server 2016 AlwaysOn Availability Groups New FeaturesSQL Server 2016 AlwaysOn Availability Groups New Features
SQL Server 2016 AlwaysOn Availability Groups New Features
 
SQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
SQL Server AlwaysOn for Dummies SQLSaturday #202 EditionSQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
SQL Server AlwaysOn for Dummies SQLSaturday #202 Edition
 
KoprowskiT_SQLRelayBirmingham_SQLSecurityInTheClouds
KoprowskiT_SQLRelayBirmingham_SQLSecurityInTheCloudsKoprowskiT_SQLRelayBirmingham_SQLSecurityInTheClouds
KoprowskiT_SQLRelayBirmingham_SQLSecurityInTheClouds
 

Viewers also liked (7)

Efektywna nauka
Efektywna naukaEfektywna nauka
Efektywna nauka
 
Permissions script for SQL Permissions
Permissions script for SQL PermissionsPermissions script for SQL Permissions
Permissions script for SQL Permissions
 
Maintenance_Plans_Zupełnie_Znienacka
Maintenance_Plans_Zupełnie_ZnienackaMaintenance_Plans_Zupełnie_Znienacka
Maintenance_Plans_Zupełnie_Znienacka
 
Legenda o smaku wawelskim 1
Legenda o smaku wawelskim 1Legenda o smaku wawelskim 1
Legenda o smaku wawelskim 1
 
PLSSUG Meeting - SQL Server 2008 Licensing
PLSSUG Meeting - SQL Server 2008 LicensingPLSSUG Meeting - SQL Server 2008 Licensing
PLSSUG Meeting - SQL Server 2008 Licensing
 
Między adaptacją a oporem
Między adaptacją a oporemMiędzy adaptacją a oporem
Między adaptacją a oporem
 
Dzień Szantusia
Dzień SzantusiaDzień Szantusia
Dzień Szantusia
 

Similar to SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners

Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft SQL Azure - Building Applications Using SQL Azure PresentationMicrosoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft Private Cloud
 
SQL Azure Dec Update
SQL Azure Dec UpdateSQL Azure Dec Update
SQL Azure Dec Update
Eric Nelson
 
SQLCLR For DBAs and Developers
SQLCLR For DBAs and DevelopersSQLCLR For DBAs and Developers
SQLCLR For DBAs and Developers
webhostingguy
 
Dr. Jekyll and Mr. Hyde
Dr. Jekyll and Mr. HydeDr. Jekyll and Mr. Hyde
Dr. Jekyll and Mr. Hyde
webhostingguy
 

Similar to SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners (20)

KoprowskiT_SQLSat230_Rheinland_SQLAzure-fromPlantoBackuptoCloud
KoprowskiT_SQLSat230_Rheinland_SQLAzure-fromPlantoBackuptoCloudKoprowskiT_SQLSat230_Rheinland_SQLAzure-fromPlantoBackuptoCloud
KoprowskiT_SQLSat230_Rheinland_SQLAzure-fromPlantoBackuptoCloud
 
Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft SQL Azure - Building Applications Using SQL Azure PresentationMicrosoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
 
KoprowskiT_SQLSoton_WADBforbeginners
KoprowskiT_SQLSoton_WADBforbeginnersKoprowskiT_SQLSoton_WADBforbeginners
KoprowskiT_SQLSoton_WADBforbeginners
 
Day2
Day2Day2
Day2
 
Sql Sever Presentation.pptx
Sql Sever Presentation.pptxSql Sever Presentation.pptx
Sql Sever Presentation.pptx
 
Sql Azure Pass
Sql Azure PassSql Azure Pass
Sql Azure Pass
 
Sql Azure Pass
Sql Azure PassSql Azure Pass
Sql Azure Pass
 
Introduction To Sql Services
Introduction To Sql ServicesIntroduction To Sql Services
Introduction To Sql Services
 
Azure - Data Platform
Azure - Data PlatformAzure - Data Platform
Azure - Data Platform
 
SQL Azure the database in the cloud
SQL Azure the database in the cloud SQL Azure the database in the cloud
SQL Azure the database in the cloud
 
SQL Azure Dec 2010 Update
SQL Azure Dec 2010 UpdateSQL Azure Dec 2010 Update
SQL Azure Dec 2010 Update
 
SQL Azure Dec Update
SQL Azure Dec UpdateSQL Azure Dec Update
SQL Azure Dec Update
 
SQL Azure
SQL AzureSQL Azure
SQL Azure
 
A to z for sql azure databases
A to z for sql azure databasesA to z for sql azure databases
A to z for sql azure databases
 
SQL or NoSQL, is this the question? - George Grammatikos
SQL or NoSQL, is this the question? - George GrammatikosSQL or NoSQL, is this the question? - George Grammatikos
SQL or NoSQL, is this the question? - George Grammatikos
 
Windows Azure for .NET Developers
Windows Azure for .NET DevelopersWindows Azure for .NET Developers
Windows Azure for .NET Developers
 
KoprowskiT_SQLRelay2014#9_London_FromPlanToBackupToCloud
KoprowskiT_SQLRelay2014#9_London_FromPlanToBackupToCloudKoprowskiT_SQLRelay2014#9_London_FromPlanToBackupToCloud
KoprowskiT_SQLRelay2014#9_London_FromPlanToBackupToCloud
 
KoprowskiT_SQLSat419_WADBforBeginners
KoprowskiT_SQLSat419_WADBforBeginnersKoprowskiT_SQLSat419_WADBforBeginners
KoprowskiT_SQLSat419_WADBforBeginners
 
SQLCLR For DBAs and Developers
SQLCLR For DBAs and DevelopersSQLCLR For DBAs and Developers
SQLCLR For DBAs and Developers
 
Dr. Jekyll and Mr. Hyde
Dr. Jekyll and Mr. HydeDr. Jekyll and Mr. Hyde
Dr. Jekyll and Mr. Hyde
 

More from Tobias Koprowski

More from Tobias Koprowski (20)

KoprowskiT_2AMaDisasterJustBeganAD2018
KoprowskiT_2AMaDisasterJustBeganAD2018KoprowskiT_2AMaDisasterJustBeganAD2018
KoprowskiT_2AMaDisasterJustBeganAD2018
 
DataMindsConnect2018_SECDEVOPS
DataMindsConnect2018_SECDEVOPSDataMindsConnect2018_SECDEVOPS
DataMindsConnect2018_SECDEVOPS
 
KoprowskiT_SQLDay2016_2AMaDisasterJustBegan
KoprowskiT_SQLDay2016_2AMaDisasterJustBeganKoprowskiT_SQLDay2016_2AMaDisasterJustBegan
KoprowskiT_SQLDay2016_2AMaDisasterJustBegan
 
KoprowskiT-Difinify2017-SQL_ServerBackup_In_The_Cloud
KoprowskiT-Difinify2017-SQL_ServerBackup_In_The_CloudKoprowskiT-Difinify2017-SQL_ServerBackup_In_The_Cloud
KoprowskiT-Difinify2017-SQL_ServerBackup_In_The_Cloud
 
KoprowskiT-Difinify2017-SQL_Security_In_The_Cloud
KoprowskiT-Difinify2017-SQL_Security_In_The_CloudKoprowskiT-Difinify2017-SQL_Security_In_The_Cloud
KoprowskiT-Difinify2017-SQL_Security_In_The_Cloud
 
KoprowskiT_SQLSatMoscow_WASDforBeginners
KoprowskiT_SQLSatMoscow_WASDforBeginnersKoprowskiT_SQLSatMoscow_WASDforBeginners
KoprowskiT_SQLSatMoscow_WASDforBeginners
 
KoprowskiT_SQLRelayCaerdydd_SQLSecurityInTheClouds
KoprowskiT_SQLRelayCaerdydd_SQLSecurityInTheCloudsKoprowskiT_SQLRelayCaerdydd_SQLSecurityInTheClouds
KoprowskiT_SQLRelayCaerdydd_SQLSecurityInTheClouds
 
KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015
KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015
KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015
 
KoprowskiT_SBIPTI_Keynote
KoprowskiT_SBIPTI_KeynoteKoprowskiT_SBIPTI_Keynote
KoprowskiT_SBIPTI_Keynote
 
KoprowskiT_SQLSatHolland_SQLServerSecurityInTheCloud
KoprowskiT_SQLSatHolland_SQLServerSecurityInTheCloudKoprowskiT_SQLSatHolland_SQLServerSecurityInTheCloud
KoprowskiT_SQLSatHolland_SQLServerSecurityInTheCloud
 
KoprowskiT_SQLSatDenmark_WASDforBeginners
KoprowskiT_SQLSatDenmark_WASDforBeginnersKoprowskiT_SQLSatDenmark_WASDforBeginners
KoprowskiT_SQLSatDenmark_WASDforBeginners
 
KoprowskiT_Session2_SDNEvent_SourceControlForDBA
KoprowskiT_Session2_SDNEvent_SourceControlForDBAKoprowskiT_Session2_SDNEvent_SourceControlForDBA
KoprowskiT_Session2_SDNEvent_SourceControlForDBA
 
KoprowskiT_session1_SDNEvent_WASDforBeginners
KoprowskiT_session1_SDNEvent_WASDforBeginnersKoprowskiT_session1_SDNEvent_WASDforBeginners
KoprowskiT_session1_SDNEvent_WASDforBeginners
 
KoprowskiT_SQLSaturdayManchester_2AMaDisasterJustbegan
KoprowskiT_SQLSaturdayManchester_2AMaDisasterJustbeganKoprowskiT_SQLSaturdayManchester_2AMaDisasterJustbegan
KoprowskiT_SQLSaturdayManchester_2AMaDisasterJustbegan
 
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersKoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
 
KoprowskiT_SPBizConf_2AMaDisasterJustBegan
KoprowskiT_SPBizConf_2AMaDisasterJustBeganKoprowskiT_SPBizConf_2AMaDisasterJustBegan
KoprowskiT_SPBizConf_2AMaDisasterJustBegan
 
KoprowskiT_InfoTRAMS_TrustThePrimer
KoprowskiT_InfoTRAMS_TrustThePrimerKoprowskiT_InfoTRAMS_TrustThePrimer
KoprowskiT_InfoTRAMS_TrustThePrimer
 
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersKoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
 
KoprowskiT_ESRM_TrustThePrimer
KoprowskiT_ESRM_TrustThePrimerKoprowskiT_ESRM_TrustThePrimer
KoprowskiT_ESRM_TrustThePrimer
 
KoprowskiT_ECCV_Trust.ThePrimer
KoprowskiT_ECCV_Trust.ThePrimerKoprowskiT_ECCV_Trust.ThePrimer
KoprowskiT_ECCV_Trust.ThePrimer
 

Recently uploaded

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Recently uploaded (20)

BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 

SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners

  • 1. #sqlsatMoscow Windows AzureSQL Database Tipsand Tricksfor Beginners Tobiasz Janusz Koprowski SQL Server MVP, FORG+
  • 4. #sqlsatMoscow ABOUT ME PolishSQL Server User GroupLeader Microsoft CertifiedTrainer(MCP, MCSA, MLSS, MLSBS, MCTS, MCITP) SQL Server MVP (fouryearsin a row) Blogger, Influencer, Technical Writer Last8 yearslivingin Data Center in Wrocław About14 years in IT/banking area Speaker at SQL Server Community Launch, Time for SharePoint, CodeCamps, SharePoint Community Launch, CISSP Day, SQL in the City, InfoTRAMS, SQL Bits, SQL Saturday, CareerCon, Sharepoint& SQL Connection, IT Camp, SQL Rally, SQL Relay… DeepDivesCo-Author: High availability of SQL Server in the context of Service Level Agreements(Chapter18th) Technical reviewer: ExploringMDX for SQL Server 2012 @KoprowskiT
  • 5. #sqlsatMoscow AGENDA PART ONE: SQL Azure Introduction Security and errors Compability Scenarios PART TWO: Demo Easycreate Easymanage PART THREE: Cloud Services Backupand Restore, Synchronize andSchedule PART THREE: additionallinks Q&A
  • 6. #sqlsatMoscow PART ONE: SQL AzureDatabase
  • 7. #sqlsatMoscow ShortIntroduction •Windows Azure Compute: Virtualized compute environment based on Windows ServerStorage: Durable, scalable, & available storageManagement: Automated, model-driven management of the service •SQL Azure (cloud-based database) Database: Relational processing for structured/unstructured data •App Fabric (.NET services) Service Bus: General purpose application busAccess Control: Rules-driven, claims-based access control
  • 8. #sqlsatMoscow Security Requirementsfor AzurePlatform AsaServiceProviderMicrosofthasanobligationtopassingtheseveralrulesforsecurity: •ISO/IEC27001:2005 •SAS70Type1andII Alsotheypassing(continuisly)severaldatasecuringaudits: •PCIDSS •SOXcompliance •HIPAAcompliance AndofcourserequirementsforDataCenters: •Physical security of the data centers (locks, cameras, biometric devices, card readers, alarms) •Firewalls, application gateways and IDS to protect the network •Access Control Lists (ACLs) applied to virtual local area networks (VLANs) and applications •Authentication and authorization of persons or processes that request access to data •Hardening of the servers and operating system instances •Redundant internal and external DNS infrastructure with restricted write access •Securing of virtual machine objects •Securing of static and dynamic storage containers
  • 9. #sqlsatMoscow Windows AzureDataCenters Some datacenters have servers grouped inside containers -each containing 1800-2500 servers. North America North-central US -Chicago, IL South-central US -San Antonio, TX West US -California East US -Virginia Asia East Asia -Hong Kong, China South East Asia -Singapore Europe North Europe -Dublin, Ireland West Europe -Amsterdam, Netherlands Japan Japan East, the Tokyo area Japan West, the Kansai area Oceania (announced, coming soon) Sydney, New South Wales Melbourne, Victoria
  • 10. #sqlsatMoscow PART ONE: SQL Azure We want to work with SQL Azure (oops SQL Database) Size doesit matter? Personal: 1GB, 5GB Business: 10GB, 20GB, 30GB, 40GB, 50GB, 100GB, 150GB (3x50) “Private”: less than 100 MB ($4.995 / month) Version does it matter? 10.25 my firstexperience, but afterJuly 2011 Service Release… 11.00 now> closeto SQL Server 2012 Collation does it matter? defaultcollation: SQL_Latin1_General_CP1_CI_AS table level collation error msg 40544: The database has reached its size quota. Partition or delete data, drop indexes, or consult the documentation for possible resolutions.
  • 11. #sqlsatMoscow PART ONE: SQL Database Naming, Logins, Users Admin, administrator, guest, root, sa Data Migration Support Youcanuse: SQL Server 2008 Integration Services (SSIS) The bulkcopyutility(BCP.exe) System.Data.SqlClient.SqlBulkCopyclass Scripts thatuseINSERT statementsto loaddata intothe database SQL Data Compare from Red Gate Youcan'tuse: The RESTORE statement. Attachinga databaseto the SQL Database server. No SQL Server Agent (almost) No SQL Server jobs No SQL Server Browser No Cross Database queries
  • 12. #sqlsatMoscow PART ONE: SQL Database Indexes, of courseindexes You MUST use CLUSTERED INDEX with your (Azure)SQL Database. Heap tables are not supportes, so You MUST create CLUSTERED INDEX before INSERT will be executed error msg 40054: Tables without a clustered index are not supported in this version of SQL Server.Create a clustered index and try again. CREATETABLESource(IdintNOTNULLIDENTITY, [Name]nvarchar(max), CONSTRAINT[PK_Source]PRIMARYKEYCLUSTERED ( [Id]ASC ))
  • 13. #sqlsatMoscow PART ONE: SQL Database Closed connections to the service… by the service Becauseof multi-tenant: Excessive resource usage Connections that have been idle for 30 minutes or longer (Program assuming your connection is going to fail) Failover because of server failures errors: 40197, 40501, 40544, 40549, 40550, 40551, 40552, 40553, and 40613
  • 14. #sqlsatMoscow Hardware Boundary Hardware Boundary Hardware Boundary Hardware Boundary Shared Environment B C D A A B B C C D D A
  • 15. #sqlsatMoscow Sample of SQL Compability In Scope for v1 Constants Constraints Cursors Index management and rebuilding indexes Local temporary tables Reserved keywords Stored procedures Statistics management Transactions Triggers Tables, joins, and table variables Transact-SQL language elements such as Create/drop databases Create/alter/drop tables Create/alter/drop users and logins and so on. User-defined functions Views Out of Scope for v1 Common Language Runtime (CLR) Database file placement Database mirroring Distributed queries Distributed transactions Filegroup management Global temporary tables Spatial data and indexes SQL Server configuration options SQL Server Service Broker System tables Trace Flags Physical server or catalog DDL and views
  • 16. #sqlsatMoscow SQLServer 2005 {9.0}NON-Compability Common Language Runtime (CLR) and CLR User-Defined Types Database Mirroring Service Broker Table Partitioning Typed XML and XML indexing is not supported. The XML data type is supported by SQL Azure.
  • 17. #sqlsatMoscow SQL Server 2008 {10.0} NON-Compability Change Data Capture Data Auditing Data Compression Extended Events External Key Management / Extensible Key Management FILESTREAM Data Integrated Full-Text Search Large User-Defined Aggregates (UDAs) Large User-Defined Types (UDTs) Performance Data Collection (Data Collector) Policy-Based Management Resource Governor SQL Server Replication Transparent Data Encryption
  • 18. #sqlsatMoscow SQL Server 2008 R2 {10.50} NON-Compability SQL Server Utility SQL Server PowerShell Provider Master Data Services SQL Server Management Studio does not support Windows Azure SQL Database in versions prior to SQL Server 2008 R2
  • 19. #sqlsatMoscow Connection Model When writing applications for Windows Azure SQL Database, you can use the following drivers and libraries: • .NET Framework Data Provider for SQL Server (System.Data.SqlClient) from the .NET Framework 3.5 Service Pack 1 or later. • Entity Framework from the .NET Framework 3.5 Service Pack 1 or later. • SQL Server 2008 R2 Native Client ODBC driver. SQL Server 2008 Native Client ODBC driver is also supported, but has less functionality. • SQL Server 2008 Driver for PHP version 1.1 or later. • An updated version of SQL Server JDBC Driver 3.0 that supports SQL Database. Windows Azure SQL Database supports tabular data stream (TDS) protocol client version 7.3 or later. Earlier versions of TDS protocol are not supported. Connecting to Windows Azure SQL Database by using OLE DB or ADO is not supported Support for ASP.NET controls Clients connect directly to a database
  • 20. #sqlsatMoscow Security Model Uses regular SQL security model Authenticate logins, map to users and roles Authorize users and roles to SQL objects Support for standard SQL Authlogins Username + password Future AD Federation, WLID–Windows Live ID, etcas alternate authentication protocols [admin, administrator, guest, root, sa] Security model is 100% compatible with on-premise SQL
  • 21. #sqlsatMoscow Scenarios for V1 •Departmental Applications ‒Simple application built by individual or department ‒Need simple deployment, self-management, IT: “Empowerment and Governance” •Web Applications ‒Small business or startup that uses the cloud as their IT ‒Simple deployment, self-management, scale on demand •ISV ‒ISV hosting software on behalf of customer ‒Multi-tenant support for billing and isolation •Data Hub (Shortly After V1) ‒Sharing and aggregating of data across tiers and across enterprises ‒Centralized place for data, high scale, sync with existing data sources
  • 22. PART ONE: SQL Database Point of Difference On-premise SQL Server Windows Azure SQL Database Where you manage server-level security The Security folder in SQL Server Management Studio'sObject Explorer The master database Server-level security role for creating logins securityadmin fixed server role loginmanager database role in the master database Commands for managing logins CREATE LOGIN CREATE LOGIN ALTER LOGIN ALTER LOGIN DROP LOGIN DROP LOGIN (There are some parameter limitations and you must be connected to the master database) View that shows all logins sys.syslogins (sys.sql_logins for SQL Server authentication logins) sys.sql_logins (You must be connected to the master database) Server-level role for creating databases dbcreator fixed database role dbmanager database role in the master database Command for creating a database CREATE DATABASE CREATE DATABASE (There are some parameter limitations and you must be connected to the master database) Dropping databases DROP DATABASE DROP DATABASE If a user is in the dbmanager role, they have permission to DROP any database, regardless of which user originally created it. View that lists all databases sys.databases sys.databases (view) (You must be connected to the master database) 22 |
  • 23. #sqlsatMoscow PART ONE: SQL Database Adventure… … of course Adventure Works 2012 for SQL Database Adventure Works for SQL Server 2012 Release date: March 2012 Adventure Works for SQL Azure Release date: April 2012
  • 25. #sqlsatMoscow PART TWO: CloudServices
  • 26. #sqlsatMoscow PART TWO: CloudServices What is Cloud Services from RedGate? Suite of tools to help managing cloud services Came out of SQL Azure Backup Launched in Feb2012–continually developing Contain different, but integrated features Set up SQL Azure backup/restore Back up/Restoreyour Blob storage Back up/RestoreAzure table Flexible scheduling Receive automated emails after each job Quickly review your job Control how your SQL Azure backups are named
  • 27. #sqlsatMoscow PART TWO: Backupand Restore Backup to Azure Blob Storage or Amazon S3 Format is a .bacpac Zip file containing xml schema and jsondata Permissions needed for a transactional backup dbmanagerand dbo ( CREATE DATABASE x AS COPY OF y) To export to bacpacfile dbo
  • 28. #sqlsatMoscow PART TWO: Backup Demo
  • 29. #sqlsatMoscow PART TWO: Storage Backup Backup between Azure Storage and Amazon S3 Checksum or filename comparison Copies only updated or added files Deleted files are not removed currently New features coming fast Architected to support more storage systems
  • 30. #sqlsatMoscow PART TWO: Storage Demo
  • 33. #sqlsatMoscow Most ImportantArticle(in my privateopinion) http://bit.ly/WIHlDL Authors:Conor Cunningham,Tobias Ternström,Silvano Coriani,Ewan Fairweather Contributing Author:Ralph Squillace
  • 34. #sqlsatMoscow MSDN SQL Database District Windows Azure SQL Database (formerly SQL Azure)| http://bit.ly/H0Wdfx What's New in Windows Azure SQL Database (formerly SQL Azure) Backward Compatibility in Windows Azure SQL Database Known Issues in Windows Azure SQL Database Introducing Windows Azure SQL Database Tutorials Feedback and Community Information Windows Azure Platform Management Portal Windows Azure SQL Database Concepts Administration Development Guidelines and Limitations Management REST API Reference Transact-SQL Reference Errors and Exceptions Reference
  • 35. #sqlsatMoscow APPENDIX: additionallinks Red Gate Cloud Ready Services http://cloudservices.red-gate.com/ Windows AzureDataCenterVideo http://www.youtube.com/watch?v=JJ44hEr5DFE General Guidelines and Limitations (Windows Azure SQL Database) http://bit.ly/11wB6cK Adventure Works for SQL Database (formerly SQL Azure) http://bit.ly/125s0W0 Federations: Building Scalable, Elastic, and Multi-tenant Database Solutions http://bit.ly/ZxzjmQ| http://bit.ly/15GzIEE Error Messages (Windows Azure SQL Database) http://bit.ly/17tnQtE Compare SQL Server with Windows Azure SQL Database http://bit.ly/15RyB5u
  • 36. #sqlsatMoscow APPENDIX: additionallinks SQLDatabaseMigrationWizardv3.9.14.1&v4.0.17.1 ProjectDescription SQLDatabaseMigrationWizard(SQLAzureMW)isdesignedtohelpyoumigrateyourSQLServer2005/2008/2012databasestoAzureSQLDatabase. Requirements SQLAzureMWv3xandtoolsrequiresSQLServer2008R2SP1bitstorun. SQLAzureMWv4xandtoolsrequiresSQLServer2012bitstorun. AzureMWBatchBackup: Thisisusedtocreateabackupofadatabaseschemaanddata.ThedataisdownloadedviaBCP.TheTSQLoutputfromSQLAzureMWBatchBackupcanbeusedbySQLAzureMWorSQLAzureMWBatchUpload. SQLAzureMWBatchUpload: TakestheoutputfromSQLAzureMWorSQLAzureMWBatchBackupandrunsitagainstthetargetAzureSQLDatabase(orSQLServer)server.
  • 38. #sqlsatMoscow AFTER SESSION CONTACT: MAIL: KoprowskiT@windowslive.com MSG: KoprowskiT@windowslive.com TWITTER/FACEBOOK/LINKEDIN: KoprowskiT SLIDES FROM SESSION: SQLSatPage: http://www.sqlsaturday.com/290/schedule.aspx SlideShareProfile: http://www.slideshare.net/Anorak BLOGS: ITPRO Anorak’sVision: http://itblogs.pl/notbeautifulanymore/ Volume LicensingSpecialites: http://koprowskit.eu/licensing/ My MVP Blog: http://koprowskit.eu/geek/