TAILIEUCHUNG - Hướng dẫn học Microsoft SQL Server 2008 part 19

Giao tiếp với SQL Server Hai lý do chính để giao tiếp với SQL Server là để quản lý máy chủ và sử dụng các dữ liệu chứa trên máy chủ một cách nào đó. Không chỉ là các quản trị viên dự kiến sẽ quản lý các máy chủ có hiệu quả, chúng tôi cũng thường xuyên yêu cầu trích xuất một số dữ liệu của công ty gửi cho một ứng dụng khác, để cập nhật nhanh chóng để sửa một vấn đề, hoặc khác. | Part I Laying the Foundation errmsg errmsg Error Message error 0 . errmsg errmsg Error Message error 0 .FullyQualifiedErrorId log New-Object Application MyPowerShellScript errmsg Trap Handle the error Error_Handler End the program. break Your code here Then the event log can be queried using the following cmdlet get-Eventlog application where-Object -like Error format-Table This enables consistent notification of errors in PowerShell scripts. Communicating with SQL Server The two main reasons for communicating with SQL Server are to manage the server and to use the data contained on the server in some way. Not only are administrators expected to manage the server efficiently they re also frequently asked to extract some corporate data to send to another application to make quick updates to correct a problem or other such requests. SQL Server management can be done from PowerShell or any other .NET language using the Server Management Objects library and the data can be accessed using . SQL Server Management Objects SQL Server Management Objects SMO and its related sisters RMO for Replication Management Objects and AMO for Analysis Services Management Objects are object libraries that provide a programmatic way to manage Microsoft SQL. SMO can be used to manage SQL Server 2000 2005 and 2008. It was introduced with SQL Server 2005 but supports the management of SQL Server 2000 instances as well. SMO was built using the .NET Framework so the objects it exposes are available in PowerShell. 142 Scripting with PowerShell 7 SMO has been designed to be easier to use and more efficient than its predecessor DMO Distributed Management Objects . For example when returning the collection of databases for a server SMO will only return the name and the schema for the databases on the server. DMO would return the fully instantiated collections of every database on that

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.