Hi,
IF EXISTS (SELECT ap_Id from asp_application where ap_Id ='E754A56C-C509-4F3C-86B5-DDE3849933C0')
BEGIN
SELECT REPLACE (ctrc_Id,'F03BE894-E5A2-4B08-8047-18B7340BCA4D','EBF409F8-5563-4E8D-B34A-3EA06D0FB0C2') AS ctrc_ID,
REPLACE (ctrl_Name,'United States','Singapore') AS ctrl_Name
FROM asp_CountriesForCompany
JOIN asp_countryLocalizations ON ctrl_CountryId = ctrc_Id AND ctrl_CultureId = 'BECCC41B-3F42-448C-825C-425CA04FE5DA' AND ctrc_IsEnable = 1
END
ELSE
BEGIN
SELECT
ctrc_ID,
ctrl_Name
FROM asp_CountriesForCompany
JOIN asp_countryLocalizations ON ctrl_CountryId = ctrc_Id AND ctrl_CultureId = 'BECCC41B-3F42-448C-825C-425CA04FE5DA' AND ctrc_IsEnable = 1
END
Im currently having this script, when I run it I do experience this error.
Sf_Exception - System.Exception: Incorrect syntax near the keyword 'IF'. Incorrect syntax near ')'. at Syncfusion.RDL.Data.SqlDataExtension.GetData(String& error) at Syncfusion.Reporting.Web.ReportDesigner.DataProvider.GetTableData() at Syncfusion.Reporting.Web.ReportDesigner.Internal.ReportDesignerInternalHelper.ProcessDesigner()
|
How can I resolve this?