TAILIEUCHUNG - Programming Microsoft SQL Server 2000 with Microsoft Visual Basic .Net - P10

Tham khảo tài liệu 'programming microsoft sql server 2000 with microsoft visual basic .net - p10', công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | The following shows the code for the RunSQLParameterQueryWithPassedParams procedure. The lines that change from the RunSQLParameterQuery procedure in the preceding section appear in bold. Notice just four lines change. These are mostly for receiving and using the passed string variables that specify the query syntax and the parameter value. The RootTag property assignment changes to make it appropriate for any SQL query string. Aside from these minor changes there is nothing more to updating the earlier procedure so that it can accommodate any SQL query string. Sub RunSQLParameterQueryWithPassedParams _ ByVal strSQL As String _ ByVal strPrmlValue As String Specify connection string for SqlXmlCommand. Dim cnnlString As String _ Provider SQLOLEDB Server local _ database Northwind _ Integrated Security SSPI Specify connection for cmdl SqlXmlCommand object Dim cmdl As SqlXmlCommand _ New cnnlString Designate data source for cmdl with a parameter. MyRoot strSQL Create a parameter for cmdl and assign it a value. Dim prml As SqlXmlParameter prml strPrmlValue Declare and instantiate a stream in memory and populate it with the XML result set from cmdl. Dim stml As New stml Copy result set in stream to a stream reader to display stream contents in a message box. Dim srdl As New stml MsgBox End Sub The I nterplay Between XML and Data Sets XML documents and data sets interact with one another in multiple ways. Understanding these interactions and knowing how to put them to use can help you query and manipulate data both locally on a client s workstation and on a database server. This section provides a selection of samples to show how to use XML documents with data sets for these purposes. As with many topics addressed by this book the .

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.