Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
1| Name | Data Type | Length | Description |
|---|---|---|---|
| @id_fuente | int | 4 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- Create the stored procedure in the specified schema
CREATE OR ALTER PROCEDURE dbo.Fuentes_procesados_por_tipo
@id_fuente INT
-- add more stored procedure parameters here
AS
BEGIN
SELECT
id_cendeu_procesado,
fecha_informacion,
fuente,
visible,
created,
observaciones,
ISNULL(users.first_name,'') + ' ' + ISNULL(users.last_name,'') AS created_by,
ip,
cantidad
FROM fuentes_procesadas
LEFT JOIN users ON users.user_id=fuentes_procesadas.created_by
WHERE id_fuente=@id_fuente;
RETURN;
END
GO
GO
-- Create the stored procedure in the specified schema
CREATE OR ALTER PROCEDURE dbo.Fuentes_procesados_por_tipo
@id_fuente INT
-- add more stored procedure parameters here
AS
BEGIN
SELECT
id_cendeu_procesado,
fecha_informacion,
fuente,
visible,
created,
observaciones,
ISNULL(users.first_name,'') + ' ' + ISNULL(users.last_name,'') AS created_by,
ip,
cantidad
FROM fuentes_procesadas
LEFT JOIN users ON users.user_id=fuentes_procesadas.created_by
WHERE id_fuente=@id_fuente;
RETURN;
END
GO
Depends On
2Used By
No items found