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:
6:
37:
38:
39:
40:
41:
42:
43:
44:
45:
|
VERFAHREN [dbo] VERURSACHEN. [user_insert]
@user_service_unit int,
@user_champion_1 varchar (50),
@user_champion_1_nt varchar (10),
@user_champion_2 varchar (50),
@user_champion_2_nt varchar (10),
@user_champion_3 varchar (50),
@user_champion_3_nt varchar (10),
@user_date_received Datum/Uhrzeit,
@user_requestor varchar (255),
@user_info_requested Text,
@user_expiry_date Datum/Uhrzeit,
@user_10_days Datum/Uhrzeit,
@user_5_days Datum/Uhrzeit,
@user_2_days Datum/Uhrzeit
WIE
EINSATZ IN dbo.user_details
(user_service_unit, user_champion_1, user_champion_1_nt, user_champion_2, user_champion_2_nt, user_champion_3, user_champion_3_nt,
user_date_received, user_requestor, user_expiry_date, user_10_days, user_5_days, user_2_days)
WERTE
(@user_service_unit, @user_champion_1, @user_champion_1_nt, @user_champion_2, @user_champion_2_nt, @user_champion_3, @user_champion_3_nt,
@user_date_received, @user_requestor, @user_expiry_date, @user_10_days, @user_5_days, @user_2_days);
@NEW_ID INT ERKLÄREN
@NEW_ID = SCOPE_IDENTITY EINSTELLEN ()
IN dbo.user_info_requested EINSETZEN
(user_id, user_info_requested)
WERTE
(@new_id, @user_info_requested)
EINSATZ IN dbo.user_details_supplied
(user_id, user_details_supplied)
WERTE
(@new_id, '')
EINSATZ IN dbo.user_questions
(user_id, user_questions)
WERTE
(@new_id, '')
RÜCKHOL@new_id
GO |