API UpdateDownloadFile

Z Podpora.nextis.cz
Verze z 2. 8. 2017, 14:06, kterou vytvořil Chrzaszcz (diskuse | příspěvky) (Založena nová stránka s textem „==== Description ==== Method allows You to update download file in system. ==== Exact name ==== <code>API_UpdateDownloadFile</code> ==== Type ==== Standa…“)
(rozdíl) ← Starší verze | zobrazit aktuální verzi (rozdíl) | Novější verze → (rozdíl)
Přejít na: navigace, hledání

Description

Method allows You to update download file in system.

Exact name

API_UpdateDownloadFile

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@ID int Internal system id
@ValidFromDate datetime Valid from date
@ValidToDate datetime Valid to date
@GroupName nvarchar(200) Group name
@Title nvarchar(200) Title
@Description nvarchar(2000) Description
@FileName nvarchar(255) File name
@SortIndex int Sort index
@FILEDATA varbinary(max) File data


Example

 DECLARE @ID int
 DECLARE @ValidFromDate datetime
 DECLARE @ValidToDate datetime
 DECLARE @GroupName nvarchar(200)
 DECLARE @Title nvarchar(200)
 DECLARE @Description nvarchar(2000)
 DECLARE @FileName nvarchar(255)
 DECLARE @SortIndex int
 DECLARE @InsertedDate datetime
 DECLARE @UpdatedDate datetime
 DECLARE @FILEDATA varbinary(max)
 
 SELECT @ID = [ID], 
       @ValidFromDate = [ValidFromDate],
       @ValidToDate = [ValidToDate],
       @GroupName = [GroupName],
       @Title = [Title],
       @Description = [Description],
       @FileName = [FileName],
       @SortIndex = [SortIndex],
       @InsertedDate = [InsertedDate],
       @UpdatedDate = [UpdatedDate],
       @FILEDATA = [FILEDATA]
 FROM   [API_GetDownloadFiles] 
 WHERE  id = 3
 
 EXECUTE [API_UpdateDownloadFile] 
  @ID, 
  @ValidFromDate,
  @ValidToDate,
  @GroupName,
  @Title,
  @Description,
  @FileName,
  @SortIndex,
  @InsertedDate,
  @UpdatedDate,
  @FILEDATA

Notices

None.