Hướng dẫn javascript connect to database - javascript kết nối với cơ sở dữ liệu
Chuyển đến nội dung chính Trình duyệt này không còn được hỗ trợ nữa. Show Hãy nâng cấp lên Microsoft Edge để tận dụng các tính năng mới nhất, bản cập nhật bảo mật và hỗ trợ kỹ thuật. Quickstart: Use Node.js to query a database in Azure SQL Database or Azure SQL Managed Instance
Trong bài viết nàyApplies to: Azure SQL Database Azure SQL Managed Instance Azure SQL Database Azure SQL Managed InstanceIn this quickstart, you use Node.js to connect to a database and query data. PrerequisitesTo complete this quickstart, you need:
Important The scripts in this article are written to use the Adventure Works database.Adventure Works database. Get server connection informationGet the connection information you need to connect to the database in Azure SQL Database. You'll need the fully qualified server name or host name, database name, and login information for the upcoming procedures.
Create the projectOpen a command prompt and create a folder named sqltest. Open the folder you created and run the following command:
Thêm mã để truy vấn cơ sở dữ liệu
Ghi chú Ví dụ mã sử dụng cơ sở dữ liệu mẫu AdventureWorkslt trong cơ sở dữ liệu Azure SQL.AdventureWorksLT sample database in Azure SQL Database. Chạy mã
Bước tiếp theo
Phản HồIGửi và xem ý kiến ph |