USP_DATAFORMTEMPLATE_VIEW_APPUSER_FROMLOGINNAME
The load procedure used by the view dataform template "App User from login name"
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @ID | nvarchar(255) | IN | The input ID parameter used to load the fields defined on the form. |
| @DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
| @GUID | uniqueidentifier | INOUT | ID |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_APPUSER_FROMLOGINNAME
(
@ID nvarchar(255),
@DATALOADED bit = 0 output,
@GUID uniqueidentifier = null output
)
as
set nocount on;
-- be sure to set this, in case the select returns no rows
set @DATALOADED = 0;
select @DATALOADED = 1,
@GUID = ID
from dbo.APPUSER
where USERNAME = @ID
return 0;