Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.backend_obtener_slider
AS
BEGIN
SET NOCOUNT ON;
select id_slider,
ruta_imagen,
texto,
replace(texto,CHAR(10),'<br>') as texto_mostrar,
visible,
created,
CONVERT(varchar(10),created,103) AS fecha,
estado = case visible
when 1 then 'ACTIVO'
when 0 then 'INACTIVO'
end
from slider
order by created desc
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.backend_obtener_slider
AS
BEGIN
SET NOCOUNT ON;
select id_slider,
ruta_imagen,
texto,
replace(texto,CHAR(10),'<br>') as texto_mostrar,
visible,
created,
CONVERT(varchar(10),created,103) AS fecha,
estado = case visible
when 1 then 'ACTIVO'
when 0 then 'INACTIVO'
end
from slider
order by created desc
END
GO
Depends On
1Used By
No items found