Wednesday, September 19, 2018

default set site for SyteLine ERP direct query

if you want to write the scritp to run the query or sp of standard you must to put the script before you call sp standard.

DECLARE @Site SiteType
DECLARE @Infobar InfobarType

EXEC dbo.SetSiteSp
  @Site = 'BCT' --site ที่ต้องการ update
, @Infobar = @Infobar OUTPUT

update table set ....