/Katmai_November_CTP/HelloWorld_CLR/Readme_HelloWorld_CLR.htm
HTML | 564 lines | 485 code | 77 blank | 2 comment | 0 complexity | 224de42caec7f3c65972de4cebcf2c48 MD5 | raw file
- <html DIR="LTR" xmlns:tool="http://www.microsoft.com/tooltip" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
- <head>
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8" />
- <META NAME="save" CONTENT="history" />
- <title>Readme_HelloWorld_CLR</title>
-
-
-
- <style TYPE="text/css">
- body
- {
- background: #FFFFFF;
- color: #000000;
- font-family: Verdana;
- font-size: medium;
- font-style: normal;
- font-weight: normal;
- margin-top: 0;
- margin-bottom: 0;
- margin-left: 0;
- margin-right: 0;
- width: 100%;
- }
-
- div.#mainSection
- {
- font-size: 70%;
- width: 100%;
- padding-left: 10;
- margin-right: 10;
- }
-
- div.#mainBody
- {
- font-size: 90%;
- margin-top: 10;
- padding-bottom: 20;
- }
-
- div.#header
- {
- background-color: #D2D2D2;
- padding-top: 0;
- padding-bottom: 0;
- padding-left: 10;
- padding-right: 0;
- width: 100%;
- }
-
- div.#header table
- {
- border-bottom-color: #C8CDDE;
- border-bottom-style: solid;
- border-bottom-width: 1;
- width: 100%;
- }
-
- span.#runningHeaderText
- {
- color: #003399;
- font-size: 90%;
- }
-
- span.#nsrTitle
- {
- /* color: #003399;*/
- font-size: 120%;
- font-weight: 600;
- }
-
- div.#header table td
- {
- color: #000000;
- font-size: 70%;
- margin-top: 0;
- margin-bottom: 0;
- padding-right: 20;
- }
-
- div.#header table tr.#headerTableRow3 td
- {
- padding-bottom: 2;
- padding-top: 5;
- }
-
- div.#header table.#bottomTable
- {
- border-top-color: #FFFFFF;
- border-top-style: solid;
- border-top-width: 1;
- text-align: left;
- }
-
- div.#footer
- {
- font-size: 90%;
- margin-top: 0;
- margin-bottom: 0;
- margin-left: -5;
- margin-right: 0;
- padding-top: 2;
- padding-bottom: 2;
- padding-left: 0;
- padding-right: 0;
- width: 100%;
- }
-
- hr.#footerHR
- {
- border-bottom-color: #EEEEFF;
- border-bottom-style: solid;
- border-bottom-width: 1;
- border-top-color: C8CDDE;
- border-top-style: solid;
- border-top-width: 1;
- height: 3;
- color: #D2D2D2;
- }
-
- div.section
- {
- padding-top: 2;
- padding-bottom: 2;
- padding-right: 15;
- width: 100%;
- }
-
- .heading
- {
- color: #000000;
- font-weight: bold;
- margin-top: 18;
- margin-bottom: 8;
- }
-
- h1.heading
- {
- color: #000000;
- font-size: 150%;
- }
-
- .subHeading
- {
- color: #000000;
- font-weight: bold;
- font-size: 150%;
- margin-bottom: 4;
- }
-
- h2.subHeading
- {
- color: #000000;
- font-weight: bold;
- font-size: 130%;
- }
- h3.subHeading
- {
- color: #000000;
- font-size: 125%;
- font-weight: bold;
- }
-
- h4.subHeading
- {
- color: #000000;
- font-size: 110%;
- font-weight: bold;
- }
-
- h4.procedureHeading
- {
- color: #000080;
- font-size: 110%;
- font-weight: bold;
- }
-
- h5.subHeading
- {
- color: #000000;
- font-size: 100%;
- font-weight: bold;
- }
-
- img
- {
- padding-bottom: 10;
- }
-
- img.toggle
- {
- border: 0;
- margin-right: 5;
- padding-bottom: 10;
- }
-
- img.copyCodeImage
- {
- border: 0;
- margin: 1;
- margin-right: 3;
- padding-bottom: 10;
- }
-
- img.downloadCodeImage
- {
- border: 0;
- margin-right: 3;
- padding-bottom: 10;
- }
-
- img.viewCodeImage
- {
- border: 0;
- margin-right: 3;
- padding-bottom: 10;
- }
-
- img.note
- {
- border: 0;
- margin-right: 3;
- padding-bottom: 10;
- }
-
- img.#membersOptionsFilterImage
- {
- border: 0;
- margin-left: 10;
- vertical-align: middle;
- padding-bottom: 10;
- }
-
- img.#toggleAllImage
- {
- margin-left: 4;
- vertical-align: middle;
- padding-bottom: 10;
- }
-
- div.#mainSection table
- {
- border: 0;
- font-size: 100%;
- width: 100%;
- margin-top: 5px;
- margin-bottom: 15px;
- }
-
- div.#mainSection table tr
- {
- vertical-align: top;
- }
-
- div.#mainSection table th
- {
- text-align: left;
- background: #D8D8D8;
- border-bottom-color: #D8D8D8;
- border-bottom-style: solid;
- border-bottom-width: 1;
- color: #000000;
- padding-left: 5;
- padding-right: 5;
- }
-
- div.#mainSection table td
- {
- background: #F2F2F2;
- border-top-color: #D8D8D8;
- border-top-style: solid;
- border-top-width: 1;
- padding-left: 5;
- padding-right: 5;
- }
-
- div.#mainSection table td.imageCell
- {
- white-space: nowrap;
- }
-
- div.code
- {
- width: 98%;
- }
-
- div.code table
- {
- border: 0;
- font-size: 95%;
- margin-bottom: 5;
- width: 100%
- }
-
- div.code table th
- {
- text-align: left;
- background: #D8D8D8;
- border-bottom-color: #D8D8D8;
- border-bottom-style: solid;
- border-bottom-width: 1;
- color: #000000;
- font-weight: bold;
- padding-left: 5;
- padding-right: 5;
- }
-
- div.code table td
- {
- background: #CCCCCC;
- border-top-color: #D8D8D8;
- border-top-style: solid;
- border-top-width: 1;
- padding-left: 5;
- padding-right: 5;
- padding-top: 5;
- }
-
- div.alert
- {
- margin-left: 10;
- width: 98%;
- }
-
- div.alert table
- {
- border: 1;
- font-size: 100%;
- width: 100%;
- border: solid 1 #DEDFEF;
- }
-
- div.alert table th
- {
- text-align: left;
- background: #D8D8D8;
- border-bottom-width: 0;
- color: #000000;
- padding-left: 5;
- padding-right: 5;
- border: solid 1 #DEDFEF;
- }
-
- div.alert table td
- {
- background: #FFFFFF;
- border-top-color: #D8D8D8;
- border-top-style: solid;
- border-top-width: 1;
- padding-left: 5;
- padding-right: 5;
- border: solid 1 #DEDFEF;
- }
-
- span.copyCode
- {
- color: #0000ff;
- font-size: 90%;
- font-weight: normal;
- cursor: hand;
- float: right;
- display: inline;
- text-align: right;
- }
-
- .downloadCode
- {
- color: #0000ff;
- font-size: 90%;
- font-weight: normal;
- cursor: hand;
- }
-
- .viewCode
- {
- color: #0000ff;
- font-size: 90%;
- font-weight: normal;
- cursor: hand;
- }
-
- div.code pre
- {
- font-family: Monospace, Courier New, Courier;
- font-size: 105%;
- color: #000000;
- }
-
- code
- {
- font-family: Monospace, Courier New, Courier;
- font-size: 105%;
- color: #000000;
- }
-
- dl
- {
- margin-top: 0;
- padding-left: 1;
- }
-
- dd
- {
- margin-bottom: 0;
- margin-left: 0;
- padding-left: 20;
- }
-
- dd p
- {
- margin-top: 5;
- }
-
- ul
- {
- margin-left: 17;
- list-style-type: disc;
- }
-
- ul ul
- {
- margin-bottom: 4;
- margin-left: 17;
- margin-top: 3;
- list-style-type: disc;
- }
-
- ol
- {
- margin-left: 24;
- list-style-type: decimal;
- }
-
- ol ol
- {
- margin-left: 24;
- margin-top: 3;
- list-style-type: lower-alpha;
- }
-
- li
- {
- margin-top: 0;
- margin-bottom: 0;
- padding-bottom: 0;
- padding-top: 0;
- margin-left: 5;
- }
-
- p
- {
- margin-bottom: 15;
- }
-
- .tip
- {
- color: #0000FF;
- font-style: italic;
- cursor:hand;
- text-decoration:underline;
- }
-
- .math
- {
- font-family: Times New Roman;
- font-size: 125%
- }
- .sourceCodeList
- {
- font-family: Verdana;
- font-size: 90%;
- }
-
- pre.viewCode
- {
- width: 100%;
- overflow: auto;
- }
-
- li:hover table, li.over table
- {
- background-color: #C0C0C0;
- }
-
- li:hover ul, li.over ul
- {
- background-color: #d2d2d2;
- border: 1px solid #000;
- display: block;
- }
- </style>
- </head>
- <body>
- <!--Topic built:10/29/2007 02:41:57-->
-
-
-
-
-
-
-
-
-
-
- <div id="header">
- <table width="100%" id="topTable"><tr>
- <td align="left">
- <span id="nsrTitle">Readme_HelloWorld_CLR</span>
- </td>
- <td align="right">
- <span id="headfb" class="feedbackhead">
- </span>
- </td>
- </tr></table>
-
-
-
- </div>
- <div id="mainSection">
- <div id="mainBody"><p> 10/29/2007 2:41:57 AM</p>
-
- <font color="DarkGray">[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] </font><p />
- <span id="changeHistory">
- </span>
- <p>This sample shows a simple, stateless application that uses the ServiceBrokerInterface sample.</p>
- <p>
- Samples are provided for educational purposes only. They are not intended to be used in a production environment and have not been tested in a production environment. Microsoft does not provide technical support for these samples. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator.
- </p>
- <h4 class="procedureHeading">Building and Installing the sample</h4><div id="procedureSectionEJBHA" class="section"><ol><li>
- <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
- <p xmlns="">In Visual Studio 2005, open <code>HelloWorldCS.sln</code> or <code>HelloWorldVB.sln</code>.</p>
- </content>
- </li><li>
- <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
- <p xmlns="">Build the solution by pressing <b>F6</b>, or by selecting <b>Build Solution</b> from the <b>Build</b> menu.</p>
- </content>
- </li><li>
- <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
- <p xmlns="">Run <code>Install.cmd</code>, located in the <code>Scripts</code> folder of the <code>HelloWorld_CLR</code> directory. This file sets up the environment, and then runs the <code>Install.sql</code> install script. If you built the Visual Basic version of the project, you might have to change the "cs" in the path for the assembly to "vb" in the <code>Install.sql</code> script.</p>
- </content>
- </li></ol></div><h4 class="procedureHeading">Running the sample</h4><div id="procedureSectionEHBHA" class="section"><ol><li>
- <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
- <p xmlns="">Run the <code>HelloWorldClient.exe</code> console application from the sample directory. To exit the client, press <b>Enter</b> after the client shows the response.</p>
- </content>
- </li></ol></div><h1 class="heading">Requirements</h1><div id="requirementsSection" class="section">
- <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
- <p xmlns="">This sample requires Visual Studio 2005. Because the sample uses features of the common language runtime (CLR) that were not available in earlier versions, versions of Visual Studio earlier than 2005 cannot build the sample.</p>
- </content>
- </div><h1 class="heading">Demonstrates</h1><div id="demonstratesSection" class="section">
- <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
- <p xmlns="">This sample demonstrates use of the sample object-oriented programming interface provided in the Service Broker Interface sample. All Service Broker functionality for the sample uses the Service Broker Interface.</p>
- <p xmlns="">There are two main parts of the sample: a client program that runs outside of SQL Server, and a CLR stored procedure that implements the service.</p>
- <p xmlns="">The external program begins a conversation from the service <b>HelloWorldClient</b> to the service <b>HelloWorldService</b>, and then sends a message on that conversation. This application sends a <b>Request</b> message to the service <b>HelloWorldService</b>. The activated stored procedure receives and responds to the message. The client receives a response, shows the response on the console, and then ends the dialog.</p>
- <p xmlns="">The CLR stored procedure implements the <b>HelloWorldService</b>. Service Broker activates this procedure. The procedure reads a message from the queue. For a <b>Request</b> message, the procedure responds with a Response message. For a Service Broker end dialog message, the procedure ends the conversation.</p>
- </content>
- </div><!--[if gte IE 5]>
- <tool:tip element="seeAlsoToolTip" avoidmouse="false"/><tool:tip element="languageFilterToolTip" avoidmouse="false"/><tool:tip element="roleInfoSpan" avoidmouse="false"/>
- <![endif]--></div>
- <div id="footer">
-
- © 2007 Microsoft Corporation. All rights reserved.
- </div>
- </div>
- </body>
- </html>