You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
3.2 KiB
60 lines
3.2 KiB
USE [Vertragsverwaltung_20160404]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_LC_Produkt_SelectOne] Script Date: 02.12.2016 09:08:54 ******/
|
|
DROP PROCEDURE [dbo].[pr_LC_Produkt_SelectOne]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_LC_Produkt_SelectOne] Script Date: 02.12.2016 09:08:54 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
|
|
|
|
|
|
---------------------------------------------------------------------------------
|
|
-- Stored procedure that will select an existing row from the table 'LC_Produkt'
|
|
-- based on the Primary Key.
|
|
-- Gets: @iLC_ProduktNr int
|
|
-- Returns: @iErrorCode int
|
|
---------------------------------------------------------------------------------
|
|
CREATE PROCEDURE [dbo].[pr_LC_Produkt_SelectOne]
|
|
@iLC_ProduktNr int,
|
|
@iErrorCode int OUTPUT
|
|
AS
|
|
SET NOCOUNT ON
|
|
-- SELECT an existing row from the table.
|
|
SELECT
|
|
[LC_ProduktNr],
|
|
[LC_ProduktNr_Parent],
|
|
[Bezeichnung],
|
|
[Beschreibung],
|
|
[Erstellt_am],
|
|
[Mutiert_am],
|
|
[Mutierer],
|
|
[Aktiv],
|
|
[Imageindex],
|
|
[ProdukttypNr],
|
|
[Image],
|
|
[Version],
|
|
[StatusNr],
|
|
[Nächste_Ueberprüfung],
|
|
[Entscheidungstermin],
|
|
[Abgeloest_am],
|
|
[Abgeloest_durch],
|
|
[IstStruktur],
|
|
[Verweisnr],
|
|
[TerminBemerkung],
|
|
[Abgeloest_durch_produktnr],
|
|
[Abgeliest_durch_wen],
|
|
[Statusbemerkung],
|
|
[Sort]
|
|
FROM [dbo].[LC_Produkt]
|
|
WHERE
|
|
[LC_ProduktNr] = @iLC_ProduktNr
|
|
-- Get the Error Code for the statement just executed.
|
|
SELECT @iErrorCode=@@ERROR
|
|
|
|
|
|
|
|
GO
|