Ticket #3094: Trac_3094.sql

File Trac_3094.sql, 6.3 KB (added by Benjamin Haag, 18 months ago)
Line 
1USE [gringlobal]
2GO
3
4DECLARE @return_value int,
5 @out_error_number int,
6 @out_code_value_id int
7
8EXEC @return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
9 @out_error_number = @out_error_number OUTPUT,
10 @out_code_value_id = @out_code_value_id OUTPUT,
11 @group_name = N'PATHOLOGY_TEST',
12 @code_value = N'Xcv',
13 @title = N'Xanthomonas vesicatoria',
14 @description = N'Bacterial spot of pepper, Bacterial spot of tomato - caused by multiple X. spp.',
15 @sys_lang_id = 1,
16 @created_by = 174697
17
18SELECT @out_error_number as N'@out_error_number',
19 @out_code_value_id as N'@out_code_value_id'
20 SELECT 'Return Value' = @return_value
21
22EXEC @return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
23 @out_error_number = @out_error_number OUTPUT,
24 @out_code_value_id = @out_code_value_id OUTPUT,
25 @group_name = N'PATHOLOGY_TEST',
26 @code_value = N'Xeu',
27 @title = N'Xanthomonas euvesicatoria',
28 @description = N'Bacterial spot of pepper, Bacterial spot of tomato - caused by multiple X. spp.',
29 @sys_lang_id = 1,
30 @created_by = 174697
31
32SELECT @out_error_number as N'@out_error_number',
33 @out_code_value_id as N'@out_code_value_id'
34
35SELECT 'Return Value' = @return_value
36
37--=====================================================================================================--
38
39EXEC @return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
40 @out_error_number = @out_error_number OUTPUT,
41 @out_code_value_id = @out_code_value_id OUTPUT,
42 @group_name = N'PATHOLOGY_TEST',
43 @code_value = N'Xhgar',
44 @title = N'Xanthomonas gardneri',
45 @description = N'Bacterial spot of pepper, Bacterial spot of tomato - caused by multiple X. spp.',
46 @sys_lang_id = 1,
47 @created_by = 174697
48
49SELECT @out_error_number as N'@out_error_number',
50 @out_code_value_id as N'@out_code_value_id'
51
52SELECT 'Return Value' = @return_value
53
54--=====================================================================================================--
55
56EXEC @return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
57 @out_error_number = @out_error_number OUTPUT,
58 @out_code_value_id = @out_code_value_id OUTPUT,
59 @group_name = N'PATHOLOGY_TEST',
60 @code_value = N'Xperf',
61 @title = N'Xanthomonas perforans',
62 @description = N'Bacterial spot of pepper, Bacterial spot of tomato - caused by multiple X. spp.',
63 @sys_lang_id = 1,
64 @created_by = 174697
65
66SELECT @out_error_number as N'@out_error_number',
67 @out_code_value_id as N'@out_code_value_id'
68
69SELECT 'Return Value' = @return_value
70
71--**
72
73EXEC @return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
74 @out_error_number = @out_error_number OUTPUT,
75 @out_code_value_id = @out_code_value_id OUTPUT,
76 @group_name = N'PATHOLOGY_TEST',
77 @code_value = N'TMV',
78 @title = N'Tobacco Mosaic Virus',
79 @description = N'Pepper mosaic, Tobacco mosaic',
80 @sys_lang_id = 1,
81 @created_by = 174697
82
83SELECT @out_error_number as N'@out_error_number',
84 @out_code_value_id as N'@out_code_value_id'
85
86SELECT 'Return Value' = @return_value
87
88--**
89
90EXEC @return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
91 @out_error_number = @out_error_number OUTPUT,
92 @out_code_value_id = @out_code_value_id OUTPUT,
93 @group_name = N'PATHOLOGY_TEST',
94 @code_value = N'PCFVd',
95 @title = N'Pepper chat fruit viroid',
96 @description = N'Pospiviroid whose known host range is limited to the Solanaceae and its distribution is also limited',
97 @sys_lang_id = 1,
98 @created_by = 174697
99
100SELECT @out_error_number as N'@out_error_number',
101 @out_code_value_id as N'@out_code_value_id'
102
103SELECT 'Return Value' = @return_value
104--**
105
106-- NOTE: Record had been in DB, created 12/17/2015. Updated based on spreadsheet.
107
108UPDATE
109 code_value_lang
110SET
111 title = 'Potato spindle tuber viroid',
112 description = 'Bunchy top of tomato, Spindle tuber of potato. Pospiviroid. Pepper can be a host of Potato spindle tuber viroid (PSTVd), however, it is more important in potato and tomato.',
113 modified_by = 174697,
114 modified_date = GETUTCDATE()
115WHERE
116 code_value_lang_id = 13035
117
118
119--EXEC @return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
120-- @out_error_number = @out_error_number OUTPUT,
121-- @out_code_value_id = @out_code_value_id OUTPUT,
122-- @group_name = N'PATHOLOGY_TEST',
123-- @code_value = N'PSTVd',
124-- @title = N'Potato spindle tuber viroid',
125-- @description = N'Bunchy top of tomato, Spindle tuber of potato. Pospiviroid. Pepper can be a host of Potato spindle tuber viroid (PSTVd), however, it is more important in potato and tomato.',
126-- @sys_lang_id = 1,
127-- @created_by = 174697
128
129--SELECT @out_error_number as N'@out_error_number',
130-- @out_code_value_id as N'@out_code_value_id'
131
132--SELECT 'Return Value' = @return_value
133--**
134
135EXEC @return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
136 @out_error_number = @out_error_number OUTPUT,
137 @out_code_value_id = @out_code_value_id OUTPUT,
138 @group_name = N'PATHOLOGY_TEST',
139 @code_value = N'TASVd',
140 @title = N'Tomato apical stunt viroid',
141 @description = N'Pospiviroid. Pathogen of tomato.',
142 @sys_lang_id = 1,
143 @created_by = 174697
144
145SELECT @out_error_number as N'@out_error_number',
146 @out_code_value_id as N'@out_code_value_id'
147
148SELECT 'Return Value' = @return_value
149--**
150
151EXEC @return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
152 @out_error_number = @out_error_number OUTPUT,
153 @out_code_value_id = @out_code_value_id OUTPUT,
154 @group_name = N'PATHOLOGY_TEST',
155 @code_value = N'TCDVd',
156 @title = N'Tomato chlorotic dwarf viroid',
157 @description = N'Pospiviroid plant pathogen which infects a range of Solanaceous vegetables and ornamentals.',
158 @sys_lang_id = 1,
159 @created_by = 174697
160
161SELECT @out_error_number as N'@out_error_number',
162 @out_code_value_id as N'@out_code_value_id'
163
164SELECT 'Return Value' = @return_value
165
166
167
168EXEC @return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
169 @out_error_number = @out_error_number OUTPUT,
170 @out_code_value_id = @out_code_value_id OUTPUT,
171 @group_name = N'PATHOLOGY_TEST',
172 @code_value = N'PSTVd',
173 @title = N'Potato spindle tuber viroid',
174 @description = N'Pospiviroid plant pathogen which infects a range of Solanaceous vegetables and ornamentals.',
175 @sys_lang_id = 1,
176 @created_by = 174697
177
178SELECT @out_error_number as N'@out_error_number',
179 @out_code_value_id as N'@out_code_value_id'
180
181SELECT 'Return Value' = @return_value
182
183
184