PageRenderTime 670ms CodeModel.GetById 77ms RepoModel.GetById 12ms app.codeStats 0ms

/Katmai_November_CTP/HelloWorld_CLR/Readme_HelloWorld_CLR.htm

#
HTML | 564 lines | 485 code | 77 blank | 2 comment | 0 complexity | 224de42caec7f3c65972de4cebcf2c48 MD5 | raw file
  1. <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">
  2. <head>
  3. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8" />
  4. <META NAME="save" CONTENT="history" />
  5. <title>Readme_HelloWorld_CLR</title>
  6. <style TYPE="text/css">
  7. body
  8. {
  9. background: #FFFFFF;
  10. color: #000000;
  11. font-family: Verdana;
  12. font-size: medium;
  13. font-style: normal;
  14. font-weight: normal;
  15. margin-top: 0;
  16. margin-bottom: 0;
  17. margin-left: 0;
  18. margin-right: 0;
  19. width: 100%;
  20. }
  21. div.#mainSection
  22. {
  23. font-size: 70%;
  24. width: 100%;
  25. padding-left: 10;
  26. margin-right: 10;
  27. }
  28. div.#mainBody
  29. {
  30. font-size: 90%;
  31. margin-top: 10;
  32. padding-bottom: 20;
  33. }
  34. div.#header
  35. {
  36. background-color: #D2D2D2;
  37. padding-top: 0;
  38. padding-bottom: 0;
  39. padding-left: 10;
  40. padding-right: 0;
  41. width: 100%;
  42. }
  43. div.#header table
  44. {
  45. border-bottom-color: #C8CDDE;
  46. border-bottom-style: solid;
  47. border-bottom-width: 1;
  48. width: 100%;
  49. }
  50. span.#runningHeaderText
  51. {
  52. color: #003399;
  53. font-size: 90%;
  54. }
  55. span.#nsrTitle
  56. {
  57. /* color: #003399;*/
  58. font-size: 120%;
  59. font-weight: 600;
  60. }
  61. div.#header table td
  62. {
  63. color: #000000;
  64. font-size: 70%;
  65. margin-top: 0;
  66. margin-bottom: 0;
  67. padding-right: 20;
  68. }
  69. div.#header table tr.#headerTableRow3 td
  70. {
  71. padding-bottom: 2;
  72. padding-top: 5;
  73. }
  74. div.#header table.#bottomTable
  75. {
  76. border-top-color: #FFFFFF;
  77. border-top-style: solid;
  78. border-top-width: 1;
  79. text-align: left;
  80. }
  81. div.#footer
  82. {
  83. font-size: 90%;
  84. margin-top: 0;
  85. margin-bottom: 0;
  86. margin-left: -5;
  87. margin-right: 0;
  88. padding-top: 2;
  89. padding-bottom: 2;
  90. padding-left: 0;
  91. padding-right: 0;
  92. width: 100%;
  93. }
  94. hr.#footerHR
  95. {
  96. border-bottom-color: #EEEEFF;
  97. border-bottom-style: solid;
  98. border-bottom-width: 1;
  99. border-top-color: C8CDDE;
  100. border-top-style: solid;
  101. border-top-width: 1;
  102. height: 3;
  103. color: #D2D2D2;
  104. }
  105. div.section
  106. {
  107. padding-top: 2;
  108. padding-bottom: 2;
  109. padding-right: 15;
  110. width: 100%;
  111. }
  112. .heading
  113. {
  114. color: #000000;
  115. font-weight: bold;
  116. margin-top: 18;
  117. margin-bottom: 8;
  118. }
  119. h1.heading
  120. {
  121. color: #000000;
  122. font-size: 150%;
  123. }
  124. .subHeading
  125. {
  126. color: #000000;
  127. font-weight: bold;
  128. font-size: 150%;
  129. margin-bottom: 4;
  130. }
  131. h2.subHeading
  132. {
  133. color: #000000;
  134. font-weight: bold;
  135. font-size: 130%;
  136. }
  137. h3.subHeading
  138. {
  139. color: #000000;
  140. font-size: 125%;
  141. font-weight: bold;
  142. }
  143. h4.subHeading
  144. {
  145. color: #000000;
  146. font-size: 110%;
  147. font-weight: bold;
  148. }
  149. h4.procedureHeading
  150. {
  151. color: #000080;
  152. font-size: 110%;
  153. font-weight: bold;
  154. }
  155. h5.subHeading
  156. {
  157. color: #000000;
  158. font-size: 100%;
  159. font-weight: bold;
  160. }
  161. img
  162. {
  163. padding-bottom: 10;
  164. }
  165. img.toggle
  166. {
  167. border: 0;
  168. margin-right: 5;
  169. padding-bottom: 10;
  170. }
  171. img.copyCodeImage
  172. {
  173. border: 0;
  174. margin: 1;
  175. margin-right: 3;
  176. padding-bottom: 10;
  177. }
  178. img.downloadCodeImage
  179. {
  180. border: 0;
  181. margin-right: 3;
  182. padding-bottom: 10;
  183. }
  184. img.viewCodeImage
  185. {
  186. border: 0;
  187. margin-right: 3;
  188. padding-bottom: 10;
  189. }
  190. img.note
  191. {
  192. border: 0;
  193. margin-right: 3;
  194. padding-bottom: 10;
  195. }
  196. img.#membersOptionsFilterImage
  197. {
  198. border: 0;
  199. margin-left: 10;
  200. vertical-align: middle;
  201. padding-bottom: 10;
  202. }
  203. img.#toggleAllImage
  204. {
  205. margin-left: 4;
  206. vertical-align: middle;
  207. padding-bottom: 10;
  208. }
  209. div.#mainSection table
  210. {
  211. border: 0;
  212. font-size: 100%;
  213. width: 100%;
  214. margin-top: 5px;
  215. margin-bottom: 15px;
  216. }
  217. div.#mainSection table tr
  218. {
  219. vertical-align: top;
  220. }
  221. div.#mainSection table th
  222. {
  223. text-align: left;
  224. background: #D8D8D8;
  225. border-bottom-color: #D8D8D8;
  226. border-bottom-style: solid;
  227. border-bottom-width: 1;
  228. color: #000000;
  229. padding-left: 5;
  230. padding-right: 5;
  231. }
  232. div.#mainSection table td
  233. {
  234. background: #F2F2F2;
  235. border-top-color: #D8D8D8;
  236. border-top-style: solid;
  237. border-top-width: 1;
  238. padding-left: 5;
  239. padding-right: 5;
  240. }
  241. div.#mainSection table td.imageCell
  242. {
  243. white-space: nowrap;
  244. }
  245. div.code
  246. {
  247. width: 98%;
  248. }
  249. div.code table
  250. {
  251. border: 0;
  252. font-size: 95%;
  253. margin-bottom: 5;
  254. width: 100%
  255. }
  256. div.code table th
  257. {
  258. text-align: left;
  259. background: #D8D8D8;
  260. border-bottom-color: #D8D8D8;
  261. border-bottom-style: solid;
  262. border-bottom-width: 1;
  263. color: #000000;
  264. font-weight: bold;
  265. padding-left: 5;
  266. padding-right: 5;
  267. }
  268. div.code table td
  269. {
  270. background: #CCCCCC;
  271. border-top-color: #D8D8D8;
  272. border-top-style: solid;
  273. border-top-width: 1;
  274. padding-left: 5;
  275. padding-right: 5;
  276. padding-top: 5;
  277. }
  278. div.alert
  279. {
  280. margin-left: 10;
  281. width: 98%;
  282. }
  283. div.alert table
  284. {
  285. border: 1;
  286. font-size: 100%;
  287. width: 100%;
  288. border: solid 1 #DEDFEF;
  289. }
  290. div.alert table th
  291. {
  292. text-align: left;
  293. background: #D8D8D8;
  294. border-bottom-width: 0;
  295. color: #000000;
  296. padding-left: 5;
  297. padding-right: 5;
  298. border: solid 1 #DEDFEF;
  299. }
  300. div.alert table td
  301. {
  302. background: #FFFFFF;
  303. border-top-color: #D8D8D8;
  304. border-top-style: solid;
  305. border-top-width: 1;
  306. padding-left: 5;
  307. padding-right: 5;
  308. border: solid 1 #DEDFEF;
  309. }
  310. span.copyCode
  311. {
  312. color: #0000ff;
  313. font-size: 90%;
  314. font-weight: normal;
  315. cursor: hand;
  316. float: right;
  317. display: inline;
  318. text-align: right;
  319. }
  320. .downloadCode
  321. {
  322. color: #0000ff;
  323. font-size: 90%;
  324. font-weight: normal;
  325. cursor: hand;
  326. }
  327. .viewCode
  328. {
  329. color: #0000ff;
  330. font-size: 90%;
  331. font-weight: normal;
  332. cursor: hand;
  333. }
  334. div.code pre
  335. {
  336. font-family: Monospace, Courier New, Courier;
  337. font-size: 105%;
  338. color: #000000;
  339. }
  340. code
  341. {
  342. font-family: Monospace, Courier New, Courier;
  343. font-size: 105%;
  344. color: #000000;
  345. }
  346. dl
  347. {
  348. margin-top: 0;
  349. padding-left: 1;
  350. }
  351. dd
  352. {
  353. margin-bottom: 0;
  354. margin-left: 0;
  355. padding-left: 20;
  356. }
  357. dd p
  358. {
  359. margin-top: 5;
  360. }
  361. ul
  362. {
  363. margin-left: 17;
  364. list-style-type: disc;
  365. }
  366. ul ul
  367. {
  368. margin-bottom: 4;
  369. margin-left: 17;
  370. margin-top: 3;
  371. list-style-type: disc;
  372. }
  373. ol
  374. {
  375. margin-left: 24;
  376. list-style-type: decimal;
  377. }
  378. ol ol
  379. {
  380. margin-left: 24;
  381. margin-top: 3;
  382. list-style-type: lower-alpha;
  383. }
  384. li
  385. {
  386. margin-top: 0;
  387. margin-bottom: 0;
  388. padding-bottom: 0;
  389. padding-top: 0;
  390. margin-left: 5;
  391. }
  392. p
  393. {
  394. margin-bottom: 15;
  395. }
  396. .tip
  397. {
  398. color: #0000FF;
  399. font-style: italic;
  400. cursor:hand;
  401. text-decoration:underline;
  402. }
  403. .math
  404. {
  405. font-family: Times New Roman;
  406. font-size: 125%
  407. }
  408. .sourceCodeList
  409. {
  410. font-family: Verdana;
  411. font-size: 90%;
  412. }
  413. pre.viewCode
  414. {
  415. width: 100%;
  416. overflow: auto;
  417. }
  418. li:hover table, li.over table
  419. {
  420. background-color: #C0C0C0;
  421. }
  422. li:hover ul, li.over ul
  423. {
  424. background-color: #d2d2d2;
  425. border: 1px solid #000;
  426. display: block;
  427. }
  428. </style>
  429. </head>
  430. <body>
  431. <!--Topic built:10/29/2007 02:41:57-->
  432. <div id="header">
  433. <table width="100%" id="topTable"><tr>
  434. <td align="left">
  435. <span id="nsrTitle">Readme_HelloWorld_CLR</span>
  436. </td>
  437. <td align="right">
  438. <span id="headfb" class="feedbackhead">
  439. </span>
  440. </td>
  441. </tr></table>
  442. </div>
  443. <div id="mainSection">
  444. <div id="mainBody"><p> 10/29/2007 2:41:57 AM</p>
  445. <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 />
  446. <span id="changeHistory">
  447. </span>
  448. <p>This sample shows a simple, stateless application that uses the ServiceBrokerInterface sample.</p>
  449. <p>
  450. 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.
  451. </p>
  452. <h4 class="procedureHeading">Building and Installing the sample</h4><div id="procedureSectionEJBHA" class="section"><ol><li>
  453. <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
  454. <p xmlns="">In Visual Studio 2005, open <code>HelloWorldCS.sln</code> or <code>HelloWorldVB.sln</code>.</p>
  455. </content>
  456. </li><li>
  457. <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
  458. <p xmlns="">Build the solution by pressing <b>F6</b>, or by selecting <b>Build Solution</b> from the <b>Build</b> menu.</p>
  459. </content>
  460. </li><li>
  461. <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
  462. <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>
  463. </content>
  464. </li></ol></div><h4 class="procedureHeading">Running the sample</h4><div id="procedureSectionEHBHA" class="section"><ol><li>
  465. <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
  466. <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>
  467. </content>
  468. </li></ol></div><h1 class="heading">Requirements</h1><div id="requirementsSection" class="section">
  469. <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
  470. <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>
  471. </content>
  472. </div><h1 class="heading">Demonstrates</h1><div id="demonstratesSection" class="section">
  473. <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
  474. <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>
  475. <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>
  476. <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>
  477. <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>
  478. </content>
  479. </div><!--[if gte IE 5]>
  480. <tool:tip element="seeAlsoToolTip" avoidmouse="false"/><tool:tip element="languageFilterToolTip" avoidmouse="false"/><tool:tip element="roleInfoSpan" avoidmouse="false"/>
  481. <![endif]--></div>
  482. <div id="footer">
  483. © 2007 Microsoft Corporation. All rights reserved.
  484. </div>
  485. </div>
  486. </body>
  487. </html>