Devolver Datos a un programa externo
Publicado por Dagmara (6 intervenciones) el 03/04/2018 19:58:57
Hola chicos, estoy creando un stored procedure que debe permitirme entrar 2 valores (ancho y largo) hacer un calculo y luego devolver el resultado para C#, tengo el calculo pero no se como devolverlo a C#. Solo la parte de SQL, es decir la salida.Por favor alguien que me diga.Graciassss
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
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[sp_GlassCalulator_FX300PW]
@Width DECIMAL (18,5),
@Height DECIMAL (18,5),
@ConfigId VARCHAR(10)
AS
BEGIN
DECLARE @figure int;
DECLARE @dbase decimal(18,4);
DECLARE @dleft decimal(18,4);
begin try
SET @figure = 0;
SET @dbase = 0;
SET @dleft = 0;
if (@ConfigId = 'FX300PX')
begin
set @figure = 0;
SET @dbase = @Width - 2.5 + 0.125
SET @dleft = @Height -2.5 + 0.125
end
end try
begin catch
end catch
END
Valora esta pregunta
0