USP_DATAFORMTEMPLATE_EDITLOAD_DATATUNEUP_2
The load procedure used by the edit dataform template "Data Tune-Up Edit Form 2"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | 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. |
@TSLONG | bigint | INOUT | Output parameter indicating the TSLONG value of the record being edited. This is used to manage multi-user concurrency issues when multiple users access the same record. |
@ADDRESSFORMATTINGCODE | tinyint | INOUT | Address formatting |
@DONOTABBREVIATE | bit | INOUT | Do not abbreviate address elements according to USPS format |
@CAPITALIZE | bit | INOUT | Capitalize the entire address |
@FTPCONNECTIONCODE | tinyint | INOUT |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_DATATUNEUP_2
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@ADDRESSFORMATTINGCODE tinyint = null output,
@DONOTABBREVIATE bit = null output,
@CAPITALIZE bit = null output,
@FTPCONNECTIONCODE tinyint = null output
)
as
set nocount on;
set @DATALOADED = 0;
set @TSLONG = 0;
select
@DATALOADED = 1,
@TSLONG = DATATUNEUP.[TSLONG],
@ADDRESSFORMATTINGCODE = DATATUNEUP.[ADDRESSFORMATTINGCODE],
@DONOTABBREVIATE = DATATUNEUP.[DONOTABBREVIATE],
@CAPITALIZE = DATATUNEUP.[CAPITALIZE],
@FTPCONNECTIONCODE = DATATUNEUP.[FTPCONNECTIONCODE]
from dbo.DATATUNEUP
where DATATUNEUP.[ID] = @ID
return 0;