Subversion Repository Public Repository

ConnectionOdbcSdk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 14">
<meta name=Originator content="Microsoft Word 14">
<link rel=File-List href="ConnectionOdbcDotNetSdk_filelist.xml">
<title>Unity Connection .NET ODBC SDK</title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>Jeff Lindborg</o:Author>
  <o:Template>AppsHelp.dot</o:Template>
  <o:LastAuthor>jlindborg</o:LastAuthor>
  <o:Revision>46</o:Revision>
  <o:TotalTime>8458</o:TotalTime>
  <o:LastPrinted>2013-09-10T19:05:00Z</o:LastPrinted>
  <o:Created>2013-09-08T15:19:00Z</o:Created>
  <o:LastSaved>2014-01-08T01:25:00Z</o:LastSaved>
  <o:Pages>13</o:Pages>
  <o:Words>7619</o:Words>
  <o:Characters>43433</o:Characters>
  <o:Company>Cisco Systems, Inc.</o:Company>
  <o:Lines>361</o:Lines>
  <o:Paragraphs>101</o:Paragraphs>
  <o:CharactersWithSpaces>50951</o:CharactersWithSpaces>
  <o:Version>14.00</o:Version>
 </o:DocumentProperties>
 <o:OfficeDocumentSettings>
  <o:AllowPNG/>
  <o:DoNotOrganizeInFolder/>
 </o:OfficeDocumentSettings>
</xml><![endif]-->
<link rel=dataStoreItem href="ConnectionOdbcDotNetSdk_item0006.xml"
target="ConnectionOdbcDotNetSdk_props007.xml">
<link rel=themeData href="ConnectionOdbcDotNetSdk_themedata.thmx">
<link rel=colorSchemeMapping
href="ConnectionOdbcDotNetSdk_colorschememapping.xml">
<!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Print</w:View>
  <w:Zoom>125</w:Zoom>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:TrackMoves>false</w:TrackMoves>
  <w:TrackFormatting/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:DoNotPromoteQF/>
  <w:LidThemeOther>EN-US</w:LidThemeOther>
  <w:LidThemeAsian>X-NONE</w:LidThemeAsian>
  <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
   <w:SplitPgBreakAndParaMark/>
   <w:DontVertAlignCellWithSp/>
   <w:DontBreakConstrainedForcedTables/>
   <w:DontVertAlignInTxbx/>
   <w:Word11KerningPairs/>
   <w:CachedColBalance/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
  <m:mathPr>
   <m:mathFont m:val="Cambria Math"/>
   <m:brkBin m:val="before"/>
   <m:brkBinSub m:val="&#45;-"/>
   <m:smallFrac m:val="off"/>
   <m:dispDef/>
   <m:lMargin m:val="0"/>
   <m:rMargin m:val="0"/>
   <m:defJc m:val="centerGroup"/>
   <m:wrapIndent m:val="1440"/>
   <m:intLim m:val="subSup"/>
   <m:naryLim m:val="undOvr"/>
  </m:mathPr>  <u1:mathPr>
   <u1:mathFont u1:val="Cambria Math"/>
   <u1:brkBin u1:val="before"/>
   <u1:brkBinSub u1:val="--"/>
   <u1:smallFrac u1:val="off"/>
   <u1:dispDef/>
   <u1:lMargin u1:val="0"/>
   <u1:rMargin u1:val="0"/>
   <u1:defJc u1:val="centerGroup"/>
   <u1:wrapIndent u1:val="1440"/>
   <u1:intLim u1:val="subSup"/>
   <u1:naryLim u1:val="undOvr"/>
  </u1:mathPr>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="false"
  DefSemiHidden="false" DefQFormat="false" LatentStyleCount="267">
  <w:LsdException Locked="false" Priority="39" Name="toc 1"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 2"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 3"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 4"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 5"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 6"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 7"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 8"/>
  <w:LsdException Locked="false" Priority="39" Name="toc 9"/>
  <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
  <w:LsdException Locked="false" Priority="99" Name="Hyperlink"/>
  <w:LsdException Locked="false" Priority="99" Name="HTML Preformatted"/>
  <w:LsdException Locked="false" Priority="99" Name="No List"/>
  <w:LsdException Locked="false" Priority="99" SemiHidden="true"
   Name="Placeholder Text"/>
  <w:LsdException Locked="false" Priority="1" QFormat="true" Name="No Spacing"/>
  <w:LsdException Locked="false" Priority="60" Name="Light Shading"/>
  <w:LsdException Locked="false" Priority="61" Name="Light List"/>
  <w:LsdException Locked="false" Priority="62" Name="Light Grid"/>
  <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1"/>
  <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2"/>
  <w:LsdException Locked="false" Priority="65" Name="Medium List 1"/>
  <w:LsdException Locked="false" Priority="66" Name="Medium List 2"/>
  <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1"/>
  <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2"/>
  <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3"/>
  <w:LsdException Locked="false" Priority="70" Name="Dark List"/>
  <w:LsdException Locked="false" Priority="71" Name="Colorful Shading"/>
  <w:LsdException Locked="false" Priority="72" Name="Colorful List"/>
  <w:LsdException Locked="false" Priority="73" Name="Colorful Grid"/>
  <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 1"/>
  <w:LsdException Locked="false" Priority="61" Name="Light List Accent 1"/>
  <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 1"/>
  <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 1"/>
  <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 1"/>
  <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 1"/>
  <w:LsdException Locked="false" Priority="99" SemiHidden="true" Name="Revision"/>
  <w:LsdException Locked="false" Priority="34" QFormat="true"
   Name="List Paragraph"/>
  <w:LsdException Locked="false" Priority="29" QFormat="true" Name="Quote"/>
  <w:LsdException Locked="false" Priority="30" QFormat="true"
   Name="Intense Quote"/>
  <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 1"/>
  <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 1"/>
  <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 1"/>
  <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 1"/>
  <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 1"/>
  <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 1"/>
  <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 1"/>
  <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 1"/>
  <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 2"/>
  <w:LsdException Locked="false" Priority="61" Name="Light List Accent 2"/>
  <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 2"/>
  <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 2"/>
  <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 2"/>
  <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 2"/>
  <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 2"/>
  <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 2"/>
  <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 2"/>
  <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 2"/>
  <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 2"/>
  <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 2"/>
  <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 2"/>
  <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 2"/>
  <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 3"/>
  <w:LsdException Locked="false" Priority="61" Name="Light List Accent 3"/>
  <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 3"/>
  <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 3"/>
  <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 3"/>
  <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 3"/>
  <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 3"/>
  <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 3"/>
  <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 3"/>
  <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 3"/>
  <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 3"/>
  <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 3"/>
  <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 3"/>
  <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 3"/>
  <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 4"/>
  <w:LsdException Locked="false" Priority="61" Name="Light List Accent 4"/>
  <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 4"/>
  <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 4"/>
  <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 4"/>
  <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 4"/>
  <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 4"/>
  <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 4"/>
  <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 4"/>
  <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 4"/>
  <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 4"/>
  <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 4"/>
  <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 4"/>
  <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 4"/>
  <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 5"/>
  <w:LsdException Locked="false" Priority="61" Name="Light List Accent 5"/>
  <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 5"/>
  <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 5"/>
  <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 5"/>
  <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 5"/>
  <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 5"/>
  <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 5"/>
  <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 5"/>
  <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 5"/>
  <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 5"/>
  <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 5"/>
  <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 5"/>
  <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 5"/>
  <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 6"/>
  <w:LsdException Locked="false" Priority="61" Name="Light List Accent 6"/>
  <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 6"/>
  <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 6"/>
  <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 6"/>
  <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 6"/>
  <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 6"/>
  <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 6"/>
  <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 6"/>
  <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 6"/>
  <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 6"/>
  <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 6"/>
  <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 6"/>
  <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 6"/>
  <w:LsdException Locked="false" Priority="19" QFormat="true"
   Name="Subtle Emphasis"/>
  <w:LsdException Locked="false" Priority="21" QFormat="true"
   Name="Intense Emphasis"/>
  <w:LsdException Locked="false" Priority="31" QFormat="true"
   Name="Subtle Reference"/>
  <w:LsdException Locked="false" Priority="32" QFormat="true"
   Name="Intense Reference"/>
  <w:LsdException Locked="false" Priority="33" QFormat="true" Name="Book Title"/>
  <w:LsdException Locked="false" Priority="37" SemiHidden="true"
   UnhideWhenUsed="true" Name="Bibliography"/>
  <w:LsdException Locked="false" Priority="39" SemiHidden="true"
   UnhideWhenUsed="true" QFormat="true" Name="TOC Heading"/>
 </w:LatentStyles>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;
	mso-font-charset:2;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;
	mso-font-charset:2;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
	{font-family:Cambria;
	panose-1:2 4 5 3 5 4 6 3 2 4;
	mso-font-charset:0;
	mso-generic-font-family:roman;
	mso-font-pitch:variable;
	mso-font-signature:-536870145 1073743103 0 0 415 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:-536870145 1073786111 1 0 415 0;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:-520081665 -1073717157 41 0 66047 0;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;
	mso-font-alt:Consolas;
	mso-font-charset:0;
	mso-generic-font-family:modern;
	mso-font-pitch:fixed;
	mso-font-signature:-520092929 1073806591 9 0 415 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
h1
	{mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-link:"Heading 1 Char";
	mso-style-next:Normal;
	margin-top:12.0pt;
	margin-right:0in;
	margin-bottom:3.0pt;
	margin-left:0in;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:1;
	font-size:16.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-font-kerning:16.0pt;}
h2
	{mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-link:"Heading 2 Char";
	mso-style-next:Normal;
	margin-top:12.0pt;
	margin-right:0in;
	margin-bottom:3.0pt;
	margin-left:0in;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:2;
	font-size:12.0pt;
	mso-bidi-font-size:14.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-bidi-font-style:italic;}
h3
	{mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-link:"Heading 3 Char";
	mso-style-next:Normal;
	margin-top:12.0pt;
	margin-right:0in;
	margin-bottom:3.0pt;
	margin-left:0in;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:3;
	font-size:10.0pt;
	mso-bidi-font-size:13.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	font-style:italic;
	mso-bidi-font-style:normal;}
p.MsoToc1, li.MsoToc1, div.MsoToc1
	{mso-style-update:auto;
	mso-style-priority:39;
	mso-style-unhide:no;
	mso-style-next:Normal;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.MsoToc2, li.MsoToc2, div.MsoToc2
	{mso-style-update:auto;
	mso-style-priority:39;
	mso-style-unhide:no;
	mso-style-next:Normal;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:10.0pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.MsoToc3, li.MsoToc3, div.MsoToc3
	{mso-style-update:auto;
	mso-style-priority:39;
	mso-style-unhide:no;
	mso-style-next:Normal;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:20.0pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.MsoToc4, li.MsoToc4, div.MsoToc4
	{mso-style-update:auto;
	mso-style-priority:39;
	mso-style-unhide:no;
	mso-style-next:Normal;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:30.0pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.MsoToc5, li.MsoToc5, div.MsoToc5
	{mso-style-update:auto;
	mso-style-priority:39;
	mso-style-unhide:no;
	mso-style-next:Normal;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:40.0pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.MsoToc6, li.MsoToc6, div.MsoToc6
	{mso-style-update:auto;
	mso-style-priority:39;
	mso-style-unhide:no;
	mso-style-next:Normal;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:50.0pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.MsoToc7, li.MsoToc7, div.MsoToc7
	{mso-style-update:auto;
	mso-style-priority:39;
	mso-style-unhide:no;
	mso-style-next:Normal;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:60.0pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.MsoToc8, li.MsoToc8, div.MsoToc8
	{mso-style-update:auto;
	mso-style-priority:39;
	mso-style-unhide:no;
	mso-style-next:Normal;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:70.0pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.MsoToc9, li.MsoToc9, div.MsoToc9
	{mso-style-update:auto;
	mso-style-priority:39;
	mso-style-unhide:no;
	mso-style-next:Normal;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:80.0pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.MsoTitle, li.MsoTitle, div.MsoTitle
	{mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"Heading 1";
	mso-style-link:"Title Char";
	mso-style-next:Contents;
	margin-top:12.0pt;
	margin-right:0in;
	margin-bottom:3.0pt;
	margin-left:0in;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:1;
	border:none;
	mso-border-bottom-alt:solid windowtext .5pt;
	padding:0in;
	mso-padding-alt:0in 0in 1.0pt 0in;
	font-size:16.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	font-weight:bold;
	mso-bidi-font-weight:normal;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	mso-style-unhide:no;
	color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-unhide:no;
	color:purple;
	text-decoration:underline;
	text-underline:single;}
p.MsoDocumentMap, li.MsoDocumentMap, div.MsoDocumentMap
	{mso-style-unhide:no;
	mso-style-link:"Document Map Char";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";
	mso-fareast-font-family:"Times New Roman";}
pre
	{mso-style-priority:99;
	mso-style-unhide:no;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Courier New";
	mso-fareast-font-family:"Times New Roman";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-unhide:no;
	mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";
	mso-fareast-font-family:"Times New Roman";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	mso-style-unhide:no;
	mso-style-qformat:yes;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	mso-add-space:auto;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst
	{mso-style-priority:34;
	mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-type:export-only;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	mso-add-space:auto;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle
	{mso-style-priority:34;
	mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-type:export-only;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	mso-add-space:auto;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast
	{mso-style-priority:34;
	mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-type:export-only;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	mso-add-space:auto;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
span.Heading1Char
	{mso-style-name:"Heading 1 Char";
	mso-style-unhide:no;
	mso-style-locked:yes;
	mso-style-link:"Heading 1";
	mso-ansi-font-size:14.0pt;
	mso-bidi-font-size:14.0pt;
	font-family:"Cambria","serif";
	mso-ascii-font-family:Cambria;
	mso-fareast-font-family:"Times New Roman";
	mso-hansi-font-family:Cambria;
	mso-bidi-font-family:"Times New Roman";
	color:#365F91;
	font-weight:bold;}
span.Heading2Char
	{mso-style-name:"Heading 2 Char";
	mso-style-unhide:no;
	mso-style-locked:yes;
	mso-style-link:"Heading 2";
	mso-ansi-font-size:13.0pt;
	mso-bidi-font-size:13.0pt;
	font-family:"Cambria","serif";
	mso-ascii-font-family:Cambria;
	mso-fareast-font-family:"Times New Roman";
	mso-hansi-font-family:Cambria;
	mso-bidi-font-family:"Times New Roman";
	color:#4F81BD;
	font-weight:bold;}
span.Heading3Char
	{mso-style-name:"Heading 3 Char";
	mso-style-unhide:no;
	mso-style-locked:yes;
	mso-style-link:"Heading 3";
	mso-bidi-font-size:12.0pt;
	font-family:"Cambria","serif";
	mso-ascii-font-family:Cambria;
	mso-fareast-font-family:"Times New Roman";
	mso-hansi-font-family:Cambria;
	mso-bidi-font-family:"Times New Roman";
	color:#4F81BD;
	font-weight:bold;}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-unhide:no;
	mso-style-locked:yes;
	mso-style-link:"HTML Preformatted";
	font-family:"Courier New";
	mso-ascii-font-family:"Courier New";
	mso-hansi-font-family:"Courier New";
	mso-bidi-font-family:"Courier New";}
p.Contents, li.Contents, div.Contents
	{mso-style-name:Contents;
	mso-style-unhide:no;
	mso-style-parent:"Heading 1";
	mso-style-next:Normal;
	margin-top:12.0pt;
	margin-right:0in;
	margin-bottom:3.0pt;
	margin-left:0in;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:1;
	font-size:16.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-font-kerning:16.0pt;
	font-weight:bold;}
span.TitleChar
	{mso-style-name:"Title Char";
	mso-style-unhide:no;
	mso-style-locked:yes;
	mso-style-link:Title;
	mso-ansi-font-size:26.0pt;
	mso-bidi-font-size:26.0pt;
	font-family:"Cambria","serif";
	mso-ascii-font-family:Cambria;
	mso-fareast-font-family:"Times New Roman";
	mso-hansi-font-family:Cambria;
	mso-bidi-font-family:"Times New Roman";
	color:#17365D;
	letter-spacing:.25pt;
	mso-font-kerning:14.0pt;}
span.DocumentMapChar
	{mso-style-name:"Document Map Char";
	mso-style-unhide:no;
	mso-style-locked:yes;
	mso-style-link:"Document Map";
	mso-ansi-font-size:8.0pt;
	mso-bidi-font-size:8.0pt;
	font-family:"Tahoma","sans-serif";
	mso-ascii-font-family:Tahoma;
	mso-hansi-font-family:Tahoma;
	mso-bidi-font-family:Tahoma;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-unhide:no;
	mso-style-locked:yes;
	mso-style-link:"Balloon Text";
	mso-ansi-font-size:8.0pt;
	mso-bidi-font-size:8.0pt;
	font-family:"Tahoma","sans-serif";
	mso-ascii-font-family:Tahoma;
	mso-hansi-font-family:Tahoma;
	mso-bidi-font-family:Tahoma;}
p.msolistparagraph0, li.msolistparagraph0, div.msolistparagraph0
	{mso-style-name:msolistparagraph;
	mso-style-priority:34;
	mso-style-unhide:no;
	mso-style-qformat:yes;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	mso-add-space:auto;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.msolistparagraph0CxSpFirst, li.msolistparagraph0CxSpFirst, div.msolistparagraph0CxSpFirst
	{mso-style-name:msolistparagraphCxSpFirst;
	mso-style-priority:34;
	mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-type:export-only;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	mso-add-space:auto;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.msolistparagraph0CxSpMiddle, li.msolistparagraph0CxSpMiddle, div.msolistparagraph0CxSpMiddle
	{mso-style-name:msolistparagraphCxSpMiddle;
	mso-style-priority:34;
	mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-type:export-only;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	mso-add-space:auto;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.msolistparagraph0CxSpLast, li.msolistparagraph0CxSpLast, div.msolistparagraph0CxSpLast
	{mso-style-name:msolistparagraphCxSpLast;
	mso-style-priority:34;
	mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-type:export-only;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	mso-add-space:auto;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";}
p.auto-style1, li.auto-style1, div.auto-style1
	{mso-style-name:auto-style1;
	mso-style-unhide:no;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:30.0pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	mso-fareast-font-family:"Times New Roman";}
p.auto-style3, li.auto-style3, div.auto-style3
	{mso-style-name:auto-style3;
	mso-style-unhide:no;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:30.0pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	mso-fareast-font-family:"Times New Roman";
	color:green;}
p.Default, li.Default, div.Default
	{mso-style-name:Default;
	mso-style-unhide:no;
	mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	mso-layout-grid-align:none;
	text-autospace:none;
	font-size:12.0pt;
	font-family:"Arial","sans-serif";
	mso-fareast-font-family:"Times New Roman";
	color:black;}
span.auto-style21
	{mso-style-name:auto-style21;
	mso-style-unhide:no;
	color:green;}
span.auto-style41
	{mso-style-name:auto-style41;
	mso-style-unhide:no;
	color:black;}
span.apple-converted-space
	{mso-style-name:apple-converted-space;
	mso-style-unhide:no;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	font-size:10.0pt;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.WordSection1
	{page:WordSection1;}
 /* List Definitions */
 @list l0
	{mso-list-id:675961277;
	mso-list-type:hybrid;
	mso-list-template-ids:2055217800 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l1
	{mso-list-id:962342186;
	mso-list-type:hybrid;
	mso-list-template-ids:-1549364378 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
@list l1:level2
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";}
@list l1:level3
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Wingdings;}
@list l1:level4
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
@list l1:level5
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";}
@list l1:level6
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Wingdings;}
@list l1:level7
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
@list l1:level8
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";}
@list l1:level9
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Wingdings;}
@list l2
	{mso-list-id:1105461771;
	mso-list-type:hybrid;
	mso-list-template-ids:179323962 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l2:level1
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
@list l2:level2
	{mso-level-tab-stop:1.0in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l2:level3
	{mso-level-tab-stop:1.5in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l2:level4
	{mso-level-tab-stop:2.0in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l2:level5
	{mso-level-tab-stop:2.5in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l2:level6
	{mso-level-tab-stop:3.0in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l2:level7
	{mso-level-tab-stop:3.5in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l2:level8
	{mso-level-tab-stop:4.0in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l2:level9
	{mso-level-tab-stop:4.5in;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l3
	{mso-list-id:1839030946;
	mso-list-type:hybrid;
	mso-list-template-ids:1666982938 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l3:level1
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l3:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l3:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l3:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l3:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l3:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l3:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l3:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l3:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman","serif";}
</style>
<![endif]--><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"/>
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>

<div class=WordSection1>

<div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;
mso-border-bottom-alt:solid windowtext .5pt;padding:0in 0in 1.0pt 0in'>

<p class=MsoTitle>Cisco Unity Connection .NET ODBC SDK</p>

</div>

<p class=Contents><a name="_Toc534430891">Contents</a></p>

<p class=MsoToc1 style='tab-stops:right dotted 431.5pt'><!--[if supportFields]><span
style='mso-element:field-begin'></span><span
style='mso-spacerun:yes'>&nbsp;</span>TOC \o &quot;2-9&quot; \h \z \t
&quot;Heading 1,1&quot; <span style='mso-element:field-separator'></span><![endif]--><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578022">Overview<span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578022 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>1<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000320032000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc1 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578023">Requirements/Special
Notes<span style='color:windowtext;display:none;mso-hide:screen;text-decoration:
none;text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578023 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>2<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000320033000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc1 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578024">Why
ODBC, Isn&#8217;t That Going Away?<span style='color:windowtext;display:none;
mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578024 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>2<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000320034000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc1 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578025">Won&#8217;t
ODBC Projects Break With Every New Release?<span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578025 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>3<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000320035000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc1 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578026">Installing
and Using the Library in Your Project<span style='color:windowtext;display:
none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-tab-count:1 dotted'> </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578026 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>3<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000320036000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc1 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578027">Using
the .NET ODBC SDK<span style='color:windowtext;display:none;mso-hide:screen;
text-decoration:none;text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578027 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>3<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000320037000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc2 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578028">Getting
Started<span style='color:windowtext;display:none;mso-hide:screen;text-decoration:
none;text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578028 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>4<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000320038000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578029"><span
style='mso-bidi-font-style:italic'>Task 1: Install the IBM Informix Client SDK.</span><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-tab-count:1 dotted'> </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578029 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>4<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000320039000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578030"><span
style='mso-bidi-font-style:italic'>Task 2: Configure a User with the Remote
Administrator and System Administrator roles</span><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578030 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>4<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000330030000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578031"><span
style='mso-bidi-font-style:italic'>Task 3: Set the Database Proxy Service
Shutdown Time</span><span style='color:windowtext;display:none;mso-hide:screen;
text-decoration:none;text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578031 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>4<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000330031000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578032"><span
style='mso-bidi-font-style:italic'>Task 4: Activate the Remote Database Proxy
Service</span><span style='color:windowtext;display:none;mso-hide:screen;
text-decoration:none;text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578032 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>4<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000330032000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578033">Logging
into Connection<span style='color:windowtext;display:none;mso-hide:screen;
text-decoration:none;text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578033 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>4<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000330033000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578034">The
DbFetchResult Class<span style='color:windowtext;display:none;mso-hide:screen;
text-decoration:none;text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578034 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>5<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000330034000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578035">Logging
and Debugging with the SDK<span style='color:windowtext;display:none;
mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578035 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>5<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000330035000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578036">CUDLI
Is Your Friend<span style='color:windowtext;display:none;mso-hide:screen;
text-decoration:none;text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578036 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>6<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000330036000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc2 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578037">Fetching
Data<span style='color:windowtext;display:none;mso-hide:screen;text-decoration:
none;text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578037 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>6<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000330037000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578038">Data
Tables and Data Readers<span style='color:windowtext;display:none;mso-hide:
screen;text-decoration:none;text-underline:none'><span style='mso-tab-count:
1 dotted'>. </span></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-begin'></span> PAGEREF _Toc366578038 \h <span
style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>6<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000330038000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578039">Filling
a Data Table<span style='color:windowtext;display:none;mso-hide:screen;
text-decoration:none;text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578039 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>7<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000330039000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578040">Getting
a Count<span style='color:windowtext;display:none;mso-hide:screen;text-decoration:
none;text-underline:none'><span style='mso-tab-count:1 dotted'> </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578040 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>8<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000340030000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578041">Getting
a Single Value<span style='color:windowtext;display:none;mso-hide:screen;
text-decoration:none;text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578041 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>8<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000340031000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578042">Filling
a Data Reader<span style='color:windowtext;display:none;mso-hide:screen;
text-decoration:none;text-underline:none'><span style='mso-tab-count:1 dotted'> </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578042 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>8<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000340032000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc2 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578043">Stored
Procedure Overview<span style='color:windowtext;display:none;mso-hide:screen;
text-decoration:none;text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578043 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>9<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000340033000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578044">Stored
Procedure Naming Strategy<span style='color:windowtext;display:none;mso-hide:
screen;text-decoration:none;text-underline:none'><span style='mso-tab-count:
1 dotted'>. </span></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-begin'></span> PAGEREF _Toc366578044 \h <span
style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>10<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000340034000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc3 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578045">Return
Values from Stored Procedures<span style='color:windowtext;display:none;
mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578045 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>11<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000340035000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc2 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578046">Changing
Database Focus<span style='color:windowtext;display:none;mso-hide:screen;
text-decoration:none;text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578046 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>12<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000340036000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc2 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578047">Examples<span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578047 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>13<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000340037000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoToc1 style='tab-stops:right dotted 431.5pt'><span
class=MsoHyperlink><span style='mso-no-proof:yes'><a href="#_Toc366578048">Revision
History<span style='color:windowtext;display:none;mso-hide:screen;text-decoration:
none;text-underline:none'><span style='mso-tab-count:1 dotted'>. </span></span><!--[if supportFields]><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'><span style='mso-element:field-begin'></span> PAGEREF
_Toc366578048 \h <span style='mso-element:field-separator'></span></span><![endif]--><span
style='color:windowtext;display:none;mso-hide:screen;text-decoration:none;
text-underline:none'>13<!--[if gte mso 9]><xml>
 <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003300360036003500370038003000340038000000</w:data>
</xml><![endif]--></span><!--[if supportFields]><span style='color:windowtext;
display:none;mso-hide:screen;text-decoration:none;text-underline:none'><span
style='mso-element:field-end'></span></span><![endif]--></a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-theme-font:
minor-latin;mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;mso-no-proof:yes'><o:p></o:p></span></p>

<h1><!--[if supportFields]><span style='mso-element:field-end'></span><![endif]--><a
name="_Toc366578022"></a><a name="_Toc534430892"><span style='mso-bookmark:
_Toc366578022'>Overvie</span></a><span style='mso-bookmark:_Toc366578022'>w</span></h1>

<p class=MsoNormal><span style='font-size:8.0pt'>The .NET SDK library for the
Unity Connection ODBC interfaces is a set of library code intended to make
development of applications using .NET framework easier, faster and less error
prone.<span style='mso-spacerun:yes'>&nbsp; </span>While it does require you
have IBM&#8217;s Informix Client SDK installed for typical projects you do not
need to include the IBM Informix class library in your project &#8211; you can
do everything you need to do with the simple methods exposed off the SDK and
the build in data tables and types available in .NET.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The idea is not just to
simplify the interaction with the Informix client libraries (which is certainly
the case) but to allow applications to be written against other database
drivers in the future if and when Unity Connection moves off Informix.<span
style='mso-spacerun:yes'>&nbsp; </span>This is the same library used internally
by the Unity Connection tools team for developing many of its applications that
interact with Unity Connection via ODBC.<span style='mso-spacerun:yes'>&nbsp;
</span>Coupled with the REST SDKs already available <span class=GramE>the
provide</span> a powerful toolset for just about any application type you wish
to create against Connection.<o:p></o:p></span></p>

<h1><a name="_Toc534430893"></a><a name="_Toc6476430"></a><a name="_Toc24010850"></a><a
name="_Toc366578023"><span style='mso-bookmark:_Toc24010850'><span
style='mso-bookmark:_Toc6476430'><span style='mso-bookmark:_Toc534430893'>Requirements/Special
Notes</span></span></span></a></h1>

<p class=MsoNormal><span style='font-size:8.0pt'>The .NET ODBC SDK is written
and tested against all versions of Unity Connection 7.0(2) and later.<span
style='mso-spacerun:yes'>&nbsp; </span>The ODBC interface is supported in
7.0(2) builds and later although it appeared in 2.x versions prior to that.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Use of the SDK is not
supported by TAC &#8211; in other words if you need assistance with an
application you are developing using the SDK, TAC is not going to provide that
assistance for you.<span style='mso-spacerun:yes'>&nbsp; </span>Support is
through development services and the public support forums.<span
style='mso-spacerun:yes'>&nbsp; </span>Check the <a
href="http://www.CiscoUnityTools.com">www.CiscoUnityTools.com</a> site on the
&#8220;links&#8221; page for current links to get to those forums.<span
style='mso-spacerun:yes'>&nbsp; </span>&#8220;Not supported by TAC&#8221; does
not mean the SDK is somehow dangerous or risky to use.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Any .NET framework can use
these libraries. This means you can, of course, develop desktop and web
applications on Windows using C#, VB.NET, Iron Python etc&#8230; While
technically possible to work in Linux and Mac using Mono, this is not currently
supported given the differences in the IBM drivers on the client side needed to
interact with Connection via ODBC.<span style='mso-spacerun:yes'>&nbsp;
</span>Separate implementations would have to be provided to work with these
&#8211; which may happen if there&#8217;s demand, currently testing is limited
to Windows platforms only.<o:p></o:p></span></p>

<h1><a name="_Toc366578024">Why ODBC, Isn&#8217;t That Going Away?</a></h1>

<p class=MsoNormal><span style='font-size:8.0pt'>I get this one all the time so
let me just address it here. There are a number of very good reasons for doing applications
that use direct ODBC access and Unity Connection will continue to support ODBC
via the proxy service into the future.<span style='mso-spacerun:yes'>&nbsp;
</span>There are no plans to deprecate this service and in fact with the Unity
Connection 10.0 the service is being made easier to setup (fewer steps) and the
service now stays on forever with no shut down timer.<o:p></o:p></span></p>

<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span
style='font-size:8.0pt'>Reason number 1</span></b><span style='font-size:8.0pt'>
is for support on older versions of Unity Connection.<span
style='mso-spacerun:yes'>&nbsp; </span>As noted above you can go back to 7.0(2)
(and actually into the 2.x versions if necessary).<span
style='mso-spacerun:yes'>&nbsp; </span>REST interfaces didn&#8217;t start
appearing till late in the 8.x line.<o:p></o:p></span></p>

<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span
style='font-size:8.0pt'>Reason number 2</span></b><span style='font-size:8.0pt'>
is that REST does not provide complete coverage for all administrative tasks
and data.<span style='mso-spacerun:yes'>&nbsp; </span>With the release of 10.0
the REST APIs for Connection have taken huge strides and the API is considerably
more complete and robust providing access to the vast majority of what <span
class=GramE>administrators</span> need there are still &#8220;corner
case&#8221; items not exposed via REST.<span style='mso-spacerun:yes'>&nbsp;
</span>ODBC is, by definition, always complete since the administration and
back end features are built using the views and stored procedures exposed.<span
style='mso-spacerun:yes'>&nbsp; </span><o:p></o:p></span></p>

<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span
style='font-size:8.0pt'>Reason number 3</span></b><span style='font-size:8.0pt'>,
and this is a big one, is performance.<span style='mso-spacerun:yes'>&nbsp;
</span>For individual object editing and smaller data sets, user settings,
inbox views etc&#8230; REST is an ideal solution given its cross platform
capabilities and ease of use from just about any development platform on the
planet.<span style='mso-spacerun:yes'>&nbsp; </span>However, when you need to
do a LOT of editing (think bulk editing of 10,000 objects) direct ODBC access
will be 20 to 30 times faster.<span style='mso-spacerun:yes'>&nbsp; </span>Yes,
I said times, not percent.<span style='mso-spacerun:yes'>&nbsp; </span>If I
rewrote a tool like COBRAS to migrate data using only REST instead of ODBC
migrations would take days. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>That last item throws some
folks.<span style='mso-spacerun:yes'>&nbsp; </span>I often get
&#8220;can&#8217;t you just make REST work faster&#8221;?<span
style='mso-spacerun:yes'>&nbsp; </span>Well, certainly there are efficiencies
that can be obtained via any HTTP based protocol such as white listing which
properties you want fetched and providing task-specific methods that
&#8220;wrap up&#8221; numerous complex calls needed on the back end instead of
requiring a series of HTTP request/response calls from the client.<span
style='mso-spacerun:yes'>&nbsp; </span>But there&#8217;s a couple things that
will always make a typical REST interface much slower than direct database
access via a binary transport.<span style='mso-spacerun:yes'>&nbsp; </span><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The aforementioned HTTP
request/response will always provide overhead &#8211; the data needs to be
converted into a text representation of JSON or XML, sent across, the receiving
party parses it out and converts it back into a dictionary or class instance (a
process known as &#8220;serialization&#8221; and
&#8220;deserialization&#8221;).<span style='mso-spacerun:yes'>&nbsp; </span>This
is always going to be slower than sending a well formed SQL query via ODBC and
getting a dataset or record set back (I&#8217;ll explain the difference between
these later).<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The other thing that tends to
throttle REST based API is the REST philosophy of working with
&#8220;nouns&#8221; and &#8220;verbs&#8221; &#8211; I&#8217;m not going to get
into a dissertation on REST best practices here but the general idea is
applications work with &#8220;nouns&#8221; (an object such as a user or a call
handler in our case) using verbs (add, delete, modify, get).<span
style='mso-spacerun:yes'>&nbsp; </span>The idea is you don&#8217;t need to know
much about the overall object model up front, you can &#8220;drill down&#8221;
to what you need at the object level and part of the results will have URIs to
where you need to go to get related information.<span
style='mso-spacerun:yes'>&nbsp; </span>For instance when you fetch a user as part
of the result set you get a URI to go get the greetings or transfer rules
associated with that user.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>That last bit is part of the
rub.<span style='mso-spacerun:yes'>&nbsp; </span>Say for instance I want to
take everyone in a Class of Service and set their standard transfer rule to not
ring their phone.<span style='mso-spacerun:yes'>&nbsp; </span>Via ODBC I can
find the <span class=SpellE>ObjectIds</span> (unique identifiers) for all the
transfer rules I want to update in one SQL query and then simply loop through
them calling a stored procedure to update the transfer rules behavior one at a
time (yes, you could just do a direct table update but then you&#8217;d be an evil
hack who needs to step away from the keyboard immediately).<span
style='mso-spacerun:yes'>&nbsp; </span>In REST you need to get the list of
users associated with the COS which sends a lot of data by itself, then you
need to fetch the URI for the standard transfer rule for each user one at a
time and then execute a POST for that rule to update its behavior one at a
time. This takes much, much longer.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The short version is you send
orders of magnitude more data back and forth across the wire and have to
serialize/de serialize it on both sides over and over again.<span
style='mso-spacerun:yes'>&nbsp; </span>The idea that you can simply
&#8220;speed this process up&#8221; somehow isn&#8217;t really realistic.<span
style='mso-spacerun:yes'>&nbsp; </span>It can be optimized but you&#8217;ll
never get within spitting distance of direct database access.<span
style='mso-spacerun:yes'>&nbsp; </span>Yes, you can simply execute SQL queries
via an HTTP protocol and call stored <span class=SpellE>procs</span> that way
(think AXL type interfaces here) but then you aren&#8217;t really conforming to
REST standards and you&#8217;ll still have significant HTTP processing overhead
involved.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Yes, using ODBC is more
difficult.<span style='mso-spacerun:yes'>&nbsp; </span>It requires installation
of a 3<sup>rd</sup> party client library to use and a fairly deep understanding
of the target system&#8217;s data model.<span style='mso-spacerun:yes'>&nbsp;
</span>It&#8217;s not for everyone and not appropriate to all projects.<span
style='mso-spacerun:yes'>&nbsp; </span>But when you need to move a lot of data
fast, it simply cannot be beat.<o:p></o:p></span></p>

<h1><a name="_Toc366578025">Won&#8217;t ODBC Projects Break With Every New
Release?</a></h1>

<p class=MsoNormal><span style='font-size:8.0pt'>This is the 2<sup>nd</sup>
most common question I get and I just want to address it in its own section
here.<o:p></o:p></span></p>

<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span
style='font-size:8.0pt'>Short answer</span></b><span style='font-size:8.0pt'>:
No, of course not.<o:p></o:p></span></p>

<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span
style='font-size:8.0pt'>Longer answer</span></b><span style='font-size:8.0pt'>:
If you use views (instead of tables) when fetching data and always (always!)
update/create/delete via stored procedures you will never have a problem
here.<span style='mso-spacerun:yes'>&nbsp; </span>I&#8217;ve been writing ODBC
based tools for Unity and Unity Connection for 15+ years now and have never
once gotten burned by a data model change between versions.<span
style='mso-spacerun:yes'>&nbsp; </span>Not once. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>We always make sure views and
stored <span class=SpellE>procs</span> are backwards compatible so if you stick
to the rules of the road you&#8217;ll be fine. It&#8217;s exceedingly rare that
any item be _removed_ from the object model entirely.<span
style='mso-spacerun:yes'>&nbsp; </span>Even if that does happen (I can think of
perhaps 2 instances) the item is always just deprecated in the data dictionary,
it&#8217;s not actually removed from the table definition itself.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<h1><a name="_Toc366578026">Installing and Using the Library in Your Project</a></h1>

<p class=Default><b><span style='font-size:11.5pt'>The Easy Way </span></b><span
style='font-size:11.5pt'><o:p></o:p></span></p>

<p class=Default><span style='font-size:8.0pt'>The SDK is available via <span
class=SpellE>NuGet</span> package manager and by far the easiest way to install
it is to manage <span class=SpellE>NuGet</span> packages for your project,
select online and search on &#8220;Cisco Unity Connection <span class=SpellE>Odbc</span>
SDK&#8221; and the project should come right up. After adding it all you need
to do is add the &#8220;<span class=SpellE>Cisco.UnityConnection.OdbcSdk</span>&#8221;
to your using list and you&#8217;re off to the races. <o:p></o:p></span></p>

<p class=Default><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=Default><span class=SpellE><span style='font-size:8.0pt'>NuGet</span></span><span
style='font-size:8.0pt'> is nice since it always grabs the latest and notifies
you when an updated version of the library is available and gives you the
option of installing it. <span class=GramE>Couldn&#8217;t be easier.</span> <o:p></o:p></span></p>

<p class=Default><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=Default><b><span style='font-size:11.5pt'>The Hard Way </span></b><span
style='font-size:11.5pt'><o:p></o:p></span></p>

<p class=Default><span style='font-size:8.0pt'>You can still download the
source code for the project and include it manually. This can be handy if you
prefer to debug into the SDK library code directly and see what&#8217;s going
on or the like or if you just don&#8217;t trust <span class=SpellE>NuGet</span>
or doing things the easy way makes you generally suspicious. Whatever works for
<span class=GramE>you.</span><o:p></o:p></span></p>

<p class=Default><span style='font-size:8.0pt'><span
style='mso-spacerun:yes'>&nbsp;</span><o:p></o:p></span></p>

<p class=Default><span style='font-size:8.0pt'>Using any <span class=SpellE>SubVersion</span>
client you like you&#8217;ll need to download the SDK project code off the <span
class=GramE>site&#8217;s</span> download page: <o:p></o:p></span></p>

<p class=Default><span style='font-size:8.0pt'><a
href="http://www.ciscounitytools.com/CodeSamples/Connection/ODBC/ODBC.html">http://www.ciscounitytools.com/CodeSamples/Connection/ODBC/ODBC.html</a><o:p></o:p></span></p>

<p class=Default><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=Default><span style='font-size:8.0pt'>To add the project <span
class=GramE>right click</span> on your solution node in the solution explorer
in Visual Studio. Select &#8220;Add&#8221; and then &#8220;Existing
Project&#8221; and a file explorer window will appear. Navigate to where you
downloaded the library code and select the &#8220;<span class=SpellE>CiscoUnityConnectionServerOdbc.csproj</span>&#8221;
file. This will pull the library into your solution and have it build when you
rebuild your project. This will result in the &#8220;CiscoUnityConnectionServerOdbc.dll&#8221;
ending up in the target BIN output (debug or release) for your project. This is
the only file you need to include in your setup for the library. <o:p></o:p></span></p>

<p class=Default><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=Default><span style='font-size:8.0pt'>Once you&#8217;ve included the
project you then need to add a reference to it in your project &#8211; in your
project right click the &#8220;references&#8221; node in the solution explorer
and select &#8220;add reference&#8221; &#8211; in the resulting dialog select
&#8220;projects&#8221; and select the <span class=SpellE>CiscoUnityConnectionServerOdbc</span>
project and add it. Then you only need to add a &#8220;using </span><span
class=SpellE><span style='font-size:9.5pt;font-family:Consolas'>Cisco.UnityConnection.OdbcSdk</span></span><span
style='font-size:8.0pt'>;&#8221; directive in your project and you&#8217;re off
to the races. <o:p></o:p></span></p>

<p class=MsoNormal><b><span style='font-size:8.0pt'>NOTE</span></b><span
style='font-size:8.0pt'>: Visual Studio has the annoying habit of defaulting to
the &#8220;.Net Framework 4 Client Profile&#8221; as the default for new
projects. This will not work for us as the SDK requires the full &#8220;.Net
Framework 4&#8221; setting. Be sure your project is configured for this or
you&#8217;ll get build errors.</span></p>

<h1><a name="_Toc366578027"></a><a name="_Watching_the_traffic"></a><span
style='mso-bookmark:_Toc366578027'>Using the .NET ODBC SDK</span></h1>

<p class=MsoNormal><span style='font-size:8.0pt'>This document uses a
&#8220;task based&#8221; approach to demonstrating the use of the library
&#8211; each major object class (user, call handler, name lookup handler,
schedule etc&#8230;) has it&#8217;s section and small code snippets are shown
demonstrating the items you&#8217;d typically want to do with those
objects.<span style='mso-spacerun:yes'>&nbsp; </span>This does not attempt to
document the entire data schema or get into too much theory.<span
style='mso-spacerun:yes'>&nbsp; </span>As a developer I know I learn faster
with a simple &#8220;show me&#8221; approach so that&#8217;s what I endeavor to
do here.<o:p></o:p></span></p>

<h2 style='tab-stops:110.8pt'><a name="_Toc366578028">Getting Started</a></h2>

<p class=MsoNormal><span style='font-size:8.0pt'>To attach to Unity Connection
from you Windows client you need to make sure you have:<o:p></o:p></span></p>

<p class=MsoListParagraphCxSpFirst style='text-indent:-.25in;mso-list:l3 level1 lfo2'><![if !supportLists]><span
style='font-size:8.0pt;mso-fareast-font-family:Arial;mso-bidi-font-family:Arial'><span
style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:8.0pt'>The proxy service
turned on<o:p></o:p></span></p>

<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;mso-list:l3 level1 lfo2'><![if !supportLists]><span
style='font-size:8.0pt;mso-fareast-font-family:Arial;mso-bidi-font-family:Arial'><span
style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:8.0pt'>An account
configured with the remote administrator role<o:p></o:p></span></p>

<p class=MsoListParagraphCxSpLast style='text-indent:-.25in;mso-list:l3 level1 lfo2'><![if !supportLists]><span
style='font-size:8.0pt;mso-fareast-font-family:Arial;mso-bidi-font-family:Arial'><span
style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:8.0pt'>Port 20532 needs
to be open between your client and the Unity Connection server.<span
style='mso-spacerun:yes'>&nbsp; </span>All communication via ODBC goes across
this one port so if you&#8217;re not also using REST, SMTP or the like this is
the only port that needs to be open.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The following 4 tasks need to
be done.<o:p></o:p></span></p>

<h3><a name="_Toc359835382"></a><a name="_Toc366578029"><span style='mso-bookmark:
_Toc359835382'><span style='font-size:8.0pt;color:black;font-style:normal;
mso-bidi-font-style:italic'>Task 1: Install the IBM Informix Client SDK.</span></span></a><span
style='mso-bookmark:_Toc359835382'><span style='font-size:8.0pt;color:black;
font-style:normal;mso-bidi-font-style:italic'><o:p></o:p></span></span></h3>

<p class=MsoNormal><span style='mso-bookmark:_Toc359835382'><span
style='font-size:8.0pt'>Go to the ODBC driver download page: </span></span><a
href="http://www.ciscounitytools.com/Applications/CxN/InformixODBC/InformixODBC.html"><span
style='mso-bookmark:_Toc359835382'><span style='font-size:8.0pt'>http://www.ciscounitytools.com/Applications/CxN/InformixODBC/InformixODBC.html</span></span><span
style='mso-bookmark:_Toc359835382'></span></a><span style='mso-bookmark:_Toc359835382'><span
style='font-size:8.0pt'><o:p></o:p></span></span></p>

<p class=MsoNormal><span style='mso-bookmark:_Toc359835382'><span
style='font-size:8.0pt'>You can either download the current version recommend
(at the time of this writing 3.7) or go to IBM&#8217;s site and download the
latest.<span style='mso-spacerun:yes'>&nbsp; </span>You can install the entire
SDK if you like but only and .NET ADO drivers and localization files are
necessary &#8211; the rest is optional.<o:p></o:p></span></span></p>

<p class=MsoNormal><span style='mso-bookmark:_Toc359835382'><span
style='font-size:8.0pt'>All tools published off </span></span><a
href="http://CiscoUnityTools.com"><span style='mso-bookmark:_Toc359835382'><span
style='font-size:8.0pt'>http://CiscoUnityTools.com</span></span><span
style='mso-bookmark:_Toc359835382'></span></a><span style='mso-bookmark:_Toc359835382'><span
style='font-size:8.0pt'> for Unity Connection are strictly 32 bit to keep
install and testing simple &#8211; however you can download and install the 32
or 64 bit drivers as you prefer.<span style='mso-spacerun:yes'>&nbsp;
</span>The SDK is compiled to work with either version.<span
style='mso-spacerun:yes'>&nbsp; </span>The need for 64 bit drivers is dubious,
you will not experience any increase in speed or really any other advantage
which is one of the reasons we keep our tools simple with 32 bit only.<o:p></o:p></span></span></p>

<h3><span style='mso-bookmark:_Toc359835382'><a name="_Toc366578030"><span
style='font-size:8.0pt;color:black;font-style:normal;mso-bidi-font-style:italic'>Task
2: Configure a User with the Remote Administrator and System Administrator
roles</span></a></span><span style='mso-bookmark:_Toc366578030'></span><span
style='mso-bookmark:_Toc359835382'></span><span style='font-size:8.0pt;
color:black;mso-bidi-font-style:italic'><o:p></o:p></span></h3>

<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;orphans: auto;
text-align:start;widows: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span
style='font-size:8.0pt;mso-bidi-font-family:Arial;color:black'>1.</span><span
style='font-size:8.0pt;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;<span
class=apple-converted-space>&nbsp;</span></span><span style='font-size:8.0pt;
mso-bidi-font-family:Arial;color:black'>Go to the Cisco Unity Connection
Administration web interface for your installation. </span><span
class=apple-converted-space><span style='font-size:8.0pt;color:black'>&nbsp;</span></span><span
style='font-size:8.0pt;mso-bidi-font-family:Arial;color:black'>You can leverage
a user with or without a mailbox for off box data access purpose.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;orphans: auto;
text-align:start;widows: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span
style='font-size:8.0pt;mso-bidi-font-family:Arial;color:black'>3.</span><span
style='font-size:8.0pt;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;<span
class=apple-converted-space>&nbsp;</span></span><span style='font-size:8.0pt;
mso-bidi-font-family:Arial;color:black'>Be sure the web administration password
for this user is not configured to require a change at first login on the
&#8220;Password Policy&#8221; page for that user.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;orphans: auto;
text-align:start;widows: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span
style='font-size:8.0pt;mso-bidi-font-family:Arial;color:black'>4.</span><span
style='font-size:8.0pt;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;<span
class=apple-converted-space>&nbsp;</span></span><span style='font-size:8.0pt;
mso-bidi-font-family:Arial;color:black'>If necessary, change the web
administration password on the &#8220;Change Password&#8221; page.&nbsp;<span
class=apple-converted-space>&nbsp;</span>Note that only the web application
password comes into play for remote data access.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;orphans: auto;
text-align:start;widows: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span
style='font-size:8.0pt;mso-bidi-font-family:Arial;color:black'>5.</span><span
style='font-size:8.0pt;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;<span
class=apple-converted-space>&nbsp;</span></span><span style='font-size:8.0pt;
mso-bidi-font-family:Arial;color:black'>Finally, on the &#8220;Role&#8221; page
for the user, add the &#8220;<b>Remote<span class=apple-converted-space>&nbsp;</span><st1:personname u1:st="on">Administrator</st1:personname></b>&#8221;
and the &#8220;<b>System<span class=apple-converted-space>&nbsp;</span><st1:personname u1:st="on">Administrator</st1:personname></b>&#8221;
roles to the &#8220;Assigned Roles&#8221; list and save.&nbsp;<span
class=apple-converted-space>&nbsp;</span>You can assign any or all other roles
as well but for the purposes of remote access to the database and making
updates to users those two are necessary.<o:p></o:p></span></p>

<h3 style='orphans: auto;text-align:start;widows: auto;-webkit-text-stroke-width: 0px;
word-spacing:0px'><a name="_Toc366578031"></a><a name="_Toc359835383"></a><a
name="_Toc239124999"></a><span style='mso-bookmark:_Toc366578031'><span
style='mso-bookmark:_Toc359835383'><span style='font-size:8.0pt;color:black;
font-style:normal;mso-bidi-font-style:italic'>Task 3: Set the Database Proxy
Service Shutdown Time</span></span></span><span style='mso-bookmark:_Toc359835383'></span><span
style='mso-bookmark:_Toc366578031'></span><span style='font-size:8.0pt;
color:black;mso-bidi-font-style:italic'><o:p></o:p></span></h3>

<p class=MsoNormal style='margin-left:.5in;orphans: auto;text-align:start;
widows: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span
style='font-size:8.0pt;mso-bidi-font-family:Arial;color:black'>Out of the box
the database proxy service is not running and if you try to start the service
it will shut down right away.&nbsp;<span class=apple-converted-space>&nbsp;</span>First
you need to set the &#8220;Database Proxy: Service Shutdown Timer&#8221; value
found in the System Settings -&gt; Advanced -&gt; Connection Administration
section of the Cisco Unity Connection Administration page.&nbsp;<span
class=apple-converted-space>&nbsp;</span>By default this is 0.&nbsp;<span
class=apple-converted-space>&nbsp;</span>You can set it to as high as 999 days
if you like.&nbsp;<span class=apple-converted-space>&nbsp;</span>After the
number of days configured here the remote database proxy service will shut
down.&nbsp;<span class=apple-converted-space>&nbsp;</span><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in;orphans: auto;text-align:start;
widows: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><b><span
style='font-size:8.0pt;mso-bidi-font-family:Arial;color:red'>NOTE</span></b><span
style='font-size:8.0pt;mso-bidi-font-family:Arial;color:black'>: If you are
running Unity Connection 10.0 there is no shutdown time, this step is not
necessary.<o:p></o:p></span></p>

<h3 style='orphans: auto;text-align:start;widows: auto;-webkit-text-stroke-width: 0px;
word-spacing:0px'><a name="_Toc366578032"></a><a name="_Toc359835384"></a><a
name="_Toc239125000"></a><span style='mso-bookmark:_Toc366578032'><span
style='mso-bookmark:_Toc359835384'><span style='font-size:8.0pt;color:black;
font-style:normal;mso-bidi-font-style:italic'>Task 4: Activate the Remote
Database Proxy Service</span></span></span><span style='mso-bookmark:_Toc359835384'></span><span
style='mso-bookmark:_Toc366578032'></span><span style='font-size:8.0pt;
color:black;mso-bidi-font-style:italic'><o:p></o:p></span></h3>

<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;orphans: auto;
text-align:start;widows: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span
style='font-size:8.0pt;mso-bidi-font-family:Arial;color:black'>1.</span><span
style='font-size:8.0pt;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;<span
class=apple-converted-space>&nbsp;</span></span><span style='font-size:8.0pt;
mso-bidi-font-family:Arial;color:black'>Out of the box the service that listens
to remote database requests is not active, you must turn it on.&nbsp;<span
class=apple-converted-space>&nbsp;</span>To do this, go to the &#8220;Cisco
Unity Connection Serviceability&#8221; web admin page.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;orphans: auto;
text-align:start;widows: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span
style='font-size:8.0pt;mso-bidi-font-family:Arial;color:black'>2.</span><span
style='font-size:8.0pt;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;<span
class=apple-converted-space>&nbsp;</span></span><span style='font-size:8.0pt;
mso-bidi-font-family:Arial;color:black'>On the Tools menu, select the
&#8220;Service Management&#8221; page.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;orphans: auto;
text-align:start;widows: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span
style='font-size:8.0pt;mso-bidi-font-family:Arial;color:black'>3.</span><span
style='font-size:8.0pt;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;<span
class=apple-converted-space>&nbsp;</span></span><span style='font-size:8.0pt;
mso-bidi-font-family:Arial;color:black'>The &#8220;Connection Database
Proxy&#8221; item under the &#8220;Optional Services&#8221; section will be
marked as &#8220;Deactivated&#8221; and stopped.&nbsp;<span
class=apple-converted-space>&nbsp;</span>Press the &#8220;Activate&#8221;
button and it will be activated and started automatically.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in;orphans: auto;text-align:start;
widows: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span
style='font-size:8.0pt;mso-bidi-font-family:Arial;color:black'>Once
you&#8217;ve started the proxy service you can connect with any tool that needs
off box database access using the user name, web administration password and
port &#8220;20532&#8221;.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in;orphans: auto;text-align:start;
widows: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><b><span
style='font-size:8.0pt;mso-bidi-font-family:Arial;color:red'>NOTE</span></b><span
style='font-size:8.0pt;mso-bidi-font-family:Arial;color:black'>: The service
will automatically shut down after the number of days configured in step 2
above or if you restart the server unless you&#8217;re running Unity Connection
10.0 or later in which case there is no timer.<o:p></o:p></span></p>

<h3><a name="_Toc366578033"><span class=Heading3Char><span style='font-family:
"Arial","sans-serif";mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:
minor-fareast;color:black;mso-themecolor:text1;mso-bidi-font-weight:normal'>Logging
into Connection</span></span></a><span style='mso-bookmark:_Toc366578033'></span><span
style='color:black;mso-themecolor:text1;font-weight:normal;mso-bidi-font-weight:
bold'><o:p></o:p></span></h3>

<p class=MsoNormal><span style='font-size:8.0pt'>The SDK is designed to support
multiply threaded applications that may be attached to more than one Connection
server at a time (for instance a network of Connection clusters).<span
style='mso-spacerun:yes'>&nbsp; </span>As such you can create multiple
instances of the <span class=SpellE><b style='mso-bidi-font-weight:normal'>CiscoConnectionServerOdbc</b></span>
class at the same time.<span style='mso-spacerun:yes'>&nbsp; </span>If you have
multiple threads acting on a single instance of the class then when building
and running stored procedures it will be serialized such that one stored
procedure is built and run at a time.<span style='mso-spacerun:yes'>&nbsp;
</span>The SDK hides the complexity from you here and so long as you&#8217;re
application is reasonably quick about constructing your stored procedure and
calling it you should have no problems if multiple threads are all calling
stored procedures on a single instance.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The login sequence using the
class is a simple <span class=SpellE>two step</span> process that looks like
this:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span style='font-size:8.5pt;font-family:Consolas;
color:#2B91AF'>CiscoUnityConnectionServerOdbc</span></span><span
style='font-size:8.5pt;font-family:Consolas'> server = <span style='color:blue'>new</span>
<span class=SpellE><span class=GramE><span style='color:#2B91AF'>CiscoUnityConnectionServerOdbc</span></span></span><span
class=GramE>(</span><o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=GramE><span
style='color:blue'>new</span></span> <span class=SpellE><span style='color:
#2B91AF'>ConnectionInformixAdoNetDatabaseFunctions</span></span>(<span
style='color:#A31515'>&quot;<span class=SpellE>TestApplication</span>&quot;</span>));<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas;color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>var</span></span></span><span
style='font-size:8.5pt;font-family:Consolas'> res= <span class=SpellE>server.LoginDatabaseBlocking</span>(<span
style='color:#A31515'>&quot;192.168.0.197&quot;</span>, <span style='color:
#A31515'>&quot;<span class=SpellE>dbdude</span>&quot;</span>, <span
style='color:#A31515'>&quot;<span class=SpellE>labPw</span>&quot;</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas;color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas;
color:blue'>if</span></span><span style='font-size:8.5pt;font-family:Consolas'>
(<span class=SpellE>res.Successful</span> == <span style='color:blue'>false</span>)<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=SpellE><span
class=GramE><span style='color:#2B91AF'>Console</span>.WriteLine</span></span><span
class=GramE>(</span><span style='color:#A31515'>&quot;Failed to log in:&quot;</span>+res);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=GramE><span
style='color:blue'>return</span></span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>}<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas;color:#2B91AF'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:#2B91AF'>Console</span><span style='font-size:8.5pt;
font-family:Consolas'>.WriteLine</span></span></span><span class=GramE><span
style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;Logged
into:&quot;</span><span style='font-size:8.5pt;font-family:Consolas'> +
server);<span style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>We&#8217;ll look more at the
return structure from calls into the SDK and general error handling later.<span
style='mso-spacerun:yes'>&nbsp; </span>The important items to take away here is
the server construction line and the use of the <span class=SpellE>LoginDatabaseBlocking</span>
call to do the attachment.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The first line passes a new <span
class=SpellE>CoinnectionInforixAdoNetDatabaseFunctions</span> class instance
with the &#8220;<span class=SpellE>TestApplication</span>&#8221; string.<span
style='mso-spacerun:yes'>&nbsp; </span>This creates a new database functions
interface in the main server class for us and the name there shows up in all
Unity Connection audit logs for calls you make via ODBC &#8211; be sure to put
a meaningful name in here for diagnostic purposes.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Why pass in a constructor like
that?<span style='mso-spacerun:yes'>&nbsp; </span>Currently it may not look
like its necessary but the idea here is so we can support multiple database
engines without having to change the interface in the SDK and, by extension,
tools created using the SDK will continue to work with alternative database
engines or drivers.<span style='mso-spacerun:yes'>&nbsp; </span>For instance we
may add support for a <span class=SpellE>ConnectionInformixOdbcDatabaseFunctions</span>
constructor there to provide support for the older 16 bit ODBC driver provided
by IBM.<span style='mso-spacerun:yes'>&nbsp; </span>Or versions of their driver
for Linux or Mac could be included here.<span style='mso-spacerun:yes'>&nbsp;
</span>Or, more interestingly, if Unity Connection ever goes to a new database
such as <span class=SpellE>PostgreSql</span> for instance, the SDK can be made
to wrap client calls cleanly so applications don&#8217;t have to know or care
about the different drivers and back ends involved.<span
style='mso-spacerun:yes'>&nbsp; </span>I&#8217;m not saying this will happen
(or it won&#8217;t), I&#8217;m just saying if it does, applications written
using the SDK will port forward reasonably easily so long as the basic data model
doesn&#8217;t change too much.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>In short a little extra
complexity up front now can provide a whole lot of value later.<span
style='mso-spacerun:yes'>&nbsp; </span><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The <span class=SpellE>LoginDatabaseBlocking</span>
should be pretty obvious &#8211; it&#8217;s a blocking call vs. <span
class=GramE>a<span style='mso-spacerun:yes'>&nbsp; </span>background</span>
call.<span style='mso-spacerun:yes'>&nbsp; </span>We may provide background
versions but at this point I doubt it since it&#8217;s easy enough to launch
your own thread for such things in .NET, particularly in .NET 4.5 which makes
this all but trivial. We&#8217;ll look at what&#8217;s returned by that method
(and most methods in the SDK) in the next section.<o:p></o:p></span></p>

<h3><a name="_Toc366578034"></a><a name="_The_WebCallResult_Class"></a><span
style='mso-bookmark:_Toc366578034'>The <span class=SpellE>DbFetchResult</span>
Class</span><span style='mso-bookmark:_Toc366578034'></span><span
style='font-size:12.0pt;mso-bidi-font-size:14.0pt'><o:p></o:p></span></h3>

<p class=MsoNormal><span style='font-size:8.0pt'>Throughout the library you
will see most methods will return an instance of the <span class=SpellE>DbFetchResult</span>
instead of a simple integer or a <span class=SpellE>bool</span>.<span
style='mso-spacerun:yes'>&nbsp; </span>There is a method to the madness here
&#8211; the <span class=SpellE>DbFetchResult</span> class holds all the
information about what was requested and what came back from the server so
diagnosing what went wrong and what, exactly the error details were is much
easier.<span style='mso-spacerun:yes'>&nbsp; </span>The SDK itself does not
have logging built into it, naturally, so it has to return to the calling
application as much detailed and useful data as it can so YOU can log it
properly in your application.<span style='mso-spacerun:yes'>&nbsp;
</span>That&#8217;s the idea.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The &#8220;<span class=SpellE><span
class=GramE>ToString</span></span><span class=GramE>(</span>)&#8221; override
for the class includes all details of the query and results, error code
etc&#8230; in one shot &#8211; makes logging out failures a simple
process.<span style='mso-spacerun:yes'>&nbsp; </span>The query string returned
in the class includes all parameters and their values (for either a query or a
stored procedure call) so it&#8217;s a simple matter of dropping the results to
your log file or console or whatever using the <span class=SpellE><span
class=GramE>ToString</span></span><span class=GramE>(</span>) and you have
everything you need for running down the problem.<span style='color:black;
mso-themecolor:text1'><o:p></o:p></span></span></p>

<h3><a name="_Toc366578035">Logging and Debugging with the SDK</a><span
style='mso-bookmark:_Toc366578035'></span><span style='font-size:12.0pt;
mso-bidi-font-size:14.0pt'><o:p></o:p></span></h3>

<p class=MsoNormal><span style='font-size:8.0pt'>Since I&#8217;ve been asked a
few times, let me just state up front here that the SDK is not <i
style='mso-bidi-font-style:normal'>supposed</i> to log to a file on the hard
drive for you.<span style='mso-spacerun:yes'>&nbsp; </span>Most of what you
need for your own error handling and logging is passed back as part of the <span
class=SpellE>DbFetchResult</span> class mentioned above.<span
style='mso-spacerun:yes'>&nbsp; </span>Since the SDK can be (and is) used in a
variety of application types such as desktop applications, services and web
servers it cannot assume access to the local file system for logging purposes.<span
style='mso-spacerun:yes'>&nbsp; </span>It does provide a few event handles you
can wire up to provide more &#8220;dialog like&#8221; logging in your
application if you prefer and/or can provide more diagnostic output you can
handle as you like at your application level as disused in this next section.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.0pt'>The <span class=SpellE>UnityConnectrionServerOdbc</span>
object exposes a couple of events you can use if you wish to be notified of any
error and, optionally, debug event data that you can &#8220;hook&#8221; in your
application to provide a more &#8220;dialog&#8221; logging output for instance.<span
style='mso-spacerun:yes'>&nbsp; </span>As noted above most calls in the SDK
return a <span class=SpellE>DbFetchResult</span> class instance that has all
the error and details of what was <span class=GramE>sent/received</span> from
the server that you&#8217;d need.<span style='mso-spacerun:yes'>&nbsp;
</span>For any errors that may take place on the back end which are not tied
directly to a method call with a <span class=SpellE>DbFetchResult</span> return,
you can hook the <span class=SpellE>ErrorEvents</span> event off the <span
class=SpellE>CiscoUnityConnectionServer</span> class and the database functions
class instance you passed to it (in our case this currently means the <span
class=SpellE><b style='mso-bidi-font-weight:normal'>ConnectionInformixAdoNetDatabaseFunctions</b></span>
class).<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>This is easy to setup in .NET.<span
style='mso-spacerun:yes'>&nbsp; </span>After creating the server object you can
add these two lines of code:<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span style='mso-bidi-font-size:10.0pt;font-family:Consolas;
color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span class=SpellE><span style='font-size:8.5pt;font-family:
Consolas;color:black'>server.ErrorEvents</span></span><span style='font-size:
8.5pt;font-family:Consolas;color:black'>&nbsp;+=&nbsp;<span class=SpellE>ServerOnErrorEvents</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;text-indent:.5in;mso-layout-grid-align:
none;text-autospace:none'><span class=SpellE><span style='font-size:8.5pt;
font-family:Consolas'>server.DatabaseFunctions.ErrorEvents</span></span><span
style='font-size:8.5pt;font-family:Consolas'> += <span class=SpellE>ServerOnErrorEvents</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span style='font-size:8.5pt;font-family:Consolas;color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Then the definition for the method
that fires when the error event is raised looks like this:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span class=GramE><span style='font-size:8.5pt;font-family:
Consolas;color:blue'>private</span></span><span style='font-size:8.5pt;
font-family:Consolas;color:black'>&nbsp;</span><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>static</span><span style='font-size:8.5pt;
font-family:Consolas;color:black'>&nbsp;</span><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>void</span><span style='font-size:8.5pt;
font-family:Consolas;color:black'>&nbsp;<span class=SpellE>ServerOnErrorEvents</span>(</span><span
style='font-size:8.5pt;font-family:Consolas;color:blue'>object</span><span
style='font-size:8.5pt;font-family:Consolas;color:black'>&nbsp;sender,&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span style='font-size:8.5pt;font-family:Consolas;color:blue'><span
style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span
class=SpellE><span style='font-size:8.5pt;font-family:Consolas;color:#2B91AF'>ConnectionServer</span><span
style='font-size:8.5pt;font-family:Consolas;color:black'>.</span><span
style='font-size:8.5pt;font-family:Consolas;color:#2B91AF'>LogEventArgs</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:black'>&nbsp;<span
class=SpellE>logEventArgs</span>)<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span style='font-size:8.5pt;font-family:Consolas;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span style='font-size:8.5pt;font-family:Consolas;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
class=SpellE><span class=GramE>Logger.Log</span></span><span class=GramE>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;[ERROR]:&quot;</span><span
style='font-size:8.5pt;font-family:Consolas;color:black'>+<span class=SpellE>logEventArgs.Line</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span style='font-size:8.5pt;font-family:Consolas;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Nothing too fancy &#8211; Any
and all errors that are encountered on the server or the database functions
classes will show up in the log now where you can spot them.<span
style='mso-spacerun:yes'>&nbsp; </span><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Similarly you can wire up the
debug event that can also be useful, however you should only do this if you&#8217;re
having a specific problem you&#8217;re trying to diagnose &#8211; you should
NEVER have this enabled in a production application because the debug output is
VERY chatty.<span style='mso-spacerun:yes'>&nbsp; </span>However if you need to
see what&#8217;s going on with a customer&#8217;s system or the like and
that&#8217;s not an option, you can dump the traffic information out by wiring
up the event like this:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span class=SpellE><span style='font-size:8.5pt;font-family:
Consolas;color:black'>server.DebugEvents</span></span><span style='font-size:
8.5pt;font-family:Consolas;color:black'>&nbsp;+=&nbsp;<span class=SpellE>ServerOnDebugEvents</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span class=SpellE><span style='font-size:8.5pt;font-family:
Consolas;color:black'>server.DatabaseFunctions.DebugEvents</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:black'>&nbsp;+=&nbsp;<span
class=SpellE>ServerOnDebugEvents</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span style='font-size:8.5pt;font-family:Consolas;color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span class=SpellE><span style='font-size:8.5pt;font-family:
Consolas;color:black'>server.DebugMode</span></span><span style='font-size:
8.5pt;font-family:Consolas;color:black'>&nbsp;=&nbsp;</span><span
style='font-size:8.5pt;font-family:Consolas;color:blue'>true</span><span
style='font-size:8.5pt;font-family:Consolas;color:black'>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;text-indent:.5in;mso-layout-grid-align:
none;text-autospace:none'><span class=SpellE><span style='font-size:8.5pt;
font-family:Consolas'>server.DatabaseFunctions.DebugMode</span></span><span
style='font-size:8.5pt;font-family:Consolas'> = <span style='color:blue'>true</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span style='font-size:8.5pt;font-family:Consolas;color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Notice that you have to turn
debug mode on &#8211; if you don&#8217;t do that (it&#8217;s off by default)
nothing will be raised out of the event.<span style='mso-spacerun:yes'>&nbsp;
</span>Then a very similar signature is used for the event that is fired on the
debug event as the error event:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span class=GramE><span style='font-size:8.5pt;font-family:
Consolas;color:blue'>private</span></span><span style='font-size:8.5pt;
font-family:Consolas;color:black'>&nbsp;</span><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>static</span><span style='font-size:8.5pt;
font-family:Consolas;color:black'>&nbsp;</span><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>void</span><span style='font-size:8.5pt;
font-family:Consolas;color:black'>&nbsp;<span class=SpellE>ServerOnDebugEvents</span>(</span><span
style='font-size:8.5pt;font-family:Consolas;color:blue'>object</span><span
style='font-size:8.5pt;font-family:Consolas;color:black'>&nbsp;sender,&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span style='font-size:8.5pt;font-family:Consolas;color:blue'><span
style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span
class=SpellE><span style='font-size:8.5pt;font-family:Consolas;color:#2B91AF'>ConnectionServer</span><span
style='font-size:8.5pt;font-family:Consolas;color:black'>.</span><span
style='font-size:8.5pt;font-family:Consolas;color:#2B91AF'>LogEventArgs</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:black'>&nbsp;<span
class=SpellE>logEventArgs</span>)<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span style='font-size:8.5pt;font-family:Consolas;color:black'>{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span style='font-size:8.5pt;font-family:Consolas;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;<span
class=SpellE><span class=GramE>Logger.Log</span></span><span class=GramE>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;[DEBUG]:&quot;</span><span
style='font-size:8.5pt;font-family:Consolas;color:black'>&nbsp;+&nbsp;<span
class=SpellE>logEventArgs.Line</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><span style='font-size:8.5pt;font-family:Consolas;color:black'>}<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Not too tricky.<span
style='mso-spacerun:yes'>&nbsp; </span>Again, though, I highly encourage folks to
wire up and alert/log on error events but leave the debug events out of the
picture unless you have a driving need for them in a particular scenario.<o:p></o:p></span></p>

<h3><a name="_Toc366578036"></a><a name="_Users"></a><span style='mso-bookmark:
_Toc366578036'>CUDLI Is Your Friend</span></h3>

<p class=MsoNormal><span style='font-size:8.0pt'>If you&#8217;re going to be
doing anything with SQL queries into Unity Connection your first stop needs to
be CiscoUnityTools.com and pick up the latest version of the data link explorer
application CUDLI.<span style='mso-spacerun:yes'>&nbsp; </span>This application
contains a complete data dictionary for all major releases of Unity Connection
and has many, many helpful functions for finding the data or procedure you want
to run, what parameters it takes, what values are legal for them etc&#8230;
etc&#8230; it will save you much time and make you considerably more effective
developing applications.<span style='mso-spacerun:yes'>&nbsp; </span>It&#8217;s
on every desktop I develop on without exception and its up and running most of
the time.<span style='mso-spacerun:yes'>&nbsp; </span>Get your copy here:<o:p></o:p></span></p>

<p class=MsoNormal><a
href="http://www.ciscounitytools.com/Applications/CxN/CUDLI/CUDLI.html">http://www.ciscounitytools.com/Applications/CxN/CUDLI/CUDLI.html</a></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<h2 style='tab-stops:110.8pt'><a name="_Toc366578037">Fetching Data</a></h2>

<h3><a name="_Toc366578038">Data Tables and Data Readers</a></h3>

<p class=MsoNormal><span style='font-size:8.0pt'>Before we get started
I&#8217;d like to briefly cover the mechanics of getting data off a server and
to a client via ODBC.<span style='mso-spacerun:yes'>&nbsp; </span>Naturally you
can fetch individual properties or a scalar value (number) that&#8217;s just a
single item &#8211; however in most cases you&#8217;re doing a fetch of more
than one row of data consisting of more than one column.<span
style='mso-spacerun:yes'>&nbsp; </span>There are two approaches to doing this:
fill a dataset which is essentially a two dimensional array with information
from the query or establish a data reader for reading through all the rows.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>On the surface these two look
fairly similar; however under the covers they behave very differently.<span
style='mso-spacerun:yes'>&nbsp; </span>In short unless you have a very specific
reason for doing so, always use data tables.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The SDK is designed to fetch
either single values, scalar values or return data tables filled with the
results of queries.<span style='mso-spacerun:yes'>&nbsp; </span>This follows a
very simple pattern of fetching data, filling a structure, passing it back and
being ready for the next call.<span style='mso-spacerun:yes'>&nbsp; </span>No
pervasive connection is maintained to the server via ODBC, it&#8217;s a strict
&#8220;in and out&#8221; operation and scales well and is nice and clean.<span
style='mso-spacerun:yes'>&nbsp; </span>Further this uses only native data types
in .NET &#8211; the <span class=SpellE>DataTable</span> class is part of the
standard system data library and this works across different drivers and
database engines without issue. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>A <span class=SpellE>DataReader</span>
on the other hand is an implementation of the old &#8220;<span class=SpellE>firehose</span>
cursor&#8221; some of you old school database folks may remember.<span
style='mso-spacerun:yes'>&nbsp; </span>It&#8217;s a forward only, read only
data reader that maintains a connection to the server until you destroy the
reader.<span style='mso-spacerun:yes'>&nbsp; </span>It&#8217;s got all kinds of
intelligence built into it to <span class=SpellE>prefetch</span> rows of data
as you iterate over the result set.<span style='mso-spacerun:yes'>&nbsp;
</span>It&#8217;s quick, it&#8217;s easy and it can handle iterating over an
enormous return set (think hundreds of thousands of rows) reasonably
efficiently. <span style='mso-spacerun:yes'>&nbsp;</span><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The down side, however, is
that it uses a proprietary type (for instance the <span class=SpellE>IfxDataReader</span>
for the Informix .NET driver) that requires you include their development
library in your project and until you destroy the object it maintains its own
separate connection to the server via ODBC.<span
style='mso-spacerun:yes'>&nbsp; </span>If you open 10 data readers you will
have 10 separate connections to the database if you&#8217;re not careful.<span
style='mso-spacerun:yes'>&nbsp; </span>Unity Connection will stop allowing more
attachments after 10 so then your application will start behaving oddly. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The vast majority of my
applications do not use data readers at all for any reason.<span
style='mso-spacerun:yes'>&nbsp; </span>One notable exception is the User Data
Dump &#8211; it uses one data reader to iterate over all users in the system
and then does supplemental data fetches for additional information via data
tables.<span style='mso-spacerun:yes'>&nbsp; </span>Given the large amount of
data associated with a user and the large numbers of users (20,000) possible,
it made sense to employ the efficiency of a data reader for this purpose.<span
style='mso-spacerun:yes'>&nbsp; </span>To be clear, then, User Data Dump
actually uses two ODBC connections to the server for the duration of its run.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>For these edge case needs the
SDK does provide a mechanism for leveraging data readers in your
applications.<span style='mso-spacerun:yes'>&nbsp; </span>That said, be sure to
only use it if you absolutely need it.<span style='mso-spacerun:yes'>&nbsp;
</span>A data table can easily accommodate thousands of rows of data without
significantly impacting performance or memory in a typical application and is a
much better design choice on the whole.<o:p></o:p></span></p>

<h3><a name="_Toc366578039">Filling a Data Table</a></h3>

<p class=MsoNormal><span style='font-size:8.0pt'>Let&#8217;s start by looking
at one of the most common tasks you&#8217;ll want to do with the SDK and
that&#8217;s filling a data table based on an SQL query.<span
style='mso-spacerun:yes'>&nbsp; </span>Here&#8217;s a typical example where
we&#8217;re pulling the alias and <span class=SpellE>ObjectId</span> (unique
GUID) for all subscribers (users with mailboxes) that have gone through the
first time enrollment conversation and are in Seattle:<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span style='font-size:8.5pt;font-family:Consolas;
color:#2B91AF'>DataTable</span></span><span style='font-size:8.5pt;font-family:
Consolas'> <span class=SpellE>oTable</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>const</span></span></span><span
style='font-size:8.5pt;font-family:Consolas;color:blue'> string</span><span
style='font-size:8.5pt;font-family:Consolas'> <span class=SpellE>strSql</span>
= <span style='color:#A31515'>&quot;SELECT Alias, <span class=SpellE>ObjectId</span>
FROM <span class=SpellE>vw_Subscriber</span> WHERE &quot;</span> +<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style='color:#A31515'>&quot;<span class=SpellE>fn_<span
class=GramE>tolower</span></span><span class=GramE>(</span>city)=? AND <span
class=SpellE>isVmEnrolled</span>=?<span class=GramE>&quot;<span
style='color:windowtext'>;</span></span></span><o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas'>res</span></span><span
style='font-size:8.5pt;font-family:Consolas'> = <span class=SpellE>server.DatabaseFunctions.FillDataTableBlocking</span>(<span
class=SpellE>strSql</span>, <span style='color:blue'>out</span> <span
class=SpellE>oTable</span>, <span style='color:blue'>false</span>, <span
style='color:#A31515'>&quot;<span class=SpellE>seattle</span>&quot;</span>,<span
style='color:blue'>true</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas;
color:blue'>if</span></span><span style='font-size:8.5pt;font-family:Consolas'>
(!<span class=SpellE>res.Successful</span>)<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=SpellE><span
class=GramE><span style='color:#2B91AF'>Console</span>.WriteLine</span></span><span
class=GramE>(</span><span style='color:#A31515'>&quot;Fetch failed:&quot;</span>+res);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=GramE><span
style='color:blue'>return</span></span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>}<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas'>Console.WriteLine</span></span></span><span class=GramE><span
style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;Seattle
users:&quot;</span><span style='font-size:8.5pt;font-family:Consolas'>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>foreach</span></span></span><span
style='font-size:8.5pt;font-family:Consolas'> (<span class=SpellE><span
style='color:#2B91AF'>DataRow</span></span> <span class=SpellE>oRow</span> <span
style='color:blue'>in</span> <span class=SpellE>oTable.Rows</span>)<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=SpellE><span
class=GramE><span style='color:#2B91AF'>Console</span>.WriteLine</span></span><span
class=GramE>(</span><span style='color:#A31515'>&quot;Alias=&quot;</span>+<span
class=SpellE>oRow</span>[<span style='color:#A31515'>&quot;Alias&quot;</span>]);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>}<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='font-size:8.0pt'>There are a couple important
items in here to point out in this example.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>First, the use parameterized
query structure.<span style='mso-spacerun:yes'>&nbsp; </span>Those
&#8220;?&#8221; in the query serve as placeholders that get replaced with
values in the <span class=SpellE>FillDataTableBlocking</span> method.<span
style='mso-spacerun:yes'>&nbsp; </span>In this case the string &#8220;<span
class=SpellE>seattle</span>&#8221; and &#8220;true&#8221; Boolean value.<span
style='mso-spacerun:yes'>&nbsp; </span>It&#8217;s important that you always use
parameterized queries both for safety and for efficiency.<span
style='mso-spacerun:yes'>&nbsp; </span>If you&#8217;re looping through and
issuing the same query but with different values if you&#8217;re using
parameterized queries the server will be quicker since it compiles the query
itself and keeps it in memory even though the parameters passed to the query
can change.<span style='mso-spacerun:yes'>&nbsp; </span><span class=GramE>It&#8217;s</span>
good style and good for you.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Second, you can mix types for
your parameters.<span style='mso-spacerun:yes'>&nbsp; </span>Notice that you
can pass strings, Booleans and numbers of various types in your parameter list
&#8211; they are converted and added as necessary.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Third, the use of the &#8220;<span
class=SpellE>fn_<span class=GramE>tolower</span></span><span class=GramE>(</span>xxx)&#8221;
function.<span style='mso-spacerun:yes'>&nbsp; </span>Unlike some other
databases such as Access, queries against string fields cannot be assumed to be
case insensitive with Informix.<span style='mso-spacerun:yes'>&nbsp; </span>You
need to use the <span class=SpellE>fn_tolower</span>() function to force the
comparison to happen with lower case and, of course, remember to pass your
parameterized string as lower case as well to get matches.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Fourth, fetch specific
values.<span style='mso-spacerun:yes'>&nbsp; </span>In the above example only
the Alias and <span class=SpellE>ObjectId</span> are being pulled off the <span
class=SpellE>vw_Subscriber</span> view which has many columns.<span
style='mso-spacerun:yes'>&nbsp; </span>Try and avoid &#8220;SELECT *&#8221; if
you can.<span style='mso-spacerun:yes'>&nbsp; </span>There are times where it
may be appropriate but rarely.<span style='mso-spacerun:yes'>&nbsp; </span><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Typically you&#8217;d make a
special check for no rows being returned.<span style='mso-spacerun:yes'>&nbsp;
</span>This is the purpose of the first Boolean flag in the <span class=SpellE>FillDataTableBlocking</span>
parameters which is passed as false by default.<span
style='mso-spacerun:yes'>&nbsp; </span>A value of false means it won&#8217;t
return a failure if there are no matches.<span style='mso-spacerun:yes'>&nbsp;
</span>If you pass this as true a query you&#8217;re expecting to have at least
one match would return a failure if the data table returned was empty.<o:p></o:p></span></p>

<h3><a name="_Toc366578040">Getting a Count</a></h3>

<p class=MsoNormal><span style='font-size:8.0pt'>Executing a &#8220;scalar
query&#8221; is simply getting a count using a SQL query &#8211; these are
extremely fast on the server side and light on the wire since only a single
integer gets passed back.<span style='mso-spacerun:yes'>&nbsp; </span>In cases
where you just need to grab an up-front count for an operation this is much
faster than getting a data table and counting the rows up if you don&#8217;t
need the data.<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>const</span></span></span><span
style='font-size:8.5pt;font-family:Consolas'> <span style='color:blue'>string</span>
<span class=SpellE>strSql</span> = <span style='color:#A31515'>&quot;SELECT
COUNT(*) FROM <span class=SpellE>vw_Subscriber</span> WHERE <span class=SpellE>ListInDirectory</span>=?&quot;</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>int</span></span></span><span
style='font-size:8.5pt;font-family:Consolas'> <span class=SpellE>iCount</span>
= <span class=SpellE>server.DatabaseFunctions.GetCount</span>(<span
class=SpellE>strSql,<span style='color:blue'>true</span></span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas;color:#2B91AF'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:#2B91AF'>Console</span><span style='font-size:8.5pt;
font-family:Consolas'>.WriteLine</span></span></span><span class=GramE><span
style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;Directory list
count=&quot;</span><span style='font-size:8.5pt;font-family:Consolas'>+<span
class=SpellE>iCount</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.0pt;mso-bidi-font-family:Arial'>Notice that
there&#8217;s no <span class=SpellE>DbFetchResult</span> class returned in this
case, just the count.<span style='mso-spacerun:yes'>&nbsp; </span>This is a good
reason to have the <span class=SpellE>ErrorEvent</span> wired up so if there is
a malformed query passed you don&#8217;t just report 0 and move on without
note.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt;mso-bidi-font-family:Arial'>Yes,
you can just execute fill data table method and the result is returned in the
first column of the first row (only row) returned.<span
style='mso-spacerun:yes'>&nbsp; </span>It&#8217;s a bit simpler using this
call, however, as you <span class=GramE>don&#8217;t</span> need to convert
types or the like.<span style='mso-spacerun:yes'>&nbsp; </span>However doing it
this way returns the <span class=SpellE>DbFetchResult</span> class and the
table as an out parameter which is a little more code but may be more appealing
to you depending on the application.<o:p></o:p></span></p>

<h3><a name="_Toc366578041">Getting a Single Value</a></h3>

<p class=MsoNormal><span style='font-size:8.0pt'>Another shortcut method
provided for convenient is the ability to fetch a single string value from a
query.<span style='mso-spacerun:yes'>&nbsp; </span>Yes, you can just fill a
data table and pull it out of the rows/columns in the returned table &#8211;
however it&#8217;s something that needs to be done so often that it&#8217;s
provided as a one line shorthand method that looks like this:<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>const</span></span></span><span
style='font-size:8.5pt;font-family:Consolas'> <span style='color:blue'>string</span>
<span class=SpellE>strSql</span> = <span style='color:#A31515'>&quot;SELECT <span
class=SpellE>OjectId</span> FROM <span class=SpellE>vw_Subscriber</span> WHERE
Alias=?&quot;</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas;
color:blue'>string</span></span><span style='font-size:8.5pt;font-family:Consolas'>
<span class=SpellE>strObjectId</span> = <span class=SpellE>server.DatabaseFunctions.GetSingleValueFromQuery</span>(<span
class=SpellE>strSql</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:#2B91AF'>Console</span><span style='font-size:8.5pt;
font-family:Consolas'>.WriteLine</span></span></span><span class=GramE><span
style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;<span
class=SpellE>ObjectId</span>=&quot;</span><span style='font-size:8.5pt;
font-family:Consolas'>+<span class=SpellE>strObjectId</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.0pt;mso-bidi-font-family:Arial'>Again, note that
a <span class=SpellE>DbFetchResult</span> class is not returned, just a string
value.<span style='mso-spacerun:yes'>&nbsp; </span>No matter what field
you&#8217;re passing back it&#8217;s always passed back as a string.<span
style='mso-spacerun:yes'>&nbsp; </span>If no match is found or there&#8217;s an
error a blank is returned.<span style='mso-spacerun:yes'>&nbsp; </span>Again,
you can always just fill a data table via the <span class=SpellE>FillDataTableBlocking</span>
method and fish the value out of the first row and first column instead, this
is provided merely as a shorthand time saver for very common needs such as
pulling values based on unique identifiers or the like.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt;mso-bidi-font-family:Arial'><o:p>&nbsp;</o:p></span></p>

<h3><a name="_Toc366578042">Filling a Data Reader</a></h3>

<p class=MsoNormal><span style='font-size:8.0pt'>If you intend on using a data
reader in your application there&#8217;s a few additional hoops you&#8217;ll
need to jump through:<o:p></o:p></span></p>

<p class=MsoListParagraphCxSpFirst style='text-indent:-.25in;mso-list:l0 level1 lfo4'><![if !supportLists]><span
style='font-size:8.0pt;mso-fareast-font-family:Arial;mso-bidi-font-family:Arial'><span
style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:8.0pt'>You need to add
the <span class=SpellE>IBM.Data.Informix</span> library to your
application.<span style='mso-spacerun:yes'>&nbsp; </span>This means browsing to
the DLL which can be found by default under c:\program files(x86)\IBM Informix
Client SDK\bin\netf20\ (or wherever you installed it if you didn&#8217;t take the
defaults).<o:p></o:p></span></p>

<p class=MsoListParagraphCxSpLast style='text-indent:-.25in;mso-list:l0 level1 lfo4'><![if !supportLists]><span
style='font-size:8.0pt;mso-fareast-font-family:Arial;mso-bidi-font-family:Arial'><span
style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:8.0pt'>Setup your <span
class=SpellE>CiscoUnityConnectionServerOdbc</span> constructor a little
differently.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>For #2, instead of passing a
simple &#8220;new&#8221; directive as we did in the first example:<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span style='font-size:8.5pt;font-family:Consolas;
color:#2B91AF'>CiscoUnityConnectionServerOdbc</span></span><span
style='font-size:8.5pt;font-family:Consolas'> server = <span style='color:blue'>new</span>
<span class=SpellE><span class=GramE><span style='color:#2B91AF'>CiscoUnityConnectionServerOdbc</span></span></span><span
class=GramE>(</span><o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=GramE><span
style='color:blue'>new</span></span> <span class=SpellE><span style='color:
#2B91AF'>ConnectionInformixAdoNetDatabaseFunctions</span></span>(<span
style='color:#A31515'>&quot;<span class=SpellE>TestApplication</span>&quot;</span>));<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas;color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>var</span></span></span><span
style='font-size:8.5pt;font-family:Consolas'> res= <span class=SpellE>server.LoginDatabaseBlocking</span>(<span
style='color:#A31515'>&quot;192.168.0.197&quot;</span>, <span style='color:
#A31515'>&quot;<span class=SpellE>dbdude</span>&quot;</span>, <span
style='color:#A31515'>&quot;<span class=SpellE>labPw</span>&quot;</span>);<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>You instead need to create a
separate instance of the <span class=SpellE>ConnectionInformixAdoNetDatabaseFunction</span>
class and pass that in instead:<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span style='font-size:8.5pt;font-family:Consolas;
color:#2B91AF'>ConnectionInformixAdoNetDatabaseFunctions</span></span><span
style='font-size:8.5pt;font-family:Consolas'> <span class=SpellE>oDbFunctions</span>
= <span style='color:blue'>new</span> <o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;text-indent:.5in;mso-layout-grid-align:
none;text-autospace:none'><span class=SpellE><span class=GramE><span
style='font-size:8.5pt;font-family:Consolas;color:#2B91AF'>ConnectionInformixAdoNetDatabaseFunctions</span></span></span><span
class=GramE><span style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;<span
class=SpellE>TestApp</span>&quot;</span><span style='font-size:8.5pt;
font-family:Consolas'>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas;color:#2B91AF'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span style='font-size:8.5pt;font-family:Consolas;
color:#2B91AF'>CiscoUnityConnectionServerOdbc</span></span><span
style='font-size:8.5pt;font-family:Consolas'> server = <span style='color:blue'>new</span>
<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE><span style='color:#2B91AF'>CiscoUnityConnectionServerOdbc</span></span></span><span
class=GramE>(</span><span class=SpellE>oDbFunctions</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas;color:#2B91AF'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>var</span></span></span><span
style='font-size:8.5pt;font-family:Consolas'> res= <span class=SpellE>server.LoginDatabaseBlocking</span>(<span
style='color:#A31515'>&quot;192.168.0.197&quot;</span>, <span style='color:
#A31515'>&quot;<span class=SpellE>dbdude</span>&quot;</span>, <span
style='color:#A31515'>&quot;<span class=SpellE>labPw</span>&quot;</span>);<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The reason for this is by
default what&#8217;s exposed via the <span class=SpellE>DatabseFunctions</span>
interface off the server instance only includes methods that will work against
all providers universally.<span style='mso-spacerun:yes'>&nbsp; </span>Since
the data reader requires a separate provider-specific library to work
that&#8217;s not the case.<span style='mso-spacerun:yes'>&nbsp; </span><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Then when you wish to use the
data reader filling method you call the <span class=SpellE>oDbFunctions</span>
instance (from the example above) directly instead of going through the
server&#8217;s instance of <span class=SpellE>DatabaseFunctions</span>.<span
style='mso-spacerun:yes'>&nbsp; </span>So it would look like this:<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:9.5pt;font-family:Consolas;color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>const</span></span></span><span
style='font-size:8.5pt;font-family:Consolas'> <span style='color:blue'>string</span>
<span class=SpellE>strSql</span> = <span style='color:#A31515'>&quot;SELECT
Alias, <span class=SpellE>ObjectId</span> FROM <span class=SpellE>vw_subscriber</span>&quot;</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span style='font-size:8.5pt;font-family:Consolas;
color:#2B91AF'>IfxDataReader</span></span><span style='font-size:8.5pt;
font-family:Consolas'> <span class=SpellE>oReader</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas'>res</span></span><span
style='font-size:8.5pt;font-family:Consolas'> = <span class=SpellE>oDbFunctions.FillDataReader</span>(<span
class=SpellE>strSql,<span style='color:blue'>out</span></span> <span
class=SpellE>oReader</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas;
color:blue'>if</span></span><span style='font-size:8.5pt;font-family:Consolas'>
(<span class=SpellE>res.Successful</span> == <span style='color:blue'>false</span>)<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=SpellE><span
class=GramE><span style='color:#2B91AF'>Console</span>.WriteLine</span></span><span
class=GramE>(</span><span style='color:#A31515'>&quot;Fetch failed:&quot;</span>+res);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;text-indent:.5in;mso-layout-grid-align:
none;text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;
color:blue'><span style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span
class=GramE>return</span></span><span style='font-size:9.5pt;font-family:Consolas'>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;</span>}<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas;
color:blue'>while</span></span><span style='font-size:8.5pt;font-family:Consolas'>
(<span class=SpellE>oReader.Read</span>())<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=SpellE><span
class=GramE><span style='color:#2B91AF'>Console</span>.WriteLine</span></span><span
class=GramE>(</span><span style='color:#A31515'>&quot;Alias=&quot;</span>+<span
class=SpellE>oReader</span>[<span style='color:#A31515'>&quot;alias&quot;</span>]);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>}<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;text-indent:.5in;mso-layout-grid-align:
none;text-autospace:none'><span class=SpellE><span class=GramE><span
style='font-size:9.5pt;font-family:Consolas'>oReader.Dispose</span></span></span><span
class=GramE><span style='font-size:9.5pt;font-family:Consolas'>(</span></span><span
style='font-size:9.5pt;font-family:Consolas'>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>This is a pretty similar
process to using a data reader except you don&#8217;t need to iterate over the
rows of a table, instead you need to execute &#8220;read&#8221; until it
returns false (indicating the end of the record is reached).<span
style='mso-spacerun:yes'>&nbsp; </span>Notice that you need to execute a read
first before fetching data from the current row &#8211; when the reader is
loaded the row is empty until you execute the Read() method.<span
style='mso-spacerun:yes'>&nbsp; </span><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Also note that the reader
provides no &#8220;count&#8221; method &#8211; you have no way of knowing up
front how many rows you&#8217;ll be processing so if you need that information
(for instance for reporting progress through a large set) you&#8217;ll need to
issue a separate COUNT(*) query before getting your reader.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Finally notice the explicit
dispose of the reader &#8211; technically this will be done when you exit scope
but when using a reader I like to be explicit about this to avoid accidents.<o:p></o:p></span></p>

<h2><a name="_Toc366578043">Stored Procedure Overview</a></h2>

<p class=MsoNormal><span style='font-size:8.0pt'>Stored procedures are your
friend.<span style='mso-spacerun:yes'>&nbsp; </span>I know many folks
don&#8217;t want to deal with stored procedures and want to just &#8220;get to
the metal&#8221; and update data in tables directly.<span
style='mso-spacerun:yes'>&nbsp; </span>Mostly I think this is because they don&#8217;t
really understand what a stored procedure does for them or how they work.<span
style='mso-spacerun:yes'>&nbsp; </span>The SDK is written to assume ALL
updates, creates and deletes ware done via stored process exclusively.<span
style='mso-spacerun:yes'>&nbsp; </span>If you&#8217;re doing anything other
than that you&#8217;re doing it wrong, period.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>So, what exactly is a stored
procedure?<span style='mso-spacerun:yes'>&nbsp; </span>Basically it&#8217;s a
function call that takes a variable number of parameters.<span
style='mso-spacerun:yes'>&nbsp; </span>There&#8217;s quite a bit of logic in
the stored procedures for Connection that check for legal value, conflicts and <span
class=GramE>such which is one of the reasons they&#8217;re so much safer to use
than direct table edits</span>.<span style='mso-spacerun:yes'>&nbsp; </span>For
instance when you delete a user via a stored procedure you can pass in a
replacement user&#8217;s ID to fix up any external references to the user being
removed automatically.<span style='mso-spacerun:yes'>&nbsp; </span><span
class=GramE>Very handy.</span><span style='mso-spacerun:yes'>&nbsp; </span><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>You can execute a stored
procedure just like you can a query.<span style='mso-spacerun:yes'>&nbsp;
</span>For instance the stored procedure call to create a new subscriber in
Unity Connection could look something like this:<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=GramE><span
style='font-size:8.0pt'>execute</span></span><span style='font-size:8.0pt'>
procedure <span class=SpellE>csp_subscribercreate</span> (<span class=SpellE>pAlias</span>='<span
class=SpellE>newguy</span>', <span class=SpellE>pDtmfAccessId</span>='555123', <span
class=SpellE>pTemplateAlias</span>='<span class=SpellE>voicemailusertemplate</span>')<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>It will return the GUID (<span
class=SpellE>ObjectId</span>) of the newly created user if it succeeds (i.e. if
there&#8217;s not a conflicting alias or extension or the like).<span
style='mso-spacerun:yes'>&nbsp; </span><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>So that&#8217;s not so
scary.<span style='mso-spacerun:yes'>&nbsp; </span>Where it gets a little more
challenging is when you have to &#8220;cast&#8221; values such as LVARCHARs and
handle the rather fussy date/time format used by Informix and such.<span
style='mso-spacerun:yes'>&nbsp; </span>The SDK provides a full set of methods
to create stored procedures and add parameters to them to help isolate you from
all the complexities here so your code should be nice and clean and not have to
change if and when providers and/or databases change out.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>So let&#8217;s see the code
that would generate the same stored procedure to add a new user seen above:<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:9.5pt;font-family:Consolas;color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>var</span></span></span><span
style='font-size:8.5pt;font-family:Consolas'> <span class=SpellE>oDb</span> = <span
class=SpellE>server.DatabaseFunctions</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas'>oDb.StartNewCommand</span></span></span><span
class=GramE><span style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;<span
class=SpellE>csp_SubscriberCreate</span>&quot;</span><span style='font-size:
8.5pt;font-family:Consolas'>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas'>oDb.AddCommandParam</span></span></span><span
class=GramE><span style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;<span
class=SpellE>pAlias</span>&quot;</span><span style='font-size:8.5pt;font-family:
Consolas'>, <span class=SpellE><span style='color:#2B91AF'>DbParamType</span>.VarChar</span>,
<span style='color:#A31515'>&quot;<span class=SpellE>NewGuy</span>&quot;</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas'>oDb.AddCommandParam</span></span></span><span
class=GramE><span style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;<span
class=SpellE>pDtmfAccessId</span>&quot;</span><span style='font-size:8.5pt;
font-family:Consolas'>, <span class=SpellE><span style='color:#2B91AF'>DbParamType</span>.VarChar</span>,
<span style='color:#A31515'>&quot;555123&quot;</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;text-indent:.5in;mso-layout-grid-align:
none;text-autospace:none'><span class=SpellE><span class=GramE><span
style='font-size:8.5pt;font-family:Consolas'>oDb.AddCommandParam</span></span></span><span
class=GramE><span style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;<span
class=SpellE>pTemplateAlias</span>&quot;</span><span style='font-size:8.5pt;
font-family:Consolas'>, <span class=SpellE><span style='color:#2B91AF'>DbParamType</span>.VarChar</span>,
<span style='color:#A31515'>&quot;<span class=SpellE>voiceMailUserTemplate</span>&quot;</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas;
color:blue'>string</span></span><span style='font-size:8.5pt;font-family:Consolas'>
<span class=SpellE>strNewObjectId</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas'>res</span></span><span
style='font-size:8.5pt;font-family:Consolas'> = <span class=SpellE>oDb.ExecuteProc</span>(<span
style='color:blue'>out</span> <span class=SpellE>strNewObjectId</span>, <span
style='color:#A31515'>&quot;<span class=SpellE>ObjectId</span>&quot;</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas;color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas;
color:blue'>if</span></span><span style='font-size:8.5pt;font-family:Consolas'>
(!<span class=SpellE>res.Successful</span>)<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=SpellE><span
class=GramE><span style='color:#2B91AF'>Console</span>.WriteLine</span></span><span
class=GramE>(</span><span style='color:#A31515'>&quot;<span class=SpellE>Proc</span>
failed:&quot;</span>+res);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=GramE><span
style='color:blue'>return</span></span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>}<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas;color:#2B91AF'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:#2B91AF'>Console</span><span style='font-size:8.5pt;
font-family:Consolas'>.WriteLine</span></span></span><span class=GramE><span
style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;New user
created, id=&quot;</span><span style='font-size:8.5pt;font-family:Consolas'>+<span
class=SpellE>strNewObjectId</span>);<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Pretty straight forward
&#8211; and yes, I had CUDLI open and was looking at the parameters the <span
class=SpellE>csp_SubscriberCreate</span> <span class=SpellE>proc</span> accepts
including what their types were (all <span class=SpellE>VarChars</span> in the
example here).<span style='mso-spacerun:yes'>&nbsp; </span>As noted
you&#8217;ll want CUDLI installed and open while you work.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Also note that the SDK will
automatically add the <span class=SpellE><b style='mso-bidi-font-weight:normal'>AuditAlias</b></span>
and <span class=SpellE><b style='mso-bidi-font-weight:normal'>AuditComponent</b></span>
fields in every stored procedure that supports them (almost all of them
do).<span style='mso-spacerun:yes'>&nbsp; </span>The <span class=SpellE>AuditComponent</span>
is the string you passed into the database functions constructor when you
created the <span class=SpellE>CiscoUnityConnectionServerOdbc</span> class
instance.<span style='mso-spacerun:yes'>&nbsp; </span>The <span class=SpellE>AuditAlias</span>
is the currently logged in user name and domain on the Windows client
you&#8217;re running on.<span style='mso-spacerun:yes'>&nbsp; </span>This helps
you be a good Unity Connection citizen by logging those details in the audit
log on Connection for later troubleshooting purposes.<o:p></o:p></span></p>

<h3><a name="_Toc366578044">Stored Procedure Naming Strategy</a></h3>

<p class=MsoNormal><span style='font-size:8.0pt'>All stored procedures added by
Unity Connection start with &#8220;<span class=SpellE>csp</span>_&#8221;
&#8211; which stands for Connection Stored Procedure.<span
style='mso-spacerun:yes'>&nbsp; </span>There are, of course, system level
stored procedures also present in the database but these are not for public use
and tools like CUDLI will not show them to you.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>If you pop open CUDLI and
browse the stored procedures for Unity Connection you&#8217;ll see there are
quite a lot of them.<span style='mso-spacerun:yes'>&nbsp; </span>Depending on
the version there are 800+ procedures.<span style='mso-spacerun:yes'>&nbsp;
</span>However, not to worry &#8211; a good chunk of them can be ignored and
the rest are easily understood based on a simple naming convention.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>First, any procedure that
contains the sub string &#8220;<b style='mso-bidi-font-weight:normal'>_gen_</b>&#8221;
in it can be ignored.<span style='mso-spacerun:yes'>&nbsp; </span>So for
instanced &#8220;<span class=SpellE><b style='mso-bidi-font-weight:normal'>csp_timezone_gen_tr_insert</b></span>&#8221;
or &#8220;<span class=SpellE><b style='mso-bidi-font-weight:normal'>csp_user_gen_tr_update</b></span>&#8221;
can be ignored, these are not intended for use in applications, they get used
during installation/configuration or are used on the back end.<span
style='mso-spacerun:yes'>&nbsp; </span>Using CUDLI you can still see them and,
in fact, review the source code for the stored procedures themselves if
you&#8217;re curious but you shouldn&#8217;t be worrying about these for use in
your applications.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The remaining stored
procedures in the list come in sets of 3 for create, modify, delete methods and
the stored procedure name always starts with the name of the object
you&#8217;re working with.<span style='mso-spacerun:yes'>&nbsp;
</span>There&#8217;s a few special functions in addition to the basic 3 here
and there (for instance <span class=SpellE>csp_BroadcastMessagePurge</span>)
but for the most part all stored procedure names start with the object type
followed by the 3 functions.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>So for instance if you want to
create, modify or delete a subscriber (a user with a mailbox) you would use
these three procedures:<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=SpellE><span
style='font-size:8.0pt'>csp_SubscriberCreate</span></span><span
style='font-size:8.0pt'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=SpellE><span
style='font-size:8.0pt'>csp_SubscriberDelete</span></span><span
style='font-size:8.0pt'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=SpellE><span
style='font-size:8.0pt'>csp_SubscriberModify</span></span><span
style='font-size:8.0pt'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>You&#8217;ll also notice that all
parameters for all procedures are prefixed with a lower case &#8220;p&#8221;
&#8211; this is a database naming convention and I know it trips folks up now
and again, so don&#8217;t forget when passing your parameters to include the p
in there.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>You&#8217;ll also see some
stored procedures that have &#8220;get&#8221; embedded in them &#8211; around
20 of them.<span style='mso-spacerun:yes'>&nbsp; </span>These are shorthand
methods used by the web based administration interface (CUCA) and most of them
are not going to be of interest to application developers.<span
style='mso-spacerun:yes'>&nbsp; </span>For instance &#8220;<span class=SpellE>csp_GetLocalizedText</span>&#8221;
is used by the admin pages to pull resource strings in different languages for
the administration interface.<span style='mso-spacerun:yes'>&nbsp; </span>There
are a few you may find interesting if you look but I don&#8217;t use these in
my applications as I prefer to use explicit database queries to get what I
need.<span style='mso-spacerun:yes'>&nbsp; </span>For instance &#8220;<span
class=SpellE>csp_GetObjectByAliasAndLocation</span>&#8221; might be useful
however I prefer to fetch this information with an explicit query in my
applications.<span style='mso-spacerun:yes'>&nbsp; </span><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Each procedure will have a set
of required parameters &#8211; in CUDLI these show up with the &#8220;REQ&#8221;
column checked &#8211; if you call a stored procedure and miss a required
parameter you&#8217;ll often get an error message about the stored procedure
name not being found or recognized which may throw you off &#8211; it&#8217;s
not the stored procedure NAME it&#8217;s not finding, it&#8217;s not finding
the full method signature which includes the required parameters so if you see
that don&#8217;t tear your hair out about the spelling of the <span
class=SpellE>proc</span> and instead look at your required parameters.<o:p></o:p></span></p>

<h3><a name="_Toc366578045">Return Values from Stored Procedures</a></h3>

<p class=MsoNormal><span style='font-size:8.0pt'>As a rule, all <span
class=GramE>the create</span> stored procedures return 1 or more values and all
the rest of the stored procedures do not return anything.<span
style='mso-spacerun:yes'>&nbsp; </span>Why do you care?<span
style='mso-spacerun:yes'>&nbsp; </span>If you call a stored procedure that returns
a value without getting that value the call will fail.<span
style='mso-spacerun:yes'>&nbsp; </span>Trying to fetch a return value when one
is not present will also fail of course.<span style='mso-spacerun:yes'>&nbsp;
</span>So you need to be sure to call the procedure you are using with the
correct expectation.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>The vast majority of <span
class=GramE>the create</span> stored procedures return a &#8220;<span
class=SpellE>pObjectId</span>&#8221; string indicating the new unique
identifier for the newly created object.<span style='mso-spacerun:yes'>&nbsp;
</span>If you&#8217;re curious about a particular stored procedure&#8217;s
behavior you can simply select the procedure in CUDLI and then use the
&#8220;Source&#8221; view button to see the stored procedure source code.<span
style='mso-spacerun:yes'>&nbsp; </span>The Informix style stored procedure code
may look a little odd to you but up at the top where the &#8220;CREATE
PROCEDURE&#8221; is seen should be fairly obvious as a method signature.<span
style='mso-spacerun:yes'>&nbsp; </span>For instance the <span class=SpellE>csp_BroadcastMessageCreate</span>
procedure starts like this:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'>CREATE PROCEDURE <span class=SpellE>csp_BroadcastMessageCreate</span>
(<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>pAuditAlias</span></span> <span class=SpellE>varchar</span>(192)
DEFAULT NULL,<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>pAuditComponent</span></span> <span
class=SpellE>varchar</span>(64) DEFAULT NULL,<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>pEndDate</span></span> <span class=SpellE>datetime</span>
year to fraction DEFAULT NULL,<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>pObjectId</span></span> char(36) DEFAULT NULL,<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>pStartDate</span></span> <span class=SpellE>datetime</span>
year to fraction DEFAULT NULL,<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>pStreamFile</span></span> <span class=SpellE>varchar</span>(40),<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>pSubscriberObjectId</span></span> char(36),<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>pVideoSessionId</span></span> <span
class=SpellE>varchar</span>(191) DEFAULT NULL<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'>)<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'>RETURNS <o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=GramE>char(</span>36) AS <span class=SpellE>pObjectId</span>;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>It should be fairly obvious
this stored procedure returns a string (36 characters long) named &#8220;<span
class=SpellE>pObjectId</span>&#8221;.<span style='mso-spacerun:yes'>&nbsp;
</span>Similarly the <span class=SpellE>csp_BroadcastMessageDelete</span> looks
like this:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'>CREATE PROCEDURE <span class=SpellE>csp_BroadcastMessageDelete</span>
(<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>pAuditAlias</span></span> <span class=SpellE>varchar</span>(192)
DEFAULT NULL,<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>pAuditComponent</span></span> <span
class=SpellE>varchar</span>(64) DEFAULT NULL,<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>pObjectId</span></span> char(36)<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt'><span style='font-size:8.5pt;
font-family:"Cambria","serif";mso-ascii-theme-font:major-latin;mso-hansi-theme-font:
major-latin'>)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>Note the lack of a
&#8220;RETURNS&#8221; clause there &#8211; this procedure does not return
anything.<span style='mso-spacerun:yes'>&nbsp; </span><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>So, what does this mean for
the SDK?<span style='mso-spacerun:yes'>&nbsp; </span>Let&#8217;s see how we
call the above two stored procedures using the SDK framework and see how they
differ.<span style='mso-spacerun:yes'>&nbsp; </span>First, let&#8217;s create a
new broadcast message.<span style='mso-spacerun:yes'>&nbsp; </span>This
requires we already uploaded a WAV file as a stream file (done using CUPI REST
API which is not covered here) and you have a subscriber&#8217;s ID to act as
the owner (sender) of the message.<span style='mso-spacerun:yes'>&nbsp;
</span>We&#8217;ll set the broadcast message to live for 5 days max.<span
style='mso-spacerun:yes'>&nbsp; </span>The code looks like this:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>var</span></span></span><span
style='font-size:8.5pt;font-family:Consolas'> <span class=SpellE>oDb</span> = <span
class=SpellE>server.DatabaseFunctions</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas'>oDb.StartNewCommand</span></span></span><span
class=GramE><span style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;<span
class=SpellE>csp_BroadcastMessageCreate</span>&quot;</span><span
style='font-size:8.5pt;font-family:Consolas'>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas'>oDb.AddCommandParam</span></span></span><span
class=GramE><span style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;<span
class=SpellE>pSubscriberObjectId</span>&quot;</span><span style='font-size:
8.5pt;font-family:Consolas'>, <span class=SpellE><span style='color:#2B91AF'>DbParamType</span>.Char</span>,
<span class=SpellE>strUserObjectId</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas'>oDb.AddCommandParam</span></span></span><span
class=GramE><span style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;<span
class=SpellE>pStreamFile</span>&quot;</span><span style='font-size:8.5pt;
font-family:Consolas'>, <span class=SpellE><span style='color:#2B91AF'>DbParamType</span>.VarChar</span>,
<span class=SpellE>strStreamFileId</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas'>oDb.AddCommandParam</span></span></span><span
class=GramE><span style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;<span
class=SpellE>pEndDate</span>&quot;</span><span style='font-size:8.5pt;
font-family:Consolas'>, <span class=SpellE><span style='color:#2B91AF'>DbParamType</span>.DateTime</span>,
<span class=SpellE><span style='color:#2B91AF'>DateTime</span>.Now.AddDays</span>(5));<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas;
color:blue'>string</span></span><span style='font-size:8.5pt;font-family:Consolas'>
<span class=SpellE>strNewObjectId</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas'>res</span></span><span
style='font-size:8.5pt;font-family:Consolas'> = <span class=SpellE>oDb.ExecuteProc</span>(<span
style='color:blue'>out</span> <span class=SpellE>strNewObjectId</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas;color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas;
color:blue'>if</span></span><span style='font-size:8.5pt;font-family:Consolas'>
(!<span class=SpellE>res.Successful</span>)<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=SpellE><span
class=GramE><span style='color:#2B91AF'>Console</span>.WriteLine</span></span><span
class=GramE>(</span><span style='color:#A31515'>&quot;<span class=SpellE>Proc</span>
failed:&quot;</span>+res);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=GramE><span
style='color:blue'>return</span></span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>}<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas;color:#2B91AF'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:#2B91AF'>Console</span><span style='font-size:8.5pt;
font-family:Consolas'>.WriteLine</span></span></span><span class=GramE><span
style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;New broadcast
message created, id=&quot;</span><span style='font-size:8.5pt;font-family:Consolas'>+<span
class=SpellE>strNewObjectId</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.0pt;mso-bidi-font-family:Arial'>Of note here is
the out parameter for the new <span class=SpellE>objectId</span> &#8211; if
that is not passed the call to the stored procedure will fail since it&#8217;s
expecting to pass back a value for the new Id here.<span
style='mso-spacerun:yes'>&nbsp; </span>If we then turn around and delete that
same broadcast message the call would look like this:<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.0pt;mso-bidi-font-family:Arial'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:blue'>var</span></span></span><span
style='font-size:8.5pt;font-family:Consolas'> <span class=SpellE>oDb</span> = <span
class=SpellE>server.DatabaseFunctions</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas'>oDb.StartNewCommand</span></span></span><span
class=GramE><span style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;<span
class=SpellE>csp_BroadcastMessage</span>&quot;</span><span style='font-size:
8.5pt;font-family:Consolas'>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas'>oDb.AddCommandParam</span></span></span><span
class=GramE><span style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;<span
class=SpellE>pObjectIdObjectId</span>&quot;</span><span style='font-size:8.5pt;
font-family:Consolas'>, <span class=SpellE><span style='color:#2B91AF'>DbParamType</span>.Char</span>,
<span class=SpellE>strNewObjectId</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas'>res</span></span><span
style='font-size:8.5pt;font-family:Consolas'> = <span class=SpellE>oDb.ExecuteProc</span>();<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas;color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas;
color:blue'>if</span></span><span style='font-size:8.5pt;font-family:Consolas'>
(!<span class=SpellE>res.Successful</span>)<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=SpellE><span
class=GramE><span style='color:#2B91AF'>Console</span>.WriteLine</span></span><span
class=GramE>(</span><span style='color:#A31515'>&quot;<span class=SpellE>Proc</span>
failed:&quot;</span>+res);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=GramE><span
style='color:blue'>return</span></span>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>}<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas;color:#2B91AF'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:8.5pt;
font-family:Consolas;color:#2B91AF'>Console</span><span style='font-size:8.5pt;
font-family:Consolas'>.WriteLine</span></span></span><span class=GramE><span
style='font-size:8.5pt;font-family:Consolas'>(</span></span><span
style='font-size:8.5pt;font-family:Consolas;color:#A31515'>&quot;Broadcast
message deleted.&quot;</span><span style='font-size:8.5pt;font-family:Consolas'>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.0pt;mso-bidi-font-family:Arial'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.0pt;mso-bidi-font-family:Arial'>Not too bad,
right?<span style='mso-spacerun:yes'>&nbsp; </span>For stored procedures that
don&#8217;t return a value simply don&#8217;t pass an out string parameter and
you&#8217;re good to go. <o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.0pt;mso-bidi-font-family:Arial'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.0pt;mso-bidi-font-family:Arial'>So at this point
you&#8217;ve seen how to fetch data as a table, number or string and how to
create/delete/modify data using stored procedures using the SDK.<span
style='mso-spacerun:yes'>&nbsp; </span>You now know everything you need to for
writing applications using ODBC &#8211; what follows is some examples to help
flesh out common tasks but for the most part everything you need to know is
contained in the CUDLI interface via the data dictionary notes and the stored
procedure and view/table interfaces.<o:p></o:p></span></p>

<h2><a name="_Toc366578046">Changing Database Focus</a></h2>

<p class=MsoNormal><span style='font-size:8.0pt'>By default when you attach to
the Unity Connection server you are connected to the <span class=SpellE><b
style='mso-bidi-font-weight:normal'>UnityDirDb</b></span> database.<span
style='mso-spacerun:yes'>&nbsp; </span>This is by far the most common database
and holds all directory information for users, call handlers, interviewers
etc&#8230; for creating, editing and deleting directory objects this is the
database you need to be attached to.<span style='mso-spacerun:yes'>&nbsp;
</span>There are, however, 3 other databases you can attach to (and explore in
CUDLI if you like).<span style='mso-spacerun:yes'>&nbsp; </span>Here&#8217;s
the list of all database names you can attach to:<o:p></o:p></span></p>

<p class=MsoListParagraphCxSpFirst style='text-indent:-.25in;mso-list:l1 level1 lfo6'><![if !supportLists]><span
style='font-size:8.0pt;font-family:Symbol;mso-fareast-font-family:Symbol;
mso-bidi-font-family:Symbol'><span style='mso-list:Ignore'>&middot;<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span class=SpellE><b style='mso-bidi-font-weight:
normal'><span style='font-size:8.0pt'>UnityDirDb</span></b></span><span
style='font-size:8.0pt'>.<span style='mso-spacerun:yes'>&nbsp; </span>The main
directory database which is the default when attaching to a Connection server.<o:p></o:p></span></p>

<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;mso-list:l1 level1 lfo6'><![if !supportLists]><span
style='font-size:8.0pt;font-family:Symbol;mso-fareast-font-family:Symbol;
mso-bidi-font-family:Symbol'><span style='mso-list:Ignore'>&middot;<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span class=SpellE><b style='mso-bidi-font-weight:
normal'><span style='font-size:8.0pt'>UnityDynDb</span></b></span><span
style='font-size:8.0pt'>. This is not a table you&#8217;d normally need to
attach to as it contains transient data used for network synchronization and
other service tasks used by Connection.<span style='mso-spacerun:yes'>&nbsp;
</span>There isn&#8217;t anything in here that a typical application would be
interested in and certainly nothing you&#8217;d need to create or modify.<o:p></o:p></span></p>

<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;mso-list:l1 level1 lfo6'><![if !supportLists]><span
style='font-size:8.0pt;font-family:Symbol;mso-fareast-font-family:Symbol;
mso-bidi-font-family:Symbol'><span style='mso-list:Ignore'>&middot;<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span class=SpellE><b style='mso-bidi-font-weight:
normal'><span style='font-size:8.0pt'>UnityRptDb</span></b></span><span
style='font-size:8.0pt'>.<span style='mso-spacerun:yes'>&nbsp; </span>All
reporting data used for generating any of the Unity Connection reports
available gets pulled from the logs into tables in this database by a scavenger
process about every 30 minutes or so.<span style='mso-spacerun:yes'>&nbsp;
</span><o:p></o:p></span></p>

<p class=MsoListParagraphCxSpLast style='text-indent:-.25in;mso-list:l1 level1 lfo6'><![if !supportLists]><span
style='font-size:8.0pt;font-family:Symbol;mso-fareast-font-family:Symbol;
mso-bidi-font-family:Symbol'><span style='mso-list:Ignore'>&middot;<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><b style='mso-bidi-font-weight:normal'><span
style='font-size:8.0pt'>UnityMbxDb1</span></b><span style='font-size:8.0pt'>.<span
style='mso-spacerun:yes'>&nbsp; </span>Actually there can be up to 6 of these,
1 through 6.<span style='mso-spacerun:yes'>&nbsp; </span>This stores the
mailbox and messages data for users.<span style='mso-spacerun:yes'>&nbsp;
</span>I&#8217;m often asked why it&#8217;s necessary to support up to 6 of
these and it has nothing to do with capacity (total messaging capacity is
limited by the disk size of the server).<span style='mso-spacerun:yes'>&nbsp;
</span>You&#8217;d create separate mail databases such that backing the up can
be broken up.<span style='mso-spacerun:yes'>&nbsp; </span>If all messages are
in one giant mailbox database for a large site the time it takes DRS to back it
up can exceed the window a site has to get a backup completed.<span
style='mso-spacerun:yes'>&nbsp; </span>As such they may wish to break message
databases up and spread the backup of those databases over multiple nights for
instance.<span style='mso-spacerun:yes'>&nbsp; </span>There is no performance
or capacity <span class=GramE>advantage,</span> it&#8217;s all about backup time
and size considerations.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>To switch the currently
attached database, simply use the <span class=SpellE>ChangeActiveDatabase</span>
method off the server object using the database name to attach to.<span
style='mso-spacerun:yes'>&nbsp; </span>The current database name that the <span
class=GramE>server object</span> is attached to can be fetched using the <span
class=SpellE>CurrentDatabaseName</span> property:<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=GramE><span style='font-size:8.5pt;font-family:Consolas;
color:blue'>if</span></span><span style='font-size:8.5pt;font-family:Consolas'>
(!<span class=SpellE>server.ChangeActiveDatabase</span>(<span style='color:
#A31515'>&quot;<span class=SpellE>UnityRptDb</span>&quot;</span>))<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=SpellE><span
class=GramE><span style='color:#2B91AF'>Console</span>.WriteLine</span></span><span
class=GramE>(</span><span style='color:#A31515'>&quot;Failed changing
databases&quot;</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas;color:#2B91AF'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><span class=GramE><span style='font-size:8.5pt;font-family:Consolas;
color:blue'>return</span></span><span style='font-size:8.5pt;font-family:Consolas'>;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'>}<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span class=SpellE><span class=GramE><span style='font-size:9.5pt;
font-family:Consolas;color:#2B91AF'>Console</span><span style='font-size:9.5pt;
font-family:Consolas'>.WriteLine</span></span></span><span class=GramE><span
style='font-size:9.5pt;font-family:Consolas'>(</span></span><span
style='font-size:9.5pt;font-family:Consolas;color:#A31515'>&quot;<span
class=SpellE>Dbname</span>=&quot;</span><span style='font-size:9.5pt;
font-family:Consolas'> + <span class=SpellE>server.CurrentDatabaseName</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;mso-layout-grid-align:none;text-autospace:
none'><span style='font-size:8.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<h2><a name="_Toc366578047">Examples</a></h2>

<p class=MsoNormal><span style='font-size:8.0pt'>Coming soon&#8230;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
margin-left:.5in;margin-bottom:.0001pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
background:white'><a name="_Roles_and_Policies"></a><a name="_Schedules_1"></a><a
name="_Languages"></a><span style='font-size:8.5pt;font-family:Consolas;
color:black'><o:p>&nbsp;</o:p></span></p>

<h1><a name="_Toc366578048">Revision History</a></h1>

<p class=MsoNormal><span style='font-size:8.0pt'>Version 3.0.1 - 1/7/2014<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l2 level1 lfo8'><![if !supportLists]><span
style='font-size:8.0pt;font-family:Symbol;mso-fareast-font-family:Symbol;
mso-bidi-font-family:Symbol'><span style='mso-list:Ignore'>&middot;<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:8.0pt'>First
&#8220;full&#8221; release of SDK functionality<o:p></o:p></span></p>

<p class=MsoToc1><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'>&copy; 2014 Cisco Systems,
Inc. -- Company Confidential<o:p></o:p></span></p>

</div>

</body>

</html>

Commits for ConnectionOdbcSdk/trunk/DevGuide/ConnectionOdbcDotNetSdk.htm

Diff revisions: vs.
Revision Author Commited Message
22 Diff Diff jlindborg picture jlindborg Wed 08 Jan, 2014 01:43:01 +0000

updating the naming convention for the project and SLN
Including the XML comments file in output

17 Diff Diff jlindborg picture jlindborg Tue 10 Sep, 2013 19:18:58 +0000

2.0.4
Basics for the dev guide in – more notes on helper functions, examples for proc calls and how to use REST and ODBC SDKs together needed before the NuGet download can be made public.

16 Diff Diff jlindborg picture jlindborg Tue 10 Sep, 2013 00:16:23 +0000

2.0.4
working on the dev guide and making various minor fixes to the database function methods during that process.

15 jlindborg picture jlindborg Sun 08 Sep, 2013 17:27:35 +0000

2.0.3
Changed class name to be CiscoUnityConnectionServerOdbc
Updated to support 32 or 64 bit projects
Changed order of parameters on login methods at server and DB functions class to match.
Started testing for NuGet package deployment.
Dropped in holder for dev guide docs