Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > Windows Azure > Windows Azure and SQL Azure / SQL Database > ตอนที่ 2 : การสร้าง SQL Azure และการใช้งาน SQL Database บน Windows Azure



Clound SSD Virtual Server

ตอนที่ 2 : การสร้าง SQL Azure และการใช้งาน SQL Database บน Windows Azure

ตอนที่ 2 : การสร้าง SQL Azure และการใช้งาน SQL Database เบื้องต้น บน Windows Azure บทความก่อนหน้าที่เราได้รู้จักกับ SQL Azure หรือ SQL Database ว่ามันคืออะไร และเราจะสามารถใช้งานได้อย่างไร สำหรับการเริ่มใช้งาน SQL Database นั้น ก็เหมือนกับ Service ทั่ว ๆ ไป คือจะต้องมีการเริ่มสร้าง Service ขึ้นมา และอาจจะต้องกำหนดพวกข้อมูลที่จำเป็น เช่น Username / Password รวมทั้งรายละเอียดอื่น ๆ ตามที่โปรแกรมต้องการ

ในบทความนี้จะสรุปวิธีการและตัวอย่างการสร้างแบบง่าย ๆ ประกอบด้วยการสร้าง SQL Database การ Login เข้ามาเพื่อจัดการกับ SQL ทั้งบน Web Management และผ่าน Tools เช่น SQL Server Management Studio

Windows Azure and SQL Azure / SQL Database

เริ่มต้นด้วยการสร้าง SQL Database ด้วยการคลิกที่ NEW -> DATA SERVICES -> SQL DATABASE -> CUSTOM CREATE

Windows Azure and SQL Azure / SQL Database

กรอกชื่อ Database เลือกเป็นแบบ WEB และในส่วนของ Server ให้เลือกเป็น New SQL database server

Windows Azure and SQL Azure / SQL Database

กำหนด Username และ Password สำหรับ SQL Database

Windows Azure and SQL Azure / SQL Database

และเมื่อคลิกที่ Service ของ SQL DATABASE ก็จะเห็นรายการของ SQL Database แสดงขึ้นมา 1 รายการ

Windows Azure and SQL Azure / SQL Database

คลิกที่หน้า Dashboard ของ SQL Database แสดงรายละเอียดต่าง ๆ ของ SQL เช่น SERVER NAME ของ Database และจะเห็นเมนูว่า MANAGE URL (ใช้จัดการกับ SQL Server ผ่านเว็บ)








การจัดการกับ SQL Database ในการจัดการกับ SQL Database สามารถทำได้หลายวิธีเช่น ผ่าน URL หรือผ่าน Tools ของ SQL Server Management Studio หรือจะผ่าน Tools พวก Visual Studio ซึ่งจะได้ยกตัวอย่างในหัวข้อถัดไป

Windows Azure and SQL Azure / SQL Database

กรณีที่ MANAGE ผ่าน URL ให้กรอก Username และ Password ที่ได้จากขั้นตอนการ Create

Windows Azure and SQL Azure / SQL Database

จะเห็นว่าตอนนี้มี Error แจ้งว่า

Firewall check failed. Cannot open server 'bc6hela9fr' requested by the login. Client with IP address '27.130.237.206' is not allowed to access the server. To enable access, use the SQL Azure Portal or run sp_set_firewall_rule on the master database to create a firewall rule for this IP address or address range. It may take up to five minutes for this change to take effect.


Windows Azure and SQL Azure / SQL Database

นั้นหมายถึงว่า IP ที่เราทำการเชื่อมต่อเพื่อไปจัดการกับ SQL Database นั้นไม่ได้มีการ Allow ไว้

Windows Azure and SQL Azure / SQL Database

เมื่อทำการ Connect ผ่าน SQL Server Management Studio จากเครื่อง Client ของเรา ก็จะได้ผลลัพธ์เช่นเดียวกัน

Windows Azure and SQL Azure / SQL Database

แสดง Error ว่ายังไม่มีการ Allow หมายเลข IP ที่จะขอเชื่อมต่อ

Windows Azure and SQL Azure / SQL Database

ให้กลับมาที่หน้า Dashboard ของ SQL Database คลิกที่ Manage allow ip addresses

Windows Azure and SQL Azure / SQL Database

จะเห็นว่ามีหมายเลข IP ของเราแสดงเป็นค่า Default (ในกรณี IP แบบ Dynamic จะต้องเพิ่มทุกครั้ง)

Windows Azure and SQL Azure / SQL Database

ให้เพิ่มเข้ามาในรายการ Allow IP

Windows Azure and SQL Azure / SQL Database

จากนั้นคลิกที่ SAVE

Windows Azure and SQL Azure / SQL Database

ทดสอบการ Manage ผ่าน URL อีกครั้ง

Windows Azure and SQL Azure / SQL Database

สามารถเข้าสู่หน้าจอการ Manage ของ SQL Database ผ่าน URL ได้แล้ว

Windows Azure and SQL Azure / SQL Database

ทดสอบการเชื่อมต่อ SQL Server Management Studio อีกครั้ง

Windows Azure and SQL Azure / SQL Database

เข้าสู่หน้าจอ SQL Server Management Studio สำหรับการจัด Database ของ SQL Database บน Windows Azure ซึ่งเราสามารถเพิ่มแก้ไขตารางต่าง ๆ จากเครื่อง Client ของเราได้ทันที

บทความถัดไปที่แนะนำให้อ่าน









อ่านเพิ่มเติม


   
Share


ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท


ลองใช้ค้นหาข้อมูล


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2013-04-29 14:37:03 / 2017-03-24 10:50:59
  Download : No files
 Sponsored Links / Related

 
ตอนที่ 1 : รู้จักกับ Service ของ SQL Azure / SQL Database บน Windows Azure
Rating :

 
ตอนที่ 3 : เชื่อมต่อ SQL Database ผ่าน SQL Server Management Studio (SSMS)
Rating :

 
ตอนที่ 4 : เชื่อมต่อ SQL Azure ผ่าน Microsoft SQL Server Data Tools (SSDT)
Rating :

 
ตอนที่ 5 : การ Backup และ Import Restore บน SQL Azure / SQL Database
Rating :

 
ตอนที่ 6 : SQL Azure รู้จักกับ Connection String สิทธิ์การใช้งาน SQL Database
Rating :

 
ตอนที่ 7 : การใช้งาน SQL Azure ร่วมกับ PHP (SQL Server) (Odbc/sqlsrv/PDO)
Rating :

 
ตอนที่ 8 : เขียน PHP เช่นการ Insert / Update / Delete ข้อมูลบน SQL Database
Rating :

 
ตอนที่ 9 : การเขียน .Net Application ร่วมกับ SQL Database บน Windows Azure
Rating :

 
ตอนที่ 10 : เขียน .NET แบบ Client Server ติดต่อ SQL Azure / SQL Database
Rating :

 
ตอนที่ 11 : การเขียน Java Application ร่วมกับ SQL Database บน Windows Azure
Rating :

 
ตอนที่ 12 : Example : Java กับ JDBC ติดต่อ SQL Database บน Windows Azure
Rating :

 
ตอนที่ 13 : Example : Java GUI ติดต่อ SQL Database บน Windows Azure
Rating :

 
ตอนที่ 14 : Example : JSP (Java) ติดต่อ SQL Database บน Windows Azure
Rating :

 
ตอนที่ 15 : แหล่งความรู้ SQL Azure / Database ประยุกต์กับการเขียนโปรแกรมต่าง ๆ
Rating :


ThaiCreate.Com Forum


Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   







Load balance : Server 02
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่