TAILIEUCHUNG - Microsoft SQL Server 2000 Data Transformation Services- P10

Microsoft SQL Server 2000 Data Transformation Services- P10: Data Transformation Services in Microsoft SQL Server 2000 is a powerful tool for moving data. It’s easy to use, especially when you’re creating transformation packages with the DTS Wizard. But it’s also a flexible tool that you can customize to gain a high degree of control over the transformation of your data. | Control Tasks Part IV 426 The Execute Process task is one of the least complex of all the DTS tasks. Its only purpose is to run an executable program or a batch file. When to Use the Execute Process Task The importance of the Execute Process task is in the way it integrates DTS packages with other applications and batch processes. Many companies have existing programs that transfer data. You can use DTS as a control panel to run all of your data transformation applications. You can use the various DTS tasks when you want to manipulate data in a new way. You can use the Execute Process task to coordinate your existing data manipulation applications with the rest of what you are doing with DTS. Consider the following specific ways of using the Execute Process task. Bulk Copying from SQL Server to a Text File If you are creating a new bulk copy operation to load SQL Server I suggest that you use the Bulk Insert task. But you can t use it if you want to bulk copy data out of SQL Server. However you can integrate that bulk copy into DTS by using the Execute SQL task. Use the bcp command-line utility to do the bulk copying. Here s a sample of how to do that. Use the following values in the Execute Process Task dialog Win32 Process bcp Parameters out SELECT au_lname au_fname as FullName FROM ORDER BY au_lname queryout C -c -S local -T Figure shows the Execute Process Task Properties dialog with the properties set to execute this bulk copy. Figure You can use the Execute Process task to bulk copy data out of SQL Server into a text file. The Execute Process Task 427 Chapter 22 Executing a Batch File Containing osql and or bcp Commands If you have existing bcp commands in batch files whether moving data into or out of SQL Server you can keep on using those batch files with your DTS package by calling them from the Execute Process task. You can also use osql the SQL Server command-line utility for executing SQL commands in these batch files.

TỪ KHÓA LIÊN QUAN
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.