2023-10-10 16:21:00 +02:00
|
|
|
|
CREATE PROCEDURE [dbo].[spBildInfo_Insert]
|
|
|
|
|
@Id INT,
|
2023-10-14 14:33:35 +02:00
|
|
|
|
@Datum DATETIME2,
|
|
|
|
|
@Dateiname NVARCHAR(256),
|
|
|
|
|
@ImageModel NVARCHAR(32),
|
|
|
|
|
@WunschId INT,
|
|
|
|
|
@Prompt NVARCHAR(MAX)
|
2023-10-10 16:21:00 +02:00
|
|
|
|
AS
|
|
|
|
|
BEGIN
|
2023-10-14 14:33:35 +02:00
|
|
|
|
INSERT INTO [dbo].[BildInfo] (Datum, Dateiname, ImageModel, WunschId, Prompt)
|
2023-10-10 18:18:17 +02:00
|
|
|
|
VALUES (@Datum,
|
|
|
|
|
@Dateiname,
|
2023-10-10 16:21:00 +02:00
|
|
|
|
@ImageModel,
|
2023-10-14 14:33:35 +02:00
|
|
|
|
@WunschId,
|
|
|
|
|
@Prompt);
|
2023-10-10 18:18:17 +02:00
|
|
|
|
|
|
|
|
|
SELECT Id FROM [dbo].[BildInfo] WHERE Id = CAST(SCOPE_IDENTITY() AS INT);
|
|
|
|
|
END
|