Hlep.. Problem when updating aspx templates

Hi there, I-m having a huge problem when updating pages from
a .asp template, it replaces my 1 line of code
with <%@ Page Language="VB" ContentType="text/html"
ResponseEncoding="iso-8859-1" %> and errases the resto of the
attributes i have on each page, making it unfunctionable.
Does anyne know why the template when updating does that?
thanks for your help

Hi Suman,
The changes are getting lost when i logout and login back to SAP.
In Current session i am able to see the changes. But changes are lost as soon as i end up my session,
but this is happening only in case of template box width. All other changes are retained between my various SAP sessions.
So wanted to know if any other value is over-writing the template box width values.
Regards
Manpreet Singh

Similar Messages

  • I have a problem when updated the new release of iphoto version(11 jun 2012). After that I cannot open any photo libraries and program is error.

    I have a problem when updated the new release of iphoto version(11 jun 2012). After that I cannot open any photo libraries and program is error. I must to force quit iphoto window. There are any fixed bug update.

    If you have no photos:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library' and start.
    Regards
    TD

  • I have a problem when updating applications on iOS 7.0.2

    I have a problem when updating apps on iOS 7.0.2 to go to the appstore I get the update but only tells me open, not update, I have to uninstall and reinstall te app and gives me the option to update. Sorry my bad english

    I am in the process of installing 9i on SUSE Linux 7.2. The only Linux that is certified to run 9i. The machine is is a fresh install of SUSE. I am running into the same problem. I ran through the first make problem by going to a shell and invoking a make -f oemagent.mk. Built the library just fine. Got errors when trying to run make -f ins_rdbms.mk. Not sure why the installer or the command line is having problems.
    Not sure if I can just hit Ignore and go on????
    Any help would be appreciated. You would think 9i would spread like butter on their "Certified" platform.

  • I have a question my iphone4s has a problem when updated iOS8 there will be freeze problem i think iOS8 is not supported in 4s!!!!!!!!!

    i have a question my iphone4s has a problem when updated iOS8 there will be freeze problem i think iOS8 is not supported in 4s!!!!!!!!!.
    one more question when i phone5 update with iOS 8.1.2 this iOS supported iphone5???

    Hi Ios 8.1.2 Should work on iPhone 4s / 5 You may have a bug Backup to  cloud over WiFi Then Restore back to Factory  Settings This will make iPhone as new. Use same Apple ID & you will get your Apps & Data back Do Restore over your WiFi. Cheers Brian

  • I have problem when update to belle the folder of ...

    I have problem when update to belle the folder of games disappear??  c7
    I need to solve ??? Plus

    Do you mean that pink folder w/ the controller icon on it?  I lost that too on my N8.  Actually, lost all of the folders that came with Anna like Applications & Music.  Wish I could get them back as now I can only make the generic yellow folder which isn't as aesthetically appeasing.
    However, reading articles on Belle there was a picture of a Belle N8 with the games folder shortcut on the homescreen - so maybe it still exists & I just cannot find it.
    Good luck & I'll let you know if I figure this out.

  • Validation problem when update a row in OAF

    created a application using OAF. No problem to create a row, when tried to update the row, received the following error message:
    oracle.jbo.RowValException: JBO-27012: Row validation method validation() failed for row with key oracle.jbo.Key
    2) Steps to Reproduce
    select a row from search result page for update, after change the value and apply it, received the following error message:
    oracle.jbo.RowValException: JBO-27012: Row validation method validation() failed for row with key oracle.jbo.Key

    yes. it is the EO based VO page. Create and Update used same VO and no problem to create the row, had problem when update the row.

  • I have problem when updating the latest version of Pro-X, I tried for several times, so I uninstall and re-install it. It is unsuccessful to re-install the Pro-X and it direct me to ask help from CS,also showing this message: Exit Code: 6  Please see spec

    I have problem when updating the latest version of Pro-X, I tried for several times, so I uninstall and re-install it. It is unsuccessful to re-install the Pro-X and it direct me to ask help from CS,also showing this message: Exit Code: 6  Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW025, DW050 ... WARNING: DW024, DW025 ..., please advice me the step to re-install the Pro-X. Thanks

    Please follow Errors "Exit Code: 6," "Exit Code: 7" | CS5, CS5.5
    Do let us know if it worked.
    Regards
    Rajshree

  • Problem when Updating the Challan (J1INCHLN)

    Dear Expert,
            I am facing problem when i am updating Challan throught 'J1INCHLN'. I  debuged the  'J1INCHLN' and got the problem that TDS line item in BSEG table and TDS line item in WITH_ITEM does not match. 
    Thank you in advance,
    Denish Patel.

    Hi,
    This error also comes if you donot mention Business Place and Section code during the transaction.  Please check whether
    you have defined business place and section code and assigned to your company code and also entered them during
    transaction.
    Regards,
    Sadashivan

  • [HELP] Problem when update 1 unicode form

    hi all,
    I got a problem when I update unicode form :(
    so, I have already tested my web application (Struts-ibatis-velocity-tiles) on my PC (tomcat 5.5.12, mysql 4.1 - utf8 default, JDK 5.0), everything was okie. I could update 1 unicode form (the form which contains unicode characters - firstname, lastname). I use 1 filter for output and input, below is my web.xml:
    <!-- Filter to set character encoding on each request -->
    <filter>
    <filter-name>Set Character Encoding</filter-name>
    <filter-class>filters.SetCharacterEncodingFilter</filter-class>
    <init-param>
    <param-name>encoding</param-name>
    <param-value>UTF-8</param-value>
    </init-param>
    </filter>
    <!-- Define filter mappings for the defined filters -->
    <filter-mapping>
    <filter-name>Set Character Encoding</filter-name>
    <servlet-name>action</servlet-name>
    </filter-mapping>
    <filter-mapping>
    <filter-name>Set Character Encoding</filter-name>
    <servlet-name>velocity</servlet-name>
    </filter-mapping>
    but ... when I deploy and run it on eatj.com, mysql4.1 - utf8, jdk 5.0, I couldn't update unicode form, my last name and first name fields couldn't be saved with unicode characters (utf-8) ...
    what happened :( ... Is this problem of hosting or my web application ??? :(
    help me :(
    thanks in advance,
    bowlkhin

    You need to install the bc package. Apparently the script uses bc to calculate some integer values.
    Brian

  • Problem when updating Management Engine (ME) firmware - photo attached

    Hello All:
    I have encountered a perplexing problem when attempting to update the firmware in the Intel Management Engine.  The firmware update is posted on the W520 driver page (it is package 83rf32ww).  The problem is the error message shown in the photo below.
    The update process starts when the MEUpdate.CMD file is selected within the DOS window, but after a few seconds, the error message at the bottom of the picture appears.
    Any suggestions would be appreciated.
    Thanks,
    Michael
    Solved!
    Go to Solution.

    Yes, except you're running it from C:\Windows\system32 rather than the expected C:\DRIVERS\WIN\ME.
    Basically, you have to navigate to the folder FIRST, then run the file.
    W520: i7-2720QM, Q2000M at 1080/688/1376, 21GB RAM, 500GB + 750GB HDD, FHD screen
    X61T: L7500, 3GB RAM, 500GB HDD, XGA screen, Ultrabase
    Y3P: 5Y70, 8GB RAM, 256GB SSD, QHD+ screen

  • Problems when updating to mountain lion?

    I am currently at OSX 10.6.8. What kind of problems can I expect when updating to Mountain Lion?

    If your Mac is capable of running Mountain Lion, has at least 4GB of RAM, and a decent amount of available free space, the update should go quite smoothly for the average user.

  • Problems when updating WLC from Version 4.1 to 4.2

    Hi,
    we have a Problem when upgrading a WLC 4400.
    When booting the device with the 4.2 Software, there are errors in some lines like "Starting Virtual AP Services: Parse error at line 244:
    not well-formed (invalid token)"
    and the config gets deleted.
    What could be the problem? Is there a possibility to save the config and view it in clear text?
    Thanks a lot and regards.

    I see a similar message while booting a WLC-4402-25 running 5.0.148.0:
    Starting Management Services:
    Parse error at line 3
    not well-formed (invalid token)
    Web Server: ok
    Looking at line 3 of the XML config file reveals:
    Unless line 3 refers to a line 3 of a subset of the XML config file, I'm guessing the WLC code generating the XML config file is out of sync with the WLC code interpreting the XML config file during boot, or vice versa.
    In my case the config is retained on the WLC.
    Trond.

  • Large DB Performance problems when updating schemas

    Hi,
    I'm facing performance problems updating the schema of large databases in SQLServer 2008 R2 and I can't find a proper solution. I would have thought that this is a fairly common problem so here it goes.
    I have a database which is about 700Gb in size. I am going to detail 2 different issues:
    EXAMPLE 1: CHANGING A FIELD TYPE
    In that Database I have a table with the schema detailed below as Table_TB. This table contains several million records. As you can see there is a column of type TEXT (Comment_FD). What I am trying to do is changing  the column type to NVARCHAR(MAX) to
    remove the deprecated TEXT type and support UNICODE characters in that field.
    The command I am running is the following one:
    ALTER TABLE DBA.Table_TB ALTER COLUMN Comment_FD NVARCHAR(MAX)
    This operation takes several hours to complete.
    I tried the following:
    -Adding the new column to the same table and copying the data over
    -Creating a new entire table with the new field type modified and copy the data over
    -Exporting to disk the contents of the table, truncate the table and reimporting the data both with Management Studio and the bcp tool. 
    -When copying to a new table I made also tried removing the PK of the table to skip the overhead of creating an index. 
    -I also tried using a simple spd to copy the data over (to the column in the same table and the other table) in batches. 
    In ALL my tests I set the SQLServer Recovery model to Simple to skip as much as I can the overhead of generating logs.
    No matter what I do, the times to complete this operation seem to be unusable. 
    Please note that I am reducing this problem to its minimum expression. Can't say precisely how long the operation takes, but a script that contain 5 field type changes identical to that one in that and other two tables takes 7 days to complete!!! The REAL problem
    is that I have several other fields to which I need to change the type, and they currently amount to a total running time of 14 days!. And this is just changing a handful of fields in a handful of tables. At some point every string in the system will need
    to be migrated to get unicode support, making this completely impracticable.
    **Based on smaller DBs in the same system I guesstimate this table will contain about 14M records and will be about 44Gb in size. 
    EXAMPLE 2: ADDING COLUMNS
    I have another table int the same DB, with a schema detailed below as Table_2_TB, and again several million records in it. I am trying to add a colum using the following SQL:
    ALTER TABLE DBA.Table2_TB ADD strFiDatasourceName_FD VARCHAR(64) NOT NULL DEFAULT ''
    This operation takes a bit more than 7 hours to complete.
    **Based on smaller DBs in the same system I guesstimate this table will contain about 54M records, and a size of 98Gb.
    QUESTIONS:
    ---->Am I doing something wrong, or is there any way to optimize either the SQL or the SQLServer configuration to speed this up?
    ---->Are these performance levels normal at all when dealing with databases of this size? 
    ---->Anyone out there with experience on DBs of this size?
    ---->Does Microsoft offer some kind of service (cloud?) to make structural changes in large Dbs?
    Thanks a lot for your help in advance!
    This is the schema for the first table:
    CREATE TABLE [DBA].[Table_TB](
    [BranchCode_FD] [char](2) NOT NULL,
    [FolderNo_FD] [int] NOT NULL,
    [DateTime_FD] [datetime] NULL,
    [Staff_FD] [char](3) NULL,
    [Action_FD] [varchar](25) NULL,
    [Comment_FD] [text] NULL,
    [Team_FD] [varchar](8) NULL,
    [Group_FD] [varchar](8) NULL,
    [PopUpDate_FD] [smalldatetime] NULL,
    [nRecordID_FD] [smallint] NOT NULL,
    [nFiFoldItemID_FD] [smallint] NOT NULL,
    PRIMARY KEY CLUSTERED
    [BranchCode_FD] ASC,
    [FolderNo_FD] ASC,
    [nRecordID_FD] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 100) ON [PRIMARY]
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO
    ALTER TABLE [DBA].[Table_TB] ADD CONSTRAINT [DF__Table_TB__DateTime] DEFAULT ('1980-01-01') FOR [DateTime_FD]
    GO
    ALTER TABLE [DBA].[Table_TB] ADD CONSTRAINT [DF__Table_TB__PopUp__096A45D7] DEFAULT ('1980-01-01') FOR [PopUpDate_FD]
    GO
    ALTER TABLE [DBA].[Table_TB] ADD DEFAULT ((-1)) FOR [nFiFoldItemID_FD]
    GO
    This is the schema for the second table:
    CREATE TABLE [DBA].[Table2_TB](
    [strBBranchCode_FD] [char](2) NOT NULL,
    [lFFoldNo_FD] [int] NOT NULL,
    [nFiFoldItemID_FD] [smallint] NOT NULL,
    [strFiType_FD] [char](3) NOT NULL,
    [dtFiCreateDate_FD] [smalldatetime] NOT NULL,
    [strFiBookingRef_FD] [varchar](32) NOT NULL,
    [strFiBookingRefDayMonth_FD] [varchar](5) NOT NULL,
    [strFiBookedVia_FD] [varchar](50) NOT NULL,
    [bFiInterfaced_FD] [smallint] NOT NULL,
    [nFiSortOrder_FD] [smallint] NOT NULL,
    [strFiCreateStaffCode_FD] [char](3) NOT NULL,
    [strPcProductCode_FD] [varchar](5) NOT NULL,
    [dtFiStartDateTime_FD] [smalldatetime] NOT NULL,
    [lFiFinanVendID_FD] [int] NOT NULL,
    [lFiItinVendID_FD] [int] NOT NULL,
    [dtFiVendBalDueDate_FD] [smalldatetime] NOT NULL,
    [dtFiVendDepositDueDate_FD] [smalldatetime] NOT NULL,
    [strFiStatus_FD] [varchar](2) NOT NULL,
    [bFiTransFeeHasBeenApplied_FD] [smallint] NOT NULL,
    [bFiATOLTypeMan_FD] [smallint] NOT NULL,
    [nFiATOLType_FD] [smallint] NOT NULL,
    [strCcClassCode_FD] [varchar](10) NOT NULL,
    [strFiStartPointCode_FD] [varchar](5) NOT NULL,
    [strFiEndPointCode_FD] [varchar](5) NOT NULL,
    [strFiAirlineCode_FD] [varchar](3) NOT NULL,
    [strFiVendDocNo_FD] [varchar](16) NOT NULL,
    [dtFiIssueDate_FD] [smalldatetime] NOT NULL,
    [strFiDiscReasonCode_FD] [varchar](3) NOT NULL,
    [nFiLastFoldPricingID_FD] [smallint] NOT NULL,
    [strFiPrintingNote_FD] [text] NOT NULL,
    [strFiNonPrintingNote_FD] [text] NOT NULL,
    [dtFiStatusExpiryDate_FD] [smalldatetime] NOT NULL,
    [strFiClientFreqTravellerNo_FD] [varchar](20) NOT NULL,
    [strFiRouteNo_FD] [varchar](5) NOT NULL,
    [nFiNumBum_FD] [smallint] NOT NULL,
    [dtFiEndDateTime_FD] [smalldatetime] NOT NULL,
    [strFiFareBase_FD] [varchar](15) NOT NULL,
    [strFiInterfaceItemID_FD] [varchar](15) NOT NULL,
    [strFiEndPointLoc_FD] [varchar](255) NULL,
    [strFiStartPointLoc_FD] [varchar](255) NULL,
    [strMcMealCode_FD] [varchar](5) NOT NULL,
    [strFiSeatNote_FD] [text] NOT NULL,
    [strFiMealNote_FD] [text] NOT NULL,
    [strFiAirCraftType_FD] [varchar](5) NOT NULL,
    [strFiJourneyTime_FD] [varchar](8) NOT NULL,
    [strFiCheckInMins_FD] [varchar](10) NOT NULL,
    [lFiJourneyDist_FD] [int] NOT NULL,
    [nFiNumStop_FD] [smallint] NOT NULL,
    [strFiBaggageAllow_FD] [varchar](15) NOT NULL,
    [strFiIssueStaffCode_FD] [varchar](20) NOT NULL,
    [dtFiDispatchDate_FD] [smalldatetime] NOT NULL,
    [strFiDispatchStaffCode_FD] [varchar](3) NOT NULL,
    [strDmDispatchCode_FD] [varchar](2) NOT NULL,
    [lfFiVendDepositDueAmt_FD] [decimal](17, 2) NOT NULL,
    [strFiRateCode_FD] [varchar](50) NOT NULL,
    [strFiRatePlan_FD] [varchar](2) NOT NULL,
    [strFiCabinNo_FD] [varchar](8) NOT NULL,
    [strFiMileage_FD] [varchar](10) NOT NULL,
    [strFiStartPointLocTelNo_FD] [varchar](40) NULL,
    [strFiBookingGuarantee_FD] [varchar](60) NOT NULL,
    [strFiSpecialRemarks_FD] [varchar](250) NULL,
    [strFiCxnCondition_FD] [varchar](100) NOT NULL,
    [bFiFlyDrive_FD] [smallint] NOT NULL,
    [strFiConfNo_FD] [varchar](32) NOT NULL,
    [lFiLinkID_FD] [int] NOT NULL,
    [strFiCategory_FD] [varchar](15) NOT NULL,
    [nFiNumRoom_FD] [smallint] NOT NULL,
    [nFiNumDay_FD] [smallint] NOT NULL,
    [nFiSaleFoldItemID_FD] [smallint] NOT NULL,
    [bFiRefundItem_FD] [smallint] NOT NULL,
    [strFiFareSavingCode_FD] [varchar](2) NOT NULL,
    [lfFiFareSavingAmt_FD] [decimal](17, 2) NOT NULL,
    [strFiRateNote_FD] [text] NOT NULL,
    [strFiDiscCode_FD] [varchar](20) NOT NULL,
    [strFiReqDispatchMethodCode_FD] [varchar](2) NOT NULL,
    [dtFiReqDispatchDateTime_FD] [smalldatetime] NOT NULL,
    [nFiReqDispatchVoucherType_FD] [smallint] NOT NULL,
    [nFiLastFoldItemDetailID_FD] [smallint] NOT NULL,
    [nFiNumConjunction_FD] [smallint] NOT NULL,
    [lfFiBSPFrgnBaseFareAmt_FD] [decimal](17, 2) NOT NULL,
    [lfFiBSPBaseFareAmt_FD] [decimal](17, 2) NOT NULL,
    [lfFiBSPTaxDiscrepancy_FD] [decimal](17, 2) NOT NULL,
    [lfFiBSPPenaltyFeeAmt_FD] [decimal](17, 2) NOT NULL,
    [nFiRegion_FD] [smallint] NOT NULL,
    [strFiOpenTktNo_FD] [varchar](16) NOT NULL,
    [strFiTktSource_FD] [varchar](3) NOT NULL,
    [strFiJourneyType_FD] [varchar](3) NOT NULL,
    [strFiTktType_FD] [varchar](3) NOT NULL,
    [strFiInterfaceNameRemark_FD] [varchar](50) NULL,
    [nFiATOLIssuedStatus_FD] [smallint] NOT NULL,
    [strFiFareSavingFareBase_FD] [varchar](13) NOT NULL,
    [strFiPaxType_FD] [varchar](3) NOT NULL,
    [strFiActualCarrier_FD] [varchar](2) NOT NULL,
    [strFiNetRemitType_FD] [varchar](1) NOT NULL,
    [strFiFareConstruction_FD] [text] NOT NULL,
    [lfFiBSPTotVATAmt_FD] [decimal](17, 2) NOT NULL,
    [bFiNetFare_FD] [smallint] NOT NULL,
    [strFiTourCode_FD] [varchar](50) NOT NULL,
    [strFiSuppFOPInfo_FD] [varchar](255) NOT NULL,
    [lfFitBSPPublishedCommPerc_FD] [decimal](12, 6) NOT NULL,
    [strFiBSPFareCurrCode_FD] [varchar](3) NOT NULL,
    [strFiTktIssueIataNo_FD] [varchar](8) NOT NULL,
    [lfFiFareOfferedSavingAmt_FD] [decimal](17, 2) NOT NULL,
    [strFiFareOfferedSavingCode_FD] [varchar](2) NOT NULL,
    [strFiDesc_FD] [varchar](8000) NOT NULL,
    [lfFiBSPFareBuyDiscrepancyAmt_FD] [decimal](17, 2) NOT NULL,
    [bFiNoPrintOnItin_FD] [smallint] NOT NULL,
    [dtFiStatusCodeChangeDateTime_FD] [smalldatetime] NOT NULL,
    [bFiNoPrintIfAllPricingsZeroCustAmt_FD] [smallint] NOT NULL,
    [strFiFareSavingFareBaseLow_FD] [varchar](13) NOT NULL,
    [lfFiFareSavingLowAmt_FD] [decimal](17, 2) NOT NULL,
    [strFiBrochureCode_FD] [varchar](8) NOT NULL,
    [bFiVendPayDepositNow_FD] [smallint] NOT NULL,
    [bFiVendPayBalanceNow_FD] [smallint] NOT NULL,
    [strFiBankBranchCode_FD] [varchar](2) NOT NULL,
    [strFiOperatingAirlineCode_FD] [varchar](2) NOT NULL,
    [strFiFarePassengerTypeCode_FD] [varchar](3) NOT NULL,
    [strFiAssociatedFarePricingInfoID_FD] [varchar](15) NOT NULL,
    [bFiVerificationReq_FD] [smallint] NOT NULL,
    [dtFiLastVerifiedDateTime_FD] [datetime] NOT NULL,
    [lFiLastVerifiedLevel_FD] [int] NOT NULL,
    [lFiLastVerifiedWithCount_FD] [int] NOT NULL,
    [dtFiTktingStatusChangeDateTime_FD] [smalldatetime] NOT NULL,
    [strFiTktingInformation_FD] [text] NOT NULL,
    [strFiTktingStatus_FD] [varchar](2) NOT NULL,
    [lfFiBSPFareSellDiscrepancyAmt_FD] [decimal](17, 2) NOT NULL,
    [lfFiBSPTaxBuyDiscrepancyAmt_FD] [decimal](17, 2) NOT NULL,
    [strFiTktingBatchID_FD] [varchar](15) NOT NULL,
    [dtFiTktingBatchDateTime_FD] [smalldatetime] NOT NULL,
    [lIplPolicyLevelID_FD] [int] NOT NULL,
    [strFiTktingDescription_FD] [varchar](1000) NOT NULL,
    [strFiTktingDataVersion_FD] [varchar](10) NOT NULL,
    [strFiSourceTktingSystem_FD] [varchar](20) NOT NULL,
    [strFiOthPtsPmtCode_FD] [varchar](3) NOT NULL,
    [bFiManualPtsEntry_FD] [smallint] NOT NULL,
    [strFiEndorsement_FD] [varchar](500) NOT NULL,
    [strFiOwnedByStaffCode_FD] [char](3) NOT NULL,
    [strFiThirdPartyTrackingID_FD] [varchar](25) NOT NULL,
    [strFiAdditionalPrintingNote_FD] [text] NULL,
    [bFiOverridePrintingNote_FD] [smallint] NOT NULL,
    [lfFiCarbonOffsetWeightAmt_FD] [decimal](17, 2) NOT NULL,
    [strFiCancellationPolicyNote_FD] [text] NULL,
    [bFiPEProcessed_FD] [smallint] NOT NULL,
    [bFiActingAsAgentFor_FD] [smallint] NOT NULL,
    [nFiOriginalBuyingBasis_FD] [smallint] NOT NULL,
    [bFiIsOpenSegment_FD] [smallint] NOT NULL,
    [nFiCreateSource_FD] [smallint] NOT NULL,
    [strFiBookingSourceInvoiceNo_FD] [varchar](7) NOT NULL,
    [strFiGDSPaxTypeCode_FD] [varchar](8) NOT NULL,
    [strFiNetFareGDSAccountCode_FD] [varchar](8) NOT NULL,
    [strFiPOSID_FD] [varchar](50) NOT NULL,
    [bFiIsPOSEditable_FD] [smallint] NOT NULL,
    [lfFiCustExchRate_FD] [decimal](16, 8) NOT NULL,
    [lfFiCustFareSavingLowAmt_FD] [decimal](17, 2) NOT NULL,
    [lfFiCustFareSavingAmt_FD] [decimal](17, 2) NOT NULL,
    [lfFiCustFareOfferedSavingAmt_FD] [decimal](17, 2) NOT NULL,
    [bFiCCItemPayableToBranch_FD] [smallint] NOT NULL,
    [dtFiExternalAccountingDate_FD] [smalldatetime] NOT NULL,
    [strFiSourceSystemBookResponseText_FD] [text] NOT NULL,
    [bFiIsConnection_FD] [smallint] NOT NULL,
    [bFiIsPEFoldLevelItem_FD] [smallint] NOT NULL,
    [nFiReqdEndorsedConjTktType_FD] [smallint] NOT NULL,
    [bFiEndorsedConjTktDetailIsManual_FD] [smallint] NOT NULL,
    [strFiReqdEndorsedConjTktDetailText_FD] [varchar](30) NOT NULL,
    [lFiLastTktingTemplateID_FD] [int] NOT NULL,
    [dtFiBookedDate_FD] [smalldatetime] NOT NULL,
    [strFiTktingVerificationWarning_FD] [varchar](1000) NOT NULL,
    [strFiTktingVerificationError_FD] [varchar](1000) NOT NULL,
    [strFiTktingError_FD] [varchar](1000) NOT NULL,
    [strFiCustomerAccountingData00_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData01_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData02_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData03_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData04_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData05_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData06_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData07_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData08_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData09_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingDataNote_FD] [varchar](100) NOT NULL,
    [strFiCustomerAccountingData10_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData11_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData12_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData13_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData14_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData15_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData16_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData17_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData18_FD] [varchar](50) NOT NULL,
    [strFiCustomerAccountingData19_FD] [varchar](50) NOT NULL,
    [nFiFlightBasis_FD] [smallint] NOT NULL,
    [lFiStartPointVendID_FD] [int] NOT NULL,
    [lFiEndPointVendID_FD] [int] NOT NULL,
    [lCtID_FD] [int] NOT NULL,
    [strFiContractCode_FD] [varchar](25) NOT NULL,
    [strFiContractPeriodCode_FD] [varchar](50) NOT NULL,
    PRIMARY KEY CLUSTERED
    [strBBranchCode_FD] ASC,
    [lFFoldNo_FD] ASC,
    [nFiFoldItemID_FD] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 100) ON [PRIMARY]
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    ALTER TABLE [DBA].[Table2_TB] WITH NOCHECK ADD FOREIGN KEY([nFiReqDispatchVoucherType_FD])
    REFERENCES [DBA].[VoucherTypes_TB] ([nVtCode_FD])
    GO
    ALTER TABLE [DBA].[Table2_TB] WITH NOCHECK ADD FOREIGN KEY([strPcProductCode_FD], [strFiType_FD])
    REFERENCES [DBA].[ProductCodes_TB] ([ProductCode_FD], [Type_FD])
    GO
    ALTER TABLE [DBA].[Table2_TB] WITH NOCHECK ADD FOREIGN KEY([strBBranchCode_FD], [lFFoldNo_FD])
    REFERENCES [DBA].[Folder_TB] ([BranchCode_FD], [FolderNo_FD])
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strBB__44AB0736] DEFAULT ('') FOR [strBBranchCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__lFFol__459F2B6F] DEFAULT (0) FOR [lFFoldNo_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__nFiFo__46934FA8] DEFAULT ((-1)) FOR [nFiFoldItemID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__478773E1] DEFAULT ('') FOR [strFiType_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__dtFiC__487B981A] DEFAULT ('1980-01-01') FOR [dtFiCreateDate_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_TB__strFiBookingRef] DEFAULT ('') FOR [strFiBookingRef_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__4A63E08C] DEFAULT ('') FOR [strFiBookingRefDayMonth_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_TB__strFiBookedVia_FD] DEFAULT ('') FOR [strFiBookedVia_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__bFiIn__4C4C28FE] DEFAULT (0) FOR [bFiInterfaced_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__nFiSo__4D404D37] DEFAULT ((-1)) FOR [nFiSortOrder_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__4E347170] DEFAULT ('') FOR [strFiCreateStaffCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_TB__strPcProductCode] DEFAULT ('') FOR [strPcProductCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__dtFiS__501CB9E2] DEFAULT ('1980-01-01') FOR [dtFiStartDateTime_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__lFiFi__5110DE1B] DEFAULT ((-1)) FOR [lFiFinanVendID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__lFiIt__52050254] DEFAULT ((-1)) FOR [lFiItinVendID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__dtFiV__52F9268D] DEFAULT ('1980-01-01') FOR [dtFiVendBalDueDate_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__dtFiV__53ED4AC6] DEFAULT ('1980-01-01') FOR [dtFiVendDepositDueDate_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__54E16EFF] DEFAULT ('') FOR [strFiStatus_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__bFiTr__55D59338] DEFAULT (0) FOR [bFiTransFeeHasBeenApplied_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__bFiAT__56C9B771] DEFAULT (0) FOR [bFiATOLTypeMan_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__nFiAT__57BDDBAA] DEFAULT (0) FOR [nFiATOLType_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strCc__58B1FFE3] DEFAULT ('') FOR [strCcClassCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_TB__strFiStartPointCode] DEFAULT ('') FOR [strFiStartPointCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_TB__strFiEndPointCode] DEFAULT ('') FOR [strFiEndPointCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__5B8E6C8E] DEFAULT ('') FOR [strFiAirlineCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__5C8290C7] DEFAULT ('') FOR [strFiVendDocNo_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__dtFiI__5D76B500] DEFAULT ('1980-01-01') FOR [dtFiIssueDate_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__5E6AD939] DEFAULT ('') FOR [strFiDiscReasonCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__nFiLa__5F5EFD72] DEFAULT ((-1)) FOR [nFiLastFoldPricingID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__605321AB] DEFAULT ('') FOR [strFiPrintingNote_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__614745E4] DEFAULT ('') FOR [strFiNonPrintingNote_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__dtFiS__623B6A1D] DEFAULT ('1980-01-01') FOR [dtFiStatusExpiryDate_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__632F8E56] DEFAULT ('') FOR [strFiClientFreqTravellerNo_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__6423B28F] DEFAULT ('') FOR [strFiRouteNo_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_TB__nFiNumBum] DEFAULT ((-1)) FOR [nFiNumBum_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__dtFiE__660BFB01] DEFAULT ('1980-01-01') FOR [dtFiEndDateTime_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__67001F3A] DEFAULT ('') FOR [strFiFareBase_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__67F44373] DEFAULT ('') FOR [strFiInterfaceItemID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__68E867AC] DEFAULT ('') FOR [strFiEndPointLoc_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__69DC8BE5] DEFAULT ('') FOR [strFiStartPointLoc_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strMc__6AD0B01E] DEFAULT ('') FOR [strMcMealCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__6BC4D457] DEFAULT ('') FOR [strFiSeatNote_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__6CB8F890] DEFAULT ('') FOR [strFiMealNote_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__6DAD1CC9] DEFAULT ('') FOR [strFiAirCraftType_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__6EA14102] DEFAULT ('') FOR [strFiJourneyTime_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__6F95653B] DEFAULT ('') FOR [strFiCheckInMins_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__lFiJo__70898974] DEFAULT (0) FOR [lFiJourneyDist_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__nFiNu__717DADAD] DEFAULT (0) FOR [nFiNumStop_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__7271D1E6] DEFAULT ('') FOR [strFiBaggageAllow_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__7365F61F] DEFAULT ('') FOR [strFiIssueStaffCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__dtFiD__745A1A58] DEFAULT ('1980-01-01') FOR [dtFiDispatchDate_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__754E3E91] DEFAULT ('') FOR [strFiDispatchStaffCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strDm__764262CA] DEFAULT ('') FOR [strDmDispatchCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__lfFiV__77368703] DEFAULT (0) FOR [lfFiVendDepositDueAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__782AAB3C] DEFAULT ('') FOR [strFiRateCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__791ECF75] DEFAULT ('') FOR [strFiRatePlan_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__7A12F3AE] DEFAULT ('') FOR [strFiCabinNo_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__7B0717E7] DEFAULT ('') FOR [strFiMileage_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__7BFB3C20] DEFAULT ('') FOR [strFiStartPointLocTelNo_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__7CEF6059] DEFAULT ('') FOR [strFiBookingGuarantee_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__7DE38492] DEFAULT ('') FOR [strFiSpecialRemarks_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__7ED7A8CB] DEFAULT ('') FOR [strFiCxnCondition_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__bFiFl__7FCBCD04] DEFAULT (0) FOR [bFiFlyDrive_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__00BFF13D] DEFAULT ('') FOR [strFiConfNo_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__lFiLi__01B41576] DEFAULT ((-1)) FOR [lFiLinkID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__02A839AF] DEFAULT ('') FOR [strFiCategory_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__nFiNu__039C5DE8] DEFAULT (0) FOR [nFiNumRoom_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__nFiNu__04908221] DEFAULT (0) FOR [nFiNumDay_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__nFiSa__0584A65A] DEFAULT ((-1)) FOR [nFiSaleFoldItemID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__bFiRe__0678CA93] DEFAULT (0) FOR [bFiRefundItem_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__076CEECC] DEFAULT ('') FOR [strFiFareSavingCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__lfFiF__08611305] DEFAULT (0) FOR [lfFiFareSavingAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__0955373E] DEFAULT ('') FOR [strFiRateNote_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__0A495B77] DEFAULT ('') FOR [strFiDiscCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__0B3D7FB0] DEFAULT ('') FOR [strFiReqDispatchMethodCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__dtFiR__0C31A3E9] DEFAULT ('1980-01-01') FOR [dtFiReqDispatchDateTime_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__nFiRe__0D25C822] DEFAULT (0) FOR [nFiReqDispatchVoucherType_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__nFiLa__0F0E1094] DEFAULT ((-1)) FOR [nFiLastFoldItemDetailID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__nFiNu__100234CD] DEFAULT (0) FOR [nFiNumConjunction_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__lfFiB__10F65906] DEFAULT (0) FOR [lfFiBSPFrgnBaseFareAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__lfFiB__11EA7D3F] DEFAULT (0) FOR [lfFiBSPBaseFareAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__lfFiB__12DEA178] DEFAULT (0) FOR [lfFiBSPTaxDiscrepancy_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__lfFiB__13D2C5B1] DEFAULT (0) FOR [lfFiBSPPenaltyFeeAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__bFiDo__14C6E9EA] DEFAULT (0) FOR [nFiRegion_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__15BB0E23] DEFAULT ('') FOR [strFiOpenTktNo_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__16AF325C] DEFAULT ('') FOR [strFiTktSource_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__17A35695] DEFAULT ('') FOR [strFiJourneyType_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__18977ACE] DEFAULT ('') FOR [strFiTktType_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__198B9F07] DEFAULT ('') FOR [strFiInterfaceNameRemark_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__nFiAT__1A7FC340] DEFAULT ((-1)) FOR [nFiATOLIssuedStatus_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__1B73E779] DEFAULT ('') FOR [strFiFareSavingFareBase_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__1C680BB2] DEFAULT ('') FOR [strFiPaxType_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__1D5C2FEB] DEFAULT ('') FOR [strFiActualCarrier_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__1E505424] DEFAULT ('') FOR [strFiNetRemitType_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__1F44785D] DEFAULT ('') FOR [strFiFareConstruction_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__lfFiB__20389C96] DEFAULT (0) FOR [lfFiBSPTotVATAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__bFiNe__212CC0CF] DEFAULT (0) FOR [bFiNetFare_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__2220E508] DEFAULT ('') FOR [strFiTourCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__23150941] DEFAULT ('') FOR [strFiSuppFOPInfo_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__lfFit__24092D7A] DEFAULT (0) FOR [lfFitBSPPublishedCommPerc_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__24FD51B3] DEFAULT ('') FOR [strFiBSPFareCurrCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__25F175EC] DEFAULT ('') FOR [strFiTktIssueIataNo_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__lfFiF__27D9BE5E] DEFAULT (0) FOR [lfFiFareOfferedSavingAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD CONSTRAINT [DF__Table2_T__strFi__251D4D44] DEFAULT ('') FOR [strFiFareOfferedSavingCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiDesc_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [lfFiBSPFareBuyDiscrepancyAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [bFiNoPrintOnItin_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('1980-1-1') FOR [dtFiStatusCodeChangeDateTime_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [bFiNoPrintIfAllPricingsZeroCustAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiFareSavingFareBaseLow_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [lfFiFareSavingLowAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiBrochureCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [bFiVendPayDepositNow_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [bFiVendPayBalanceNow_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiBankBranchCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiOperatingAirlineCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiFarePassengerTypeCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiAssociatedFarePricingInfoID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [bFiVerificationReq_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('1980-01-01') FOR [dtFiLastVerifiedDateTime_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [lFiLastVerifiedLevel_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [lFiLastVerifiedWithCount_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('1980-01-01') FOR [dtFiTktingStatusChangeDateTime_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiTktingInformation_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiTktingStatus_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [lfFiBSPFareSellDiscrepancyAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [lfFiBSPTaxBuyDiscrepancyAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiTktingBatchID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('1980-01-01') FOR [dtFiTktingBatchDateTime_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((-1)) FOR [lIplPolicyLevelID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiTktingDescription_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiTktingDataVersion_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiSourceTktingSystem_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiOthPtsPmtCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [bFiManualPtsEntry_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiEndorsement_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiOwnedByStaffCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiThirdPartyTrackingID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiAdditionalPrintingNote_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [bFiOverridePrintingNote_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [lfFiCarbonOffsetWeightAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCancellationPolicyNote_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [bFiPEProcessed_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [bFiActingAsAgentFor_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [nFiOriginalBuyingBasis_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [bFiIsOpenSegment_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [nFiCreateSource_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (' ') FOR [strFiBookingSourceInvoiceNo_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiGDSPaxTypeCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiNetFareGDSAccountCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiPOSID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT (0) FOR [bFiIsPOSEditable_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((0)) FOR [lfFiCustExchRate_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((0)) FOR [lfFiCustFareSavingLowAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((0)) FOR [lfFiCustFareSavingAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((0)) FOR [lfFiCustFareOfferedSavingAmt_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((0)) FOR [bFiCCItemPayableToBranch_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('1980-01-01') FOR [dtFiExternalAccountingDate_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiSourceSystemBookResponseText_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((0)) FOR [bFiIsConnection_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((0)) FOR [bFiIsPEFoldLevelItem_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((0)) FOR [nFiReqdEndorsedConjTktType_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((0)) FOR [bFiEndorsedConjTktDetailIsManual_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiReqdEndorsedConjTktDetailText_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((-1)) FOR [lFiLastTktingTemplateID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('1980-01-01') FOR [dtFiBookedDate_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiTktingVerificationWarning_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiTktingVerificationError_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiTktingError_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData00_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData01_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData02_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData03_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData04_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData05_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData06_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData07_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData08_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData09_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingDataNote_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData10_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData11_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData12_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData13_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData14_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData15_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData16_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData17_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData18_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiCustomerAccountingData19_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((0)) FOR [nFiFlightBasis_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((-1)) FOR [lFiStartPointVendID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((-1)) FOR [lFiEndPointVendID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ((-1)) FOR [lCtID_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiContractCode_FD]
    GO
    ALTER TABLE [DBA].[Table2_TB] ADD DEFAULT ('') FOR [strFiContractPeriodCode_FD]
    GO

    Hi,
    I just wanted to summarize the conclusions we got here, in case it helps someone else.
    For the case of the ALTER statement:
    First we analyzed the query performance and found out that the query was I/O bound. A handful of useful scripts can be found on the links below. Some high values on PAGEIOLATCH wait times suggested some memory pressure, so we incremented the amount of memory
    dedicated to the server up to 32GB. This single change was one of the most effective ones and reduced the query execution time by about 40%-50%. I guess SQLServer needs less paging to perform the operation when it can load more pages in memory at the same
    time.
    We run more tests tweaking some other mentioned variables like the server maxDOP, which made in fact the query slower the higher the value we set. The initial server config was set with auto CPU affinity, but I/O mask affinity set to the first 4 CPUs, and
    we found out that setting it to ALL AUTO perform faster for some reason.
    After some analysis made by Microsoft on the diagnostics/metrics data, the only interesting finding was that a couple of the storage volumes were performing slightly slower than the rest causing a bit of a bottleneck. We recommended the customer to look
    into it with their storage team, but even with those fixed, we won't expect the query to run much faster.
    No other tweaks have been found useful to speed up the ALTER statement. Basically it comes up to how fast you I/O subsystem is, and how much can SQLServer can cache in memory. No other suggestion has been made by Microsoft, and they've advised that any
    other tweaked query (split the column addition and the constraints for example) is going to perform worse than the plain and simple alter statement.
    On the NVARCHAR type problem:
    As it was suggested by Erland Sommarskog, SQLServer 2014 Enterprise edition performed this operation about 40% faster than SQLServer 2008 R2 with the same hardware specs.
    At the moment upgrading the customer infrastructure is not an option for us, so we don't have a proper solution to accomplish this in a workable time frame on SQLServer 2008. 
    The strategy that we found might be the best option was the one suggessted by E. Sommarskog, bind our code for reading access to a COALESCED calculated column, and writing on the new converted NVARCHAR column. Schedule a batch job in the backgroud
    to migrate all the data over time to the new column, and finally remove the old column.
    Thanks a lot everyone for your help.
    David.
    Useful links:
    http://www.sqlskills.com/blogs/paul/wait-statistics-or-please-tell-me-where-it-hurts/
    http://msdn.microsoft.com/en-us/library/ms189768.aspx
    http://rusanu.com/2014/02/24/how-to-analyse-sql-server-performance/

  • Flash no longer working when updating a template page

    Recently switched from GoLive over to DW CS3. I've purchased Total Training for DW CS3 to help me with the transition.
    I am wanting to create a template page to use for the entire site so that if I need to make a change to the template, it updates my entire website.  When I upload the page, the flash image loads fine. The problem I'm having is if I reopen the template.dwt page and make a change, when DW updates the pages that are linked to the template, the flash image in the pages no longer work.
    Here are my steps I've taken:
    1.  Created a page called index.html
    2.  Made an editable region called "main content" using Insert>Template Objects>Editable Region
    3.  Created a folder called templates in the root directory
    4.  File>Save as Template and called it home.html (for testing so I don't mess up my working index.html page)
    5.  File>New>Page from Template and selected my template.dwt file
    6.  Added content to the page.
    7.  File>Save As company-history.html
    8.  Upload index.html, home.html and company-info.html to the server.
    Everything works like it is supposed to.
    9. Open template.dwt and make a change.
    10. Save page and DW updates the home.html and company-info.html pages
    11. Upload to server
    12. Flash image on those two pages stop working
    Here are the links to my pages
    Index - Working properly
    Home - (made from template) Flash not working
    Company Info - Flash not working (made from template) Flash not working
    Any ideas where I'm going wrong?

    Oh, I see you did.  So in the template file, make this -
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','900','height','256','title','Main Flash Slideshow','src','../images/Main-Flash-Slideshow','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../images/Main-Flash-Slideshow' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="900" height="256" title="Main Flash Slideshow">
          <param name="movie" value="images/Main-Flash-Slideshow.swf" />
          <param name="quality" value="high" />
          <embed src="images/Main-Flash-Slideshow.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="256"></embed>
        </object>
    Read like this -
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','900','height','256','title','Main Flash Slideshow','src','/images/Main-Flash-Slideshow','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','/images/Main-Flash-Slideshow' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="900" height="256" title="Main Flash Slideshow">
          <param name="movie" value="/images/Main-Flash-Slideshow.swf" />
          <param name="quality" value="high" />
          <embed src="/images/Main-Flash-Slideshow.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="256"></embed>
        </object>
    See if that helps.
    Message was edited by: Murray *ACP*

  • Problems when updating amavisd-new to 2.5.0

    Hi the list !
    Thanks for the great tips and support we got here. I’m really newbie on mac os x server while it’s now a long time I’m on clients ones.
    I wanted to follow topicdesk.com tutorials to update spamassassin and clamav as I saw here the initial conf by Apple isn’t working.
    Then, I saw before updating SpamAssassin that I had to update amavisd-new first. So, I begin with this tutorial. Here’s what happened (sorry for the long-long post) :
    First installed Xcode 2.4.1.
    Everything was fine until the CPAN Perl Module updates, as I always had the “make had returned bad status, install seems impossible” error. Looking for some info on the net, I then understand that you have to install everything Apple suggests as if you don’t, you’ll have later problems whith “make” command (I know, I first wanted to install only gcc that seemed necessary to me, and when nothing works as expected, I had to go back and install everything ...) In fact, the missing BSD SDK was supsected to be the missing thing, but not only. Then, just install everything and this is fine.
    Updated the whole asked Perl module without any problem, following the tutorial
    Then Reboot the server when asked ; amavisd-new new version 2.5.0 seems OK. Then, the beginning of problems...
    My smtp log which is set in debug mode shows lots of error entries such as
    May 24 13:11:21 xserve postfix/smtpd[302]: connect from xxxx.adsl.hansenet.de[xxx.xxx.xxx.xxx]
    May 24 13:11:22 xserve postfix/smtpd[302]: 0A64A71E1A: client=xxxx.adsl.hansenet.de[xxx.xxx.xxx.xxx]
    May 24 13:11:22 xserve postfix/cleanup[349]: 0A64A71E1A: message-id=<890420070524111120@broilingwhelped>
    May 24 13:11:22 xserve postfix/qmgr[74]: 0A64A71E1A: from=<[email protected]>, size=1188, nrcpt=1 (queue active)
    May 24 13:11:22 xserve postfix/smtp[350]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
    May 24 13:11:22 xserve postfix/smtp[350]: 0A64A71E1A: to=<[email protected]>, relay=none, delay=1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
    May 24 13:11:22 xserve postfix/smtpd[302]: disconnect from xxxx.adsl.hansenet.de[xxx.xxx.xxx.xxx]
    Obviously, amavisd-new isn’t running. Then, trying sudo /usr/bin/amavisd and it say there are mistakes in the conf file. BTW, it’s not really obvious trying to migrate settings from the old conf file to the new one :
    I don't understand how this old conf settings
    @local_domains_acl = ( ".$mydomain" ); # $mydomain and its subdomains
    @local_domains_maps = ( 1 );
    # @local_domains_acl = qw(); # default is empty, no recipient treated as local
    # @local_domains_acl = qw( .example.com );
    # @local_domains_acl = qw( .example.com !host.sub.example.net .sub.example.net );
    # @local_domains_acl = ( ".$mydomain", '.example.com', 'sub.example.net' );
    has to bee changed in the new one way :
    @local_domains_maps = ( [".$mydomain"] ); # $mydomain and its subdomains
    # @local_domains_maps = (); # default is empty list, no recip. considered local
    # @local_domains_maps = # using ACL lookup table
    # ( [ ".$mydomain", 'sub.example.net', '.example.com' ] );
    # @local_domains_maps = # similar, split list elements on whitespace
    # ( [qw( .example.com !host.sub.example.net .sub.example.net )] );
    # @local_domains_maps = ( new_RE( qr'[@.]example\.com$'i ) ); # using regexp
    # @local_domains_maps = ( read_hash("$MYHOME/local_domains") ); # using hash
    # perhaps combined with Postfix: mydestination = /var/amavis/local_domains
    # for debugging purposes: dump_hash($local_domains_maps[0]);
    Anyway, I doubt this is the (real?) reason to my problems
    I correct some of these problems (in fact I forgot to look at amavis.log, but here is what it said) :
    May 24 13:53:30 xserve amavis[1072]: INFO: SA version: 3.0.1, 3.000001, no optional modules: Mail::SpamAssassin::SQLBasedAddrList Net::DNS::RR::SOA Net::DNS::RR::NS Net::DNS::RR::MX Net::DNS::RR::A Net::DNS::RR::AAAA Net::DNS::RR::PTR Net::DNS::RR::CNAME Net::DNS::RR::TXT Net::CIDR::Lite Sys::Hostname::Long DBD::mysql IP::Country::Fast Mail::SPF Mail::SPF::Query Mail::SPF::Mech Mail::SPF::Mech::A Mail::SPF::Mech::All Mail::SPF::Mech::Exists Mail::SPF::Mech::IP4 Mail::SPF::Mech::IP6 Mail::SPF::Mech::Include Mail::SPF::Mech::MX Mail::SPF::Mech::PTR Mail::SPF::Mod Mail::SPF::Mod::Exp Mail::SPF::Mod::Redirect Mail::SPF::SenderIPAddrMech Mail::SPF::v1::Record Mail::SPF::v2::Record
    May 24 13:53:30 xserve amavis[1072]: SpamControl: init_pre_chroot done
    May 24 13:53:30 xserve amavis[1072]: Net::Server: 2007/05/24-13:53:30 Amavis (type Net::Server::PreForkSimple) starting! pid(1072)
    May 24 13:53:30 xserve amavis[1072]: Net::Server: Binding to UNIX socket file /var/amavis/amavisd.sock using SOCK_STREAM
    May 24 13:53:30 xserve amavis[1072]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
    May 24 13:53:30 xserve amavis[1072]: Net::Server: Setting gid to "82 82"
    May 24 13:53:30 xserve amavis[1072]: Net::Server: Setting uid to "82"
    May 24 13:53:30 xserve amavis[1072]: Module Amavis::Conf 2.086
    May 24 13:53:30 xserve amavis[1072]: Module Archive::Zip 1.18
    May 24 13:53:30 xserve amavis[1072]: Module BerkeleyDB 0.26
    May 24 13:53:30 xserve amavis[1072]: Module Compress::Zlib 2.004
    May 24 13:53:30 xserve amavis[1072]: Module Convert::TNEF 0.17
    May 24 13:53:30 xserve amavis[1072]: Module Convert::UUlib 1.08
    May 24 13:53:30 xserve amavis[1072]: Module DB_File 1.810
    May 24 13:53:30 xserve amavis[1072]: Module Digest::MD5 2.36
    May 24 13:53:30 xserve amavis[1072]: Module MIME::Entity 5.420
    May 24 13:53:30 xserve amavis[1072]: Module MIME::Parser 5.420
    May 24 13:53:30 xserve amavis[1072]: Module MIME::Tools 5.420
    May 24 13:53:30 xserve amavis[1072]: Module Mail::Header 1.77
    May 24 13:53:30 xserve amavis[1072]: Module Mail::Internet 1.77
    May 24 13:53:30 xserve amavis[1072]: Module Mail::SpamAssassin 3.000001
    May 24 13:53:30 xserve amavis[1072]: Module Net::Server 0.96
    May 24 13:53:30 xserve amavis[1072]: Module Net::Server::PreFork 0.96
    May 24 13:53:30 xserve amavis[1072]: Module Net::Server::PreForkSimple 0.96
    May 24 13:53:30 xserve amavis[1072]: Module Time::HiRes 1.9707
    May 24 13:53:30 xserve amavis[1072]: Module URI 1.35
    May 24 13:53:30 xserve amavis[1072]: Module Unix::Syslog 0.99
    May 24 13:53:30 xserve amavis[1072]: Amavis::DB code loaded
    May 24 13:53:30 xserve amavis[1072]: Amavis::Cache code loaded
    May 24 13:53:30 xserve amavis[1072]: SQL base code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: SQL::Log code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: SQL::Quarantine NOT loaded
    May 24 13:53:30 xserve amavis[1072]: Lookup::SQL code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: Lookup::LDAP code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: AM.PDP-in proto code loaded
    May 24 13:53:30 xserve amavis[1072]: SMTP-in proto code loaded
    May 24 13:53:30 xserve amavis[1072]: Courier proto code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: SMTP-out proto code loaded
    May 24 13:53:30 xserve amavis[1072]: Pipe-out proto code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: BSMTP-out proto code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: Local-out proto code loaded
    May 24 13:53:30 xserve amavis[1072]: OS_Fingerprint code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: ANTI-VIRUS code loaded
    May 24 13:53:30 xserve amavis[1072]: ANTI-SPAM code loaded
    May 24 13:53:30 xserve amavis[1072]: ANTI-SPAM-SA code loaded
    May 24 13:53:30 xserve amavis[1072]: Unpackers code loaded
    May 24 13:53:30 xserve amavis[1072]: Found $file at /usr/bin/file
    May 24 13:53:30 xserve amavis[1072]: No $dspam, not using it
    May 24 13:53:30 xserve amavis[1072]: No $altermime, not using it
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .mail
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .asc
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .uue
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .hqx
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .ync
    May 24 13:53:30 xserve amavis[1072]: No decoder for .F tried: unfreeze, freeze -d, melt, fcat
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .Z at /usr/bin/uncompress
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .gz at /usr/bin/gzip -d
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .gz (backup, not used)
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .bz2 at /usr/bin/bzip2 -d
    May 24 13:53:30 xserve amavis[1072]: No decoder for .lzo tried: lzop -d
    May 24 13:53:30 xserve amavis[1072]: No decoder for .rpm tried: rpm2cpio.pl, rpm2cpio
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .cpio at /bin/pax
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .tar at /bin/pax
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .deb at /usr/bin/ar
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .zip
    May 24 13:53:30 xserve amavis[1072]: No decoder for .7z tried: 7zr, 7za, 7z
    May 24 13:53:30 xserve amavis[1072]: No decoder for .rar tried: rar, unrar
    May 24 13:53:30 xserve amavis[1072]: No decoder for .arj tried: arj, unarj
    May 24 13:53:30 xserve amavis[1072]: No decoder for .arc tried: nomarch, arc
    May 24 13:53:30 xserve amavis[1072]: No decoder for .zoo tried: zoo, unzoo
    May 24 13:53:30 xserve amavis[1072]: No decoder for .lha tried: lha
    May 24 13:53:30 xserve amavis[1072]: No decoder for .cab tried: cabextract
    May 24 13:53:30 xserve amavis[1072]: No decoder for .tnef tried: tnef
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .tnef
    May 24 13:53:30 xserve amavis[1072]: No decoder for .exe tried: rar, unrar; lha; arj, unarj
    May 24 13:53:30 xserve amavis[1072]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
    May 24 13:53:30 xserve amavis[1072]: (!!)TROUBLE in pre_loop_hook: Please create an empty directory /var/amavis/db to hold a database (config variable $db_home)
    I created the directory, then it says
    May 24 13:58:12 xserve amavis[1133]: (!!)TROUBLE in pre_loop_hook: db_home directory is not writable: /var/amavis/db at /usr/bin/amavisd line 7783.
    I changed CHMOD to 777 (just see later to be more restricitve)
    And then it seems OK
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: starting. /usr/bin/amavisd at localhost amavisd-new-2.2.0 (20041102), Unicode aware
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: user=, EUID: 0 (0); group=, EGID: 0 0 (0 0)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Perl version 5.008006
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: 2007/05/24-14:11:49 Amavis (type Net::Server::PreForkSimple) starting! pid(44)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: Binding to UNIX socket file /var/amavis/amavisd.sock using SOCK_STREAM
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: Setting gid to "82 82"
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: Setting uid to "82"
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Amavis::Conf 2.033
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Archive::Tar 1.22
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Archive::Zip 1.18
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Compress::Zlib 2.004
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Convert::TNEF 0.17
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Convert::UUlib 1.08
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module DB_File 1.810
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module MIME::Entity 5.420
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module MIME::Parser 5.420
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module MIME::Tools 5.420
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Mail::Header 1.77
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Mail::Internet 1.77
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Mail::SpamAssassin 3.000001
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Net::Cmd 2.26
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Net::SMTP 2.29
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Net::Server 0.96
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Time::HiRes 1.9707
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Unix::Syslog 0.99
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Amavis::DB code NOT loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Amavis::Cache code NOT loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Lookup::SQL code NOT loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Lookup::LDAP code NOT loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: AMCL-in protocol code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: SMTP-in protocol code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: ANTI-VIRUS code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: ANTI-SPAM code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Unpackers code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $file at /usr/bin/file
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $arc, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $gzip at /usr/bin/gzip
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $bzip2 at /usr/bin/bzip2
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $lzop, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $lha, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $unarj, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $uncompress at /usr/bin/uncompress
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $unfreeze, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $unrar, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $zoo, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $cpio at /usr/bin/cpio
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $ar, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $rpm2cpio, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $cabextract, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $dspam, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: KasperskyLab AntiViral Toolkit Pro (AVP)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: KasperskyLab AVPDaemonClient
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: H+BEDV AntiVir or CentralCommand Vexira Antivirus
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Command AntiVirus for Linux
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Symantec CarrierScan via Symantec CommandLineScanner
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: DrWeb Antivirus for Linux/FreeBSD/Solaris
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: F-Secure Antivirus
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: CAI InoculateIT
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: MkS_Vir for Linux (beta)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: MkS_Vir daemon
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: ESET Software NOD32
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: ESET Software NOD32 - Client/Server Version
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Norman Virus Control v5 / Linux
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Panda Antivirus for Linux
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: NAI McAfee AntiVirus (uvscan)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: VirusBuster (Client + Daemon)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: CyberSoft VFind
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Ikarus AntiVirus for Linux
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: BitDefender
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No secondary av scanner: FRISK F-Prot Antivirus
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No secondary av scanner: Trend Micro FileScanner
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: SpamControl: initializing Mail::SpamAssassin
    May 24 14:11:52 localhost /usr/bin/amavisd[44]: SpamControl: done
    But in fact there's still a problem :
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) ESMTP::10024 /var/amavis/amavis-20070524T141222-00219: <p.estxxxx@xxxxxxx> -> <pacvolley@ xxxxxxx > Received: SIZE=5929 from xserve.xxxxx ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00219-01 for <pacvolley@ xxxxxxx>; Thu, 24 May 2007 14:12:22 +0200 (CEST)
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) body hash: 05f429e5a692012d98323c55a540b730
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) Checking: [82.241.222.174] <p.estxxx@xxxxx> -> <pacvolley@xxxxx>
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) p003 1 Content-Type: multipart/alternative
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) p001 1/1 Content-Type: text/plain, size: 394 B, name:
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) p002 1/2 Content-Type: text/html, size: 3962 B, name:
    May 24 14:12:22 localhost /usr/bin/amavisd[302]: (00219-01) run_command: child process [302]: Can't close main::stdin: Bad file descriptor at /usr/bin/amavisd line 1589.\n
    May 24 14:12:22 localhost /usr/bin/amavisd[302]: (00219-01) SMTP shutdown: tempdir is being removed: /var/amavis/amavis-20070524T141222-00219
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) TROUBLE in check_mail: mime_decode-1 FAILED: parsing file(1) results - missing last 2 results at (eval 40) line 150.
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) PRESERVING EVIDENCE in /var/amavis/amavis-20070524T141222-00219
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) TIMING [total 284 ms] - SMTP EHLO: 21 (7%), SMTP pre-MAIL: 3 (1%), mkdir tempdir: 1 (0%), create email.txt: 2 (1%), SMTP pre-DATA-flush: 8 (3%), SMTP DATA: 5 (2%), body_hash: 2 (1%), mkdir parts: 3 (1%), mime_decode: 57 (20%), rundown: 181 (64%)
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) TROUBLE in process_request: Error writing a SMTP response to the socket: Broken pipe at (eval 36) line 760, <GEN3> line 208.
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) Requesting process rundown after fatal error
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) load: 100 %, total idle 0.001 s, busy 0.287 s
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) SMTP shutdown: Error writing a SMTP response to the socket: Bad file descriptor at (eval 36) line 760.\n
    And in the mail log I get corresponding errors such as :
    May 24 14:30:20 xserve postfix/smtpd[626]: connect from xxxxxx.club-internet.fr[xxx.xxx.xxx.xxx]
    May 24 14:30:20 xserve postfix/smtpd[626]: 5580872531: client= xxxxxx.club-internet.fr[xxx.xxx.xxx.xxx]
    May 24 14:30:20 xserve postfix/cleanup[452]: 5580872531: message-id=<00e301c79dff$49859120$0100a8c0@pcservice>
    May 24 14:30:20 xserve postfix/smtpd[626]: disconnect from xxxxxx.club-internet.fr[xxx.xxx.xxx.xxx]
    May 24 14:30:20 xserve postfix/qmgr[64]: 5580872531: from=<[email protected]>, size=95594, nrcpt=1 (queue active)
    May 24 14:30:20 xserve postfix/smtp[464]: 5580872531: to=<sjoly@ xxxxxx.com>, relay=127.0.0.1[127.0.0.1], delay=0, status=deferred (host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service shutting down, closing channel (in reply to end of DATA command))
    I first thought mails were lost, and obviously as it won’t be so easy to fix alone without any help (and time is running loosing mails), I decided to come back to the old amavisd-new version, restoring /usr/bin/amavis and amavis.conf, and rebooting computer.
    Then, another problem with Perl modules that were updated so that old amavis seemed also not working. I decided to replace /Library/Perl and System/Library/Perl with new ones from a clean fresh install on my local server. Rebooted, and seems to be OK as before. Then looked for Postfix and understood than flushing will force deferred mails to be processed.
    Anyway, all is to be done again. If anybody here as an idea of what's going wrong, I'll be glad to learn ...
      Mac OS X (10.4.9)  

    well, there you have it – a classical if then loop.
    seems i'm still stuck somewhere in the middle of the amavisd.conf nightmare. had amavisd-new 2.4.5 / spamassassin 3.1.8 up and running after a real nightmare (which had to do with daemonize=1).
    after i tried to get up-to-date with amavisd-new 2.5.1 and spamassassin 3.2.1 i saw the same problems (see below) again, while launchd tried to get amavisd started.
    Jun 15 05:14:11 mail launchd: org.amavis.amavisd: exited with exit code: 2
    Jun 15 05:14:11 mail launchd: org.amavis.amavisd: respawning too quickly! throttling
    Jun 15 05:14:11 mail launchd: org.amavis.amavisd: 9 more failures without living at least 60 seconds will cause job removal
    Jun 15 05:14:11 mail launchd: org.amavis.amavisd: will restart in 10 seconds
    remembering the previous troubles, i double checked all things, which could be set wrong (daemonize, etc.) and all was well. tried a second install and all to no success.
    later i had the idea, it might be the new amavisd.conf, which troubles (why ever) the startup. so i used the v2.4.5 one and lo and behold, it worked. but why? what is so strange/new/different in 2.5.1, that the startup of amavisd gets broken?
    now i read, that they changed a bunch of stuff and i certainly would be using the newer versions conf file, but it seems i don't get it right configured. i'm on the latest updated 10.4.9 server with all fixes installed. every service is working, mail gets in/out and gets even tagged.
    well, i didn't do the setup with the 2 users junkmail/nojunkmail yet. is it really necessary to set them up as local users? can't they be handled as every other user which has mail enabled via wgm?
    anyone can help me here? thx.
    Various   Mac OS X (10.4.9)   Mac OS X Server (10.4.9)

Maybe you are looking for