dbo.obtener_comentario

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

2
Name Data Type Length Description
@p_cuit varchar 20
@p_cliente int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO

CREATE OR ALTER PROCEDURE dbo.obtener_comentario
@p_cuit varchar(20),
@p_cliente int
AS
BEGIN 
 --FORMAT([MyDateColumn], 'dd-MM.YYYY HH:mm') 
 select convert(varchar(20),fecha_creacion,103)+'  '+convert(varchar(20),FORMAT (fecha_creacion,'HH:mm')) as fecha_creacion, comentario, username from comentarios  
 inner join users on users.user_id = comentarios.user_id
 where 
 identificacion = @p_cuit and
 comentarios.cliente = @p_cliente
END

GO

Depends On

2

Used By

No items found