Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
1| Name | Data Type | Length | Description |
|---|---|---|---|
| @user_id | int | 4 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.obtener_monitoreos
@user_id int
AS
BEGIN
SET NOCOUNT ON;
select * from monitoreos where seccion_mantenimiento = 'cheque' and user_id = @user_id
union all
select * from monitoreos where seccion_mantenimiento = 'cuit' and user_id = @user_id
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.obtener_monitoreos
@user_id int
AS
BEGIN
SET NOCOUNT ON;
select * from monitoreos where seccion_mantenimiento = 'cheque' and user_id = @user_id
union all
select * from monitoreos where seccion_mantenimiento = 'cuit' and user_id = @user_id
END
GO
Depends On
1Used By
No items found