Quantcast Publish CSDL cục bộ sử dụng Data Publish Wizard

Publish CSDL cục bộ sử dụng Data Publish Wizard

by Neon Quach 28. September 2009 02:48

Publish CSDL cục bộ sử dụng Data PublishWizard

Giới thiệu

Như 1 người phát triển web, mình hay làm việc với dử liệu trên local (máy cục bộ) trước khi đưa chúng lên mạng (go live), và 1 trong những giai đoạn cuối của việc test trên local là đưa database cũng như data của nó lên host.

Mình hay dùng tiện ích Data Publish Winzard, 1 tiện ích mà khi cài Visual Studio 2008.

Cách thực hiện

Note: Data Publish Winzard có thể cài đặt riêng lẻ phiên bản chạy độc lập.

1. Khởi động VS
2. View 
Server Explorer
3. Data Connection 
Add Connection



4. Chọn Provider là Microsoft Sql Server.
5. Add Northwind Connectin



6. Chọn database 
Publish to provider






7. Chọn database Northwind



Uncheck Script all objects in the selected database, nếu muốn tùy chọn các đối tượng được publish.

8. Chọn location



9. Chọn schema option



Chú ý: type of data to publish ở đây có 3 tùy chọn:
- Data only: chỉ publish data (generate insert script)
- Schema and data: Cấu trúc database và dữ liệu.
- Schema only: chỉ publish cấu trúc.

Next 
finished



Xong, giờ thì các bạn có thề dùng sql script này chạy trên database server.



Reference

Tags: ,


Categories: sql | vs .net

blog comments powered by Disqus

About me

I'm  currently employed as Software developer at devinition.com and also a Microsoft Certified Technology Specialist (MCTS), Microsoft Certified Professional Developer (MCPD) in Net Framework 2.0 and 3.5: Web Applications and MCTS .NET Framework 3.5, ADO.NET Applications

Powered by BlogEngine.NET 2.5.0.5 - Eco Theme by n3o Web Designers