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
| set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[EditCompactCamera]
@spec_id int,
@camera_brand smallint,
@camera_fullname varchar(75),
@camera_ean numeric,
@camera_artfabr varchar(75),
@bodytype smallint,
@bodycolor smallint,
@size_b numeric,
@size_h numeric,
@size_d numeric,
@weight numeric,
@introducedin numeric,
@available smallint,
@megapixels smallint,
@sensortype smallint,
@sensorsize smallint,
@maxresolutionsize varchar(20),
@imageratio varchar(50),
@startuptime varchar(10),
@shutterdelay varchar(10),
@lcdsize smallint,
@lensmmfrom numeric,
@lensmmto numeric,
@lensaperturefrom smallint,
@lensapertureto smallint,
@lenscontruction varchar(350),
@opticalzoom numeric,
@digitalzoom numeric,
@opticalviewfinder smallint,
@autofocus_type varchar(50),
@autofocus_system varchar(350),
@autofocus_lockoption smallint,
@auotfocus_light smallint,
@whitebalance_options varchar(350),
@shortfocusdistance numeric,
@stabilization smallint,
@stabilization_info varchar(350),
@isofrom smallint,
@isoto smallint,
@iso_info varchar(350),
@maxframessecond numeric,
@maxframessecond_info varchar(350),
@shootprograms varchar(500),
@shutterspeedfast numeric,
@shutterspeedlow numeric,
@shutterspeed_info varchar(350),
@selftimer smallint,
@selftimer_info varchar(350),
@aperture_program smallint,
@shutterspeed_program smallint,
@metering varchar(50),
@meteringcompasation varchar(350),
@memorystoretype varchar(50),
@fileformats varchar(50),
@fileformats_info varchar(350),
@flash_buildin smallint,
@flash_guidenr numeric,
@flash_programs varchar(350),
@flash_external smallint,
@video_available smallint,
@video_recordsount smallint,
@video_resolution smallint,
@video_fileformat smallint,
@power_type smallint,
@power_info varchar(350),
@adapterincluded int,
@adapterinfo varchar(350),
@pcconnections varchar(50),
@directprint smallint
AS
BEGIN
SET NOCOUNT ON;
UPDATE [CAMERA].[dbo].[camera_compact_specs]
SET [camera_brand] = @camera_brand,
[camera_fullname] = @camera_fullname,
[camera_ean] = @camera_ean,
[camera_artfabr] = @camera_artfabr,
[bodytype] = @bodytype,
[bodycolor] = @bodycolor,
[size_b] = @size_b,
[size_h] = @size_h,
[size_d] = @size_d,
[weight] = @weight,
[introducedin] = @introducedin,
[available] = @available,
[megapixels] = @megapixels,
[sensortype] = @sensortype,
[sensorsize] = @sensorsize,
[maxresolutionsize] = @maxresolutionsize,
[imageratio] = @imageratio,
[startuptime] = @startuptime,
[shutterdelay] = @shutterdelay,
[lcdsize] = @lcdsize,
[lensmmfrom] = @lensmmfrom,
[lensmmto] = @lensmmto,
[lensaperturefrom] = @lensaperturefrom,
[lensapertureto] = @lensapertureto,
[lenscontruction] = @lenscontruction,
[opticalzoom] = @opticalzoom,
[digitalzoom] = @digitalzoom,
[opticalviewfinder] = @opticalviewfinder,
[autofocus_type] = @autofocus_type,
[autofocus_system] = @autofocus_system,
[autofocus_lockoption] = @autofocus_lockoption,
[auotfocus_light] = @auotfocus_light,
[whitebalance_options] = @whitebalance_options,
[shortfocusdistance] = @shortfocusdistance,
[stabilization] = @stabilization,
[stabilization_info] = @stabilization_info,
[isofrom] = @isofrom,
[isoto] = @isoto,
[iso_info] = @iso_info,
[maxframessecond] = @maxframessecond,
[maxframessecond_info] = @maxframessecond_info,
[shootprograms] = @shootprograms,
[shutterspeedfast] = @shutterspeedfast,
[shutterspeedlow] = @shutterspeedlow,
[shutterspeed_info] = @shutterspeed_info,
[selftimer] = @selftimer,
[selftimer_info] = @selftimer_info,
[aperture_program] = @aperture_program,
[shutterspeed_program] = @shutterspeed_program,
[metering] = @metering,
[meteringcompasation] = @meteringcompasation,
[memorystoretype] = @memorystoretype,
[fileformats] = @fileformats,
[fileformats_info] = @fileformats_info,
[flash_buildin] = @flash_buildin,
[flash_guidenr] = @flash_guidenr,
[flash_programs] = @flash_programs,
[flash_external] = @flash_external,
[video_available] = @video_available,
[video_recordsount] = @video_recordsount,
[video_resolution] = @video_resolution,
[video_fileformat] = @video_fileformat,
[power_type] = @power_type,
[power_info] = @power_info,
[adapterincluded] = @adapterincluded,
[adapterinfo] = @adapterinfo,
[pcconnections] = @pcconnections,
[directprint] = @directprint
WHERE [spec_id] = @spec_id
END |