
始める前に
- ラボでは、Google Cloud プロジェクトとリソースを一定の時間利用します
- ラボには時間制限があり、一時停止機能はありません。ラボを終了した場合は、最初からやり直す必要があります。
- 画面左上の [ラボを開始] をクリックして開始します
Create Cloud SQL instance
/ 5
Make connection from the SSMS Object Explorer
/ 5
Create database in Cloud SQL instance
/ 5
In this lab, you will create and connect to a Cloud SQL for SQL Server instance and perform basic SQL operations using the Google Cloud Console and a client.
In this lab, you will learn how to perform the following tasks:
For each lab, you get a new Google Cloud project and set of resources for a fixed time at no cost.
Sign in to Qwiklabs using an incognito window.
Note the lab's access time (for example, 1:15:00
), and make sure you can finish within that time.
There is no pause feature. You can restart if needed, but you have to start at the beginning.
When ready, click Start lab.
Note your lab credentials (Username and Password). You will use them to sign in to the Google Cloud Console.
Click Open Google Console.
Click Use another account and copy/paste credentials for this lab into the prompts.
If you use other credentials, you'll receive errors or incur charges.
Accept the terms and skip the recovery resource page.
In the Cloud Console, on the Navigation menu (), click SQL.
Click Create instance.
For Choose your database engine, select Choose SQL Server.
Enter myinstance
for Instance ID.
Enter Password01
for the Password of the default sqlserver user.
Use the default values for the other fields.
Click Create Instance.
Wait for your instance to finish provisioning before moving on to the next step. This will take about 5 minutes.
Click Check my progress to verify the objective.
For this lab, you are provided with a Windows Server Virtual Machine that has SQL Server Management Studio preinstalled. You will use this VM to walkthrough connecting to your instance.
On the Navigation menu (), click Compute Engine > VM instances.
In the VM instances list, click RDP in the row for your VM instance ssms_vm.
student
Password01
Once logged into your remote desktop window, SQL Server Management Studio will begin loading on startup. While it loads, you can connect your Windows Virtual Machine to your Cloud SQL instance with Cloud SQL Auth Proxy.
Click the Windows button. Type powershell
.
Double-click PowerShell 7 (x64) from the results to open a PowerShell window.
A message similar to the following should appear:
If it hasn't already, wait for the SSMS window to fully load.
Database Engine
.127.0.0.1
.SQL Server Authentication
.sqlserver
.Password01
.Click Check my progress to verify the objective.
testdb
for the Database name and click the OK button.
Click Check my progress to verify the objective.
guestbook
.entryID
, set its Data Type to int, and clear the Allow Nulls checkbox.guestname
and set its Data Type to varchar(MAX).content
and set its Data Type to varchar(MAX).As an example:
The two records you inserted are displayed as Results, along with the SQL SELECT statement used to query the records.
You created a SQL Server instance on Google Cloud and connected to it using SQL Server Management Studio!
In this lab, you learned how to perform the following tasks:
Copyright 2022 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
このコンテンツは現在ご利用いただけません
利用可能になりましたら、メールでお知らせいたします
ありがとうございます。
利用可能になりましたら、メールでご連絡いたします
1 回に 1 つのラボ
既存のラボをすべて終了して、このラボを開始することを確認してください