34
Instructor: Craig Duckett Lecture 13: Thursday, May 10 th , 2018 Microsoft Azure and SQL SERVER INTRO 1 SQL SERVER WALK-THROUGH LAB 13

Instructor: Craig Duckett SQL SERVER WALK-THROUGH …€¦ · Lecture 13: Thursday, May 10. th, 2018. ... (Lessons 1-9, 4 Hours) ... The publisher of this remote connection can’t

  • Upload
    vandiep

  • View
    217

  • Download
    2

Embed Size (px)

Citation preview

Instructor: Craig Duckett

Lecture 13: Thursday, May 10th, 2018Microsoft Azure and SQL SERVER INTRO

1

SQL SERVERWALK-THROUGH

LAB 13

2

• Assignment 2 GRADED! RETURNED! WOOT!

• Assignment 3 is due LECTURE 20, Tuesday, June 5th

• Database Presentation is due LECTURE 20, Tuesday, June 5th

• Final Exam is LECTURE 21, Thursday, June 8th

3

3 x 150 Points (450 points Total)

• Assignment 1 GRADED! • Assignment 2 GRADED!• Assignment 3 (Stage 3): DUE LECTURE 20 Tuesday, June 5th

• Database Presentation: DUE LECTURE 20 Tuesday, June 5th

4

Tuesday (LECTURE 12)• Database Design for Mere Mortals: Chapters 8, 9

Thursday (LECTURE 13)• The Language of SQL: Chapters 11, 12

5

• NO LECTURE: ICE 13 Walk-Through using SQL Server

• Microsoft Azure REFERENCE ONLY• Virtual Server REFERENCE ONLY

6

ICE 13 Walk-Through

7

Microsoft Azure REFERENCE ONLY

What is Microsoft Azure ?

8http://azure.microsoft.com/en-us/overview/what-is-azure/

What is Azure? In short, it’s Microsoft’s cloud platform: a growingcollection of integrated services—compute, storage, data, networking,and app.

Azure provides both infrastructure-as-a-service (IaaS) and platform-as-a-service (PaaS).

Azure supports any operating system, language, tool, and framework—from Windows to Linux, SQL Server to Oracle, C# to Java. It puts thebest of Windows and Linux ecosystems at your fingertips, so you canbuild great applications and services that work with every device.

With Azure you can build and deploy a wide variety of modernapplications for Android, iOS, and Windows that take full advantage ofthe cloud—including web, mobile, media and line-of-business solutions.Automatically scale up and down to meet any need.

The Microsoft Azure Pass Codes

9

One month free trial: https://azure.microsoft.com/en-us/offers/ms-azr-0044p/

Microsoft Azure

10

Recommended Training: Videos, Slide Presentations, Assessments (MVA)

Microsoft Azures Fundamentals: Websites (Lessons 1-9, 4 Hours)http://www.microsoftvirtualacademy.com/training-courses/microsoft-azure-fundamentals-websites

Microsoft Azure: Account Setup and Pre-Requisites with Visual Studio

WHEN USING VISUAL STUDIO 2013 with AZURE

In order to get Microsoft Azure to play nice with other Microsoftapplications that you already have installed (e.g., Visual Studio, SQLServer, etc.) there are a number of steps and pre-requisites that mustbe completed first, or you may find yourself having a difficult time of it,so it is recommended that you use a version of Visual Studio 2013 (thefree Community version is perfectly okay, as well as Pro, Ultimate,Developer, Premium, etc.)

If you are using Visual Studio 2012, then you will have to install theAzure SDK. A compact version installs with Visual Studio 2013, so if youwant additional Azure Tools you could also download and install it.

11

Creating a Virtual Server with SQL Server• After you have successfully created an Azure account, login (using your Microsoft username and

password) to the Azure Management Portal at:

http://manage.windowsazure.com

• On the Azure Management Portal, at the bottom left of the web page,

• click + NEW then

• click COMPUTE, click VIRTUAL MACHINE, click FROM GALLERY.

Creating a Virtual Server with SQL Server• Select a Server and instance of SQL Server (I selected SQL Server 2012 Standard, but you might select it

or something else, like SQL Server 2014 Standard)

Creating a Virtual Server with SQL Server• Give your Virtual Machine a name (e.g., bit275), and create a username and password that you will

remember (the Password must contain an upper-case letter, lower-case letter, number, and specialcharacter like an exclamation point)

Creating a Virtual Server with SQL Server• Use the default settings on the 3rd page, and click through to page 4

Creating a Virtual Server with SQL Server• Use the default settings on the 4th page, and click the checkmark button to finish

Creating a Virtual Server with SQL Server• Your virtual machine will start installing with the Status of Starting (Provisioning)

• Expect the virtual machine status to proceed through:• Starting (Provisioning)• Stopped• Starting (Provisioning)• Running (Provisioning)• Running

NOTE: This cycle through the Statusprocess may take up to 20-30minutes to complete.

Creating a Virtual Server with SQL Server• You can watch your Status in more detail by clicking in the fluctuating green bars in the lower right-

hand corner, then selecting Details

• After your virtual machine has been successfully created, select OK

Creating a Virtual Server with SQL Server• When provisioning completes, click on the name of your virtual machine to go to the DASHBOARD

page. At the bottom of the page, click Connect to create a remote desktop .RDP file (see next slide)

Creating a Virtual Server with SQL Server• Save the remote desktop .RDP file locally by selecting Save File (if not already selected) then OK. Copy

or move this file somewhere where you can access it easily (USB thumb drive or desktop on yourpersonal laptops, NOT on the Cascadia PC desktop because you don’t want to lose it).

Creating a Virtual Server with SQL Server• Double-click on the .RDP file to open• Use the name of the machine as the domain name, followed by your administrator name in this format:

machinename\username. Type your password and connect to the machine.

• The first time you log on, several processes will complete, including setup of your desktop, Windowsupdates, and completion of the Windows initial configuration tasks (sysprep). After Windows sysprepcompletes, SQL Server setup completes configuration tasks. These tasks make cause a delay of a fewminutes while they complete. SELECT @@SERVERNAME may not return the correct name until SQLServer setup completes, and SQL Server Management Studio may not be visable on the start page.

Creating a Virtual Server with SQL Server• Double-click on the .RDP file to open.

• At the “The publisher of this remote connection can’t be identified” window, click Connect

Creating a Virtual Server with SQL Server• At the “Enter your credentials” window, enter the name of your virtual server followed by a bask-slash \

and then the username and password you created previously.

Creating a Virtual Server with SQL Server• At the “The identity of the remote computer cannot be verified…” window, click Yes.

Creating a Virtual Server with SQL Server• The first time you log on, several processes will complete, including setup of your desktop, Windows

updates, and completion of the Windows initial configuration tasks (sysprep). After Windows sysprepcompletes, SQL Server setup completes configuration tasks. These tasks make cause a delay of a fewminutes while they complete. SELECT @@SERVERNAME may not return the correct name until SQLServer setup completes, and SQL Server Management Studio may not be visible on the start page.

• Once you are connected to the virtual machine with Windows Remote Desktop, the virtual machineworks much like any other computer. Connect to the default instance of SQL Server with SQL ServerManagement Studio (running on the virtual machine) in the normal way

Creating a Virtual Server with SQL Server• Click the Windows button in the

lower left-hand corner to change tothe Start Screen.

Creating a Virtual Server with SQL Server• Select the down arrow in the lower left-hand corner to go to the Application screen

Creating a Virtual Server with SQL Server• In the Application screen, scroll over and select SQL Server Management Studio

Creating a Virtual Server with SQL Server• The SQL Server Management Studio will appear launching the app

Creating a Virtual Server with SQL Server• The Connect to Server login screen will appear; select Connect

Creating a Virtual Server with SQL Server• SQL Server will connect and launch and open the Object Explorer column

Creating a Virtual Server with SQL Server• You are now free to start creating and managing databases in the Azure cloud!

Turning off Internet Explorer Enhanced Security Configuration

Keeping the Internet Explorer Enhanced Security Configuration enabled on your servers is recommended to help ensure that your servers are not inadvertently exposed to malware or other browser-based attacks. However, in some environments you might wish to turn off the Internet Explorer Enhanced Security Configuration protections to enable easier browsing for administrators or standard users.

To turn off Internet Explorer Enhanced Security Configuration

1. Close any Internet Explorer browser windows that you might have open.

2. Open Server Manager

3. If your server is running Windows Server® 2008 R2, in the Security Information section of Server Summary, click Configure IE ESC to open the Internet Explorer Enhanced Security Configuration dialog.

If your server is running Windows Server® 2012, click Configure this local server to open the Local Server configuration page. Then, in the Properties area, next to IE Enhanced Security Configuration, click On to open the Internet Explorer Enhanced Security Configuration dialog.

4. To allow members of the local Administrators group to use Internet Explorer in its default client configuration, under Administrators click Off.

To allow members of all other groups to use Internet Explorer in its default client configuration, under Users click Off.

Note

Once the Internet Explorer Enhanced Configuration is turned off for one set of users, Server Manager will display Off next to Internet Explorer Enhanced Security Configuration.

5. Click OK to apply your changes.

Lecture 13: In-Class ExerciseFrom the menu bar, select Lectures and go to the Lectures 13 bar and select Lecture 13 ICE to begin working on today's in-class exercises.

34