Choosing the parameters to bind

Hello,
I am using a function nlssort (by using Expression.getFunction) in "order by" clause of ReadAllQuery. I use anyOf expression to build selection criteria. I want the statement to be prepared, so I call ReadAllQuery.setShouldBindAllParameters(true). Toplink generates "SELECT DISTINCT ... ORDER BY NLSSORT(X, ?)" (with several "?"). Oracle database gives ORA-01791 error. If I call ReadAllQuery.setShouldBindAllParameters(false), it's OK.
How can I force TopLink to bind all parameters except the last one? What would you recommend to solve this problem (I want the statement to be prepared)?

I used
        ExpressionOperator exOperator = new ExpressionOperator();
        v.addElement("nlssort(");
        v.addElement(",'" + param+ "')");
       ...

Similar Messages

  • Why am I suddenly getting the following error message: "The specified location is reserved by the operating system and is not permitted. Please choose a different location." I've been recording all night and I haven't changed any of the parameters.

    Why am I suddenly getting the following error message: "The specified location is reserved by the operating system and is not permitted. Please choose a different location." I've been recording all night and I haven't changed any of the parameters.

    Hi Tom,
    Looks like we have problem here as we see another blank post from you here. It's probably something to do with your email. Let me send you a PM with my email address and we can communicate that way.
    Thanks,
    Kevin

  • How to select multiple values from the Parameters in the concurrent program

    How to select multiple values from the Parameters defined in the concurrent program...and i believe multiple selection is not a direct feature of EBS, but is there any workaround solution to acheive mulitple selection?

    I think there's no way to do that using standard feature.
    Some workaround I use :
    1. If the number of selections are fixed, you could use multiple parameters for the same valueset. For example :
    Selection1 : <choose first selection>
    Selection2: <choose 2nd selection>
    ..etc.
    If you don't use it then leave it empty.
    2. Use text varchar valueset and enter it manually and separate by comma (or other value) , eg : selection1,selection2,selection3....etc.

  • Getting an error while fetching the data and bind it in the Tree table

    Hi All,
    I am getting an error "A navigation paths parameter object has to be defined - " while fetching the data and bind it in the Tree table.
    Please find the code and screenshot below
    var oModel = new sap.ui.model.odata.ODataModel("../../../XXXX.xsodata/", true);
    var oTable = sap.ui.getCore().byId("table");
    oTable.setModel(oModel);
    oTable.bindRows({
        path: "/Parent",
        parameters: {expand: "Children"}
    Can anyone please give me a suggestion to rectify this?
    Thanks in Advance,
    Aravindh

    Hi All,
    Please see the below code. It works fine for me.
    var oController = sap.ui.controller("member_assignment");
    var oModel = new sap.ui.model.odata.ODataModel("../../../services/XXXX.xsodata/", true);
    var Context = "/PARENT?$expand=ASSIGNEDCHILD&$select=NAME,ID,ASSIGNEDCHILD/NAME,ASSIGNEDCHILD/ID,ASSIGNEDCHILD/PARENT_ID";
    var oTable = sap.ui.getCore().byId("tblProviders");
    oModel.read(Context, null, null, true, onSuccess, onError);
    function onSuccess(oEventdata){
        var outputJson = {};
        var p = 0;
        var r = {};
        try {
            if (oEventdata.results){
                r = oEventdata.results;
        } catch(e){
            //alert('oEventdata.results failed');
        $.each(r, function(i, j) {
            outputJson[p] = {};
            outputJson[p]["NAME"] = j.NAME;
            outputJson[p]["ID"] = j.ID;
            outputJson[p]["PARENT_ID"] = j.ID;
            outputJson[p]["DELETE"] = 0;
            var m = 0;
            if (j.ASSIGNEDCHILD.results.length > 0) {
                $.each(j.ASSIGNEDCHILD.results, function(a,b) {
                outputJson[p][m] = { NAME: b.NAME,
                                     ID : b.ID,
                                     PARENT_ID: b.PARENT_ID,
                                     DELETE: 1};
                m++;
            p++;
        var oPM = new sap.ui.model.json.JSONModel();
        oPM.setData(outputJson);
        oTable.setModel(oPM);
    function onError(oEvent){
        console.log("Error on Provider Members");
    oTable.bindRows({
        path:"/"
    Regards
    Aravindh

  • What are the parameters in Call transaction method?

    Hi ABAPER'S,
        Please give me what are the parameters in call transaction method?
    Thanks,
    Prakash

    Processing batch input data with CALL TRANSACTION USING is the faster of the two recommended data transfer methods. In this method, legacy data is processed inline in your data transfer program.
    Syntax:
    CALL TRANSACTION <tcode>
    USING <bdc_tab>
    MODE  <mode>
    UPDATE  <update>
    <tcode> : Transaction code
    <bdc_tab> : Internal table of structure BDCDATA.
    <mode> : Display mode:
    A
    Display all
    E
    Display errors only
    N
    No display
    <update> : Update mode:
    S
    Synchronous
    A
    Asynchronous
    L
    Local update
    A program that uses CALL TRANSACTION USING to process legacy data should execute the following steps:
    Prepare a BDCDATA structure for the transaction that you wish to run.
    With a CALL TRANSACTION USING statement, call the transaction and prepare the BDCDATA structure. For example:
    CALL TRANSACTION 'TFCA' USING BDCDATA
    MODE 'A'
    UPDATE 'S'.
    MESSAGES INTO MESSTAB.
    IF SY-SUBRC <> 0.
    <Error_handling>.
    ENDIF.
    The MODE Parameter
    You can use the MODE parameter to specify whether data transfer processing should be displayed as it happens. You can choose between three modes:
    A Display all. All screens and the data that goes in them appear when you run your program.
    N No display. All screens are processed invisibly, regardless of whether there are errors or not. Control returns to your program as soon as transaction processing is finished.
    E Display errors only. The transaction goes into display mode as soon as an error in one of the screens is detected. You can then correct the error.
    The display modes are the same as those that are available for processing batch input sessions.
    The UPDATE Parameter
    You use the UPDATE parameter to specify how updates produced by a transaction should be processed. You can select between these modes:
    A Asynchronous updating. In this mode, the called transaction does not wait for any updates it produces to be completed. It simply passes the updates to the SAP update service. Asynchronous processing therefore usually results in faster execution of your data transfer program.
    Asynchronous processing is NOT recommended for processing any larger amount of data. This is because the called transaction receives no completion message from the update module in asynchronous updating. The calling data transfer program, in turn, cannot determine whether a called transaction ended with a successful update of the database or not.
    If you use asynchronous updating, then you will need to use the update management facility (Transaction SM12) to check whether updates have been terminated abnormally during session processing. Error analysis and recovery is less convenient than with synchronous updating.
    S Synchronous updating. In this mode, the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors.
    L Local updating. If you update data locally, the update of the database will not be processed in a separate process, but in the process of the calling program. (See the ABAP keyword documentation on SET UPDATE TASK LOCAL for more information.)
    The MESSAGES Parameter
    The MESSAGES specification indicates that all system messages issued during a CALL TRANSACTION USING are written into the internal table <MESSTAB> . The internal table must have the structure BDCMSGCOLL .
    You can record the messages issued by Transaction TFCA in table MESSTAB with the following coding:
    (This example uses a flight connection that does not exist to trigger an error in the transaction.)
    DATA: BEGIN OF BDCDATA OCCURS 100.
    INCLUDE STRUCTURE BDCDATA.
    DATA: END OF BDCDATA.
    DATA: BEGIN OF MESSTAB OCCURS 10.
    INCLUDE STRUCTURE BDCMSGCOLL.
    DATA: END OF MESSTAB.
    BDCDATA-PROGRAM = 'SAPMTFCA'.
    BDCDATA-DYNPRO = '0100'.
    BDCDATA-DYNBEGIN = 'X'.
    APPEND BDCDATA.
    CLEAR BDCDATA.
    BDCDATA-FNAM = 'SFLIGHT-CARRID'.
    BDCDATA-FVAL = 'XX'.
    APPEND BDCDATA.
    BDCDATA-FNAM = 'SFLIGHT-CONNID'.
    BDCDATA-FVAL = '0400'.
    APPEND BDCDATA.
    CALL TRANSACTION 'TFCA' USING BDCDATA MODE 'N'
    MESSAGES INTO MESSTAB.
    LOOP AT MESSTAB.
    WRITE: / MESSTAB-TCODE,
    MESSTAB-DYNAME,
    MESSTAB-DYNUMB,
    MESSTAB-MSGTYP,
    MESSTAB-MSGSPRA,
    MESSTAB-MSGID,
    MESSTAB-MSGNR.
    ENDLOOP.
    The following figures show the return codes from CALL TRANSACTION USING and the system fields that contain message information from the called transaction. As the return code chart shows, return codes above 1000 are reserved for data transfer. If you use the MESSAGES INTO <table> option, then you do not need to query the system fields shown below; their contents are automatically written into the message table. You can loop over the message table to write out any messages that were entered into it.
    Return codes:
    Value
    Explanation
    0
    Successful
    <=1000
    Error in dialog program
    > 1000
    Batch input error
    System fields:
    Name:
    Explanation:
    SY-MSGID
    Message-ID
    SY-MSGTY
    Message type (E,I,W,S,A,X)
    SY-MSGNO
    Message number
    SY-MSGV1
    Message variable 1
    SY-MSGV2
    Message variable 2
    SY-MSGV3
    Message variable 3
    SY-MSGV4
    Message variable 4
    Error Analysis and Restart Capability
    Unlike batch input methods using sessions, CALL TRANSACTION USING processing does not provide any special handling for incorrect transactions. There is no restart capability for transactions that contain errors or produce update failures.
    You can handle incorrect transactions by using update mode S (synchronous updating) and checking the return code from CALL TRANSACTION USING. If the return code is anything other than 0, then you should do the following:
    write out or save the message table
    use the BDCDATA table that you generated for the CALL TRANSACTION USING to generate a batch input session for the faulty transaction. You can then analyze the faulty transaction and correct the error using the tools provided in the batch input management facility.

  • I need to pass a query in form of string to DBMS_XMLQUERY.GETXML package...the parameters to the query are date and varchar ..please help me..

    I need to pass a query in form of string to DBMS_XMLQUERY.GETXML package...the parameters to the query are date and varchar ..please help me build the string .Below is the query and the out put. ( the string is building fine except the parameters are with out quotes)
    here is the procedure
    create or replace
    procedure temp(
        P_MTR_ID VARCHAR2,
        P_FROM_DATE    IN DATE ,
        P_THROUGH_DATE IN DATE ) AS
        L_XML CLOB;
        l_query VARCHAR2(2000);
    BEGIN
    l_query:=  'SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
          ||'mi''), ''00:'
          ||'00'',''24:'
          ||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
          ||'mi'')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = '
        ||P_MTR_ID||
       ' AND s_mtrch   = ''1''
        AND s_datetime BETWEEN TO_DATE('
        ||P_FROM_DATE||
        ',''DD-MON-YY'') AND (TO_DATE('
        ||P_THROUGH_DATE||
        ',''DD-MON-YY'') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = '
        ||P_MTR_ID||
        ' AND s_mtrch   = ''2''
        AND s_datetime BETWEEN TO_DATE('
        ||P_FROM_DATE||
        ',''DD-MON-YY'') AND (TO_DATE('
        ||P_THROUGH_DATE||
        ','' DD-MON-YY'') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)';
    SELECT DBMS_XMLQUERY.GETXML('L_QUERY') INTO L_XML   FROM DUAL;
    INSERT INTO NK VALUES (L_XML);
    DBMS_OUTPUT.PUT_LINE('L_QUERY IS :'||L_QUERY);
    END;
    OUTPUT parameters are in bold (the issue is they are coming without single quotes otherwise th equery is fine
    L_QUERY IS :SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),'9999999.000') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),'$9,999,999.00') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),'9999999.000') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,'mm/dd/yyyy') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,'hh24:mi'), '00:00','24:00', TO_CHAR(s_datetime+.000011574,'hh24:mi')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = N3165 AND s_mtrch   = '1'
        AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,'DD-MON-YY') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = N3165 AND s_mtrch   = '2'
        AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,' DD-MON-YY') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)

    The correct way to handle this is to use bind variables.
    And use DBMS_XMLGEN instead of DBMS_XMLQUERY :
    create or replace procedure temp (
      p_mtr_id       in varchar2
    , p_from_date    in date
    , p_through_date in date
    is
      l_xml   CLOB;
      l_query VARCHAR2(2000);
      l_ctx   dbms_xmlgen.ctxHandle;
    begin
      l_query:=  'SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
          ||'mi''), ''00:'
          ||'00'',''24:'
          ||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
          ||'mi'')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = :P_MTR_ID
        AND s_mtrch   = ''1''
        AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
                           AND (TO_DATE(:P_THROUGH_DATE,''DD-MON-YY'') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = :P_MTR_ID
        AND s_mtrch   = ''2''
        AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
                           AND (TO_DATE(:P_THROUGH_DATE,'' DD-MON-YY'') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)';
      l_ctx := dbms_xmlgen.newContext(l_query);
      dbms_xmlgen.setBindValue(l_ctx, 'P_MTR_ID', p_mtr_id);
      dbms_xmlgen.setBindValue(l_ctx, 'P_FROM_DATE', to_char(p_from_date, 'DD-MON-YY'));
      dbms_xmlgen.setBindValue(l_ctx, 'P_THROUGH_DATE', to_char(p_through_date, 'DD-MON-YY'));
      l_xml := dbms_xmlgen.getXML(l_ctx);
      dbms_xmlgen.closeContext(l_ctx);
      insert into nk values (l_xml);
    end;

  • Why i have to specify the parameters (property and name) in both tags?

    Recently i learned how to populate a html:select with data from a DB table with a int value and a String value (value and label of an option). For that i create a business object that represent one pair value&label (i called categoryBO) and another business object that contains a list of the business objects categoryBO. So in my JSP i have the next code:
    <html:select name="lista" property="listaPropiedades">
    <html:optionsCollection name="lista" property="listaPropiedades" value="varValor" label="varLabel" />
    </html:select> Well i understand the next: name is the name of the business object that contains the list with the objects that represents the options in the select tag; property is the name of the list object, in the business object i need to have the getters and setters for that list; then value is the name of the variable that contains the data that will be the value of each option and label is the name of the variable that contains the data that will be the value of each label.
    But i have the next questions:
    1. Why i have to establish the parameters property and name for bot html:select and html:optionsCollection? Why not only in html:select or only html:optionsCollection?
    2. In the ActionForm for my JSP i don�t know what data type have to use to declare the variable that's linked with the option or with the select. I'm using Object for now.
    3. Why the only way to populate the html:optionsCollection in the Action is passing the object in the request object as an atribute in the next way:
    request.setAttribute("lista", objectThatContainsList);instead
    ((ActionForm)form).setListaPropiedades(objectThatContainsList);why's that? I have the same question when i'm populatina a normal html table using a logic:iterate tag or using a display:table tag from displaytag library.

    Ok, you have one big misconception here - you're using the same name/property for both the select component and its contents.
    The html:select should refer you to ONE selected value (in this case an int). It should tie to a field on your action form.
    The html:optionsCollection should refer to a list of beans used to populate this select component.
    <html:select property="selectedItem">
    <html:optionsCollection name="myList" property="listOfProperties" value="varValor" label="varLabel" />
    </html:select>
    1. Why i have to establish the parameters property and name for bot html:select and html:optionsCollection? Why not only in html:select or only html:optionsCollection?Because they actually refer to two different things, and should be two different values.
    html:options gets the list of possible values
    html:select stores the "selected" option. (consider what you would have if you just used a standard html:input here, and typed the id directly in - THATS the property to bind to)
    2. In the ActionForm for my JSP i don�t know what data type have to use to declare the variable that's linked with the option or with the select. I'm using Object for now.You do now - because it is declared/mapped seperately
    3. Why the only way to populate the html:optionsCollection in the Action is passing the object in the request object as an atribute in the next way:Its not.
    The way you mentioned is also valid. If both the "selectedItem" and "listOfItems" are properties on your action form, you can leave out the "name" attribute, and they will be found there.
    However if you are dealing with request scoped beans, you will have to populate the list on each access of the page - you will need a "load" action to poupulate the bean with the items for the dropdown, and make sure that it is always populated when you return to it (eg on an error condition).
    That is why setting it as an attribute is sometimes preferable.
    Cheers,
    evnafets

  • What are the parameters of mobileUpgradetarget.exe?

    Hi CRM Gurus,
    does someone know the parameters of clientupgradetarget.exe?
    Because i get an error during executing of a mup-file, which was inside of a SAP UNIT.
    Synchronously starting command : "C:\Programme\SAP\Mobile\Bin.Net\ClientUpgradeTarget.exe" /MUP["C:\Programme\SAP\Mobile\5.00.SP.15\MobileComponentUpgrade\HotFix\MandatoryFix.mup"] /COC[Yes] /UTS[HotFixMCLOnly]
                                Return value of command :  -532459699
    regards
      Wolfgang

    Hello Wolfgang,
    The command options of ClientUpgradetarget.exe are:
    /MUP[.....] - Path of MUP file OR folder where MUP file is stored
    /COC[Yes or No] - Close on completion of upgrade
    /SUI[Yes or No] - Show UI of the tool
    /SMD[] - Silent Mode
    /APP[Short name of application] - To choose application to be deployed
                                      if there are multiple applications in
                                      the upgrade package
    /LAN[DE or EN etc.] - To choose language to be deployed if files and
                          folders related to multiple languages are present
    /UTS[BOL or UI etc] - To choose specific units contained in the upgrade
    Example -
    ClientUpgradeTarget.exe /MUP["& strDir & "\SAPCRMUpgrade.mup] /COC[Yes] /UTS[UnitName1UnitName2UnitName3] /APP[MSA] /LAN[EN]
    Thanks,
    Rohit

  • What are the parameters of clientupgradetarget.exe?

    Hi CRM Gurus,
    does someone know the parameters of clientupgradetarget.exe?
    Because i get an error during executing of a mup-file, which was inside of a SAP UNIT.
    Synchronously starting command : "C:\Programme\SAP\Mobile\Bin.Net\ClientUpgradeTarget.exe" /MUP["C:\Programme\SAP\Mobile\5.00.SP.15\MobileComponentUpgrade\HotFix\MandatoryFix.mup"] /COC[Yes] /UTS[HotFixMCLOnly]
                                Return value of command :  -532459699
    regards
      Wolfgang

    Hello Wolfgang,
    The command options of ClientUpgradetarget.exe are:
    /MUP - Path of MUP file OR folder where MUP file is stored
    /COC - Close on completion of upgrade
    /SUI - Show UI of the tool
    /APP - To choose application to be deployed
                                     if there are multiple applications in
                                     the upgrade package
    /LAN - To choose language to be deployed if files and
                         folders related to multiple languages are present
    /UTS - To choose specific units contained in the upgrade
    For the error you're facing, please check if the MUP file is located under the location C:\Programme\SAP\Mobile\5.00.SP.15\MobileComponentUpgrade\HotFix\MandatoryFix.mup
    If 'yes' , then you can also try deploying the MUP manually by double clicking and selecting only the unit 'HotFixMCLOnly'
    Thanks,
    Rohit

  • How do I use the Parameters from URL to filter on Content Query in ItemStyle.xsl?

    Hi, I might need your help with code that Content Query under <xsl:Template...> that I need a filter for 3 parameter from url (from date, to date(for date range) and type.
    eg: www.mywebsite.com/pages/Filter.aspx?DateFrom=01/01/2012&DateTo=01/01/2013&Type=sports
    I've google for help and not sure they seem working so far.

    Hi,
    If you want to filter a Content Query Web Part with the parameters from URL, we can achieve it with OOTB of Content Query Web Part by adding "Additional Filters" in "Web Part Properties"->"Query". We can add
    three filters like:
    date is greater than [PageQueryString:DateFrom]
    And
    date is less than [PageQueryString:DateTo]
    And
    type is equal to [PageQueryString:Type]
    Then redirect to the URL: www.mywebsite.com/pages/Filter.aspx?DateFrom=01/01/2012&DateTo=01/01/2013&Type=sports, the query results will be filtered.
    Please reply freely if I misunderstand your meaning or there any other questions.
    best regards
    Patrick Liang
    TechNet Community Support

  • Choosing the Right Power Supply

    First things first. If you've got a poor-quality and/or faulty power supply, nothing else you do will work to solve your problems. Stick to the basics before you go further...The short answer is to buy a hi-powered, brand name supply, like the new ENERMAX line (430 W or higher) or ANTEC True550. Almost nothing else will do with today's computers. In over 30 years of electronic/computer service, I have found that 85% or more of problems were power-related.
    If you want to know more, read on...
    Choosing The Right Power Supply
    If you’re reading this, there’s a good chance that one of my colleagues or I believe that you could be experiencing problems with your power supply, based upon the symptoms you mentioned in your post, and provided you with this link. Relax, you’re not alone. In 30 years of electronic and computer troubleshooting, I’d say that the majority of the electronic, mainframe, mini, and microcomputer problems I’ve diagnosed and repaired were with the basic power the problematic device was receiving. The symptoms often included random reboots, crashing, the BSOD, lockups, etc.
    (As the national support technician for few major computer service companies, working US Defense contracts, I was often the person that had to fly in and correct the problem, or “walk through” the on-site technician as he closely followed my instructions. I achieved success in my career by carefully reading the manuals, knowing where to go for more information that was otherwise unavailable to me, and/or systematically troubleshooting until the problems were discovered and repaired. I never had the option of giving up.)
    The most overlooked component when building or upgrading a PC is the power supply unit (PSU). Some people use their old case and PSU when they upgrade. Some use the PSU that came with their new case. Some people even buy a new PSU. And most inexperienced builders all make the same mistake: The PSU that they’re trying to use is simply inadequate for the job.
    Suppose you’re upgrading to a new motherboard, CPU, ram, and video card, but still using the old case and PSU. It’s most likely that you’re upgrading in order to build a machine that is more powerful, faster, has a more colorful display, can number-crunch more quickly, play the latest games, etc. These gains in performance all have one thing in common: They require more raw power. However, have you thought about where that power comes from?
    Suppose you’re building a new system with a new case and PSU. Has it occurred to you that the company that you bought the case/PSU from might make more money if they skimp on the supply, even if the supply has a large wattage rating? Most bulk power supply manufacturers don’t make good PSU’s. They use older, cheaper technology, and slap on labels that represent the PSU’s peak outputs, and not their continuous output rating. These companies are intentionally misleading you in order to sell you an inferior product. Brands I avoid when building/repairing my friends’ and family’s computers: Allied, Q-Tec, Chieftech, and many others.
    For those of you who bought a power supply separately, did you know that you’re only supposed to run a power supply continuously at 30-70% (with 50% being optimal) of its continuous rating for maximum efficiency (which means less heat to you)? Most inexperienced builders either buy PSU’s that are matched to their equipment’s continuous power usage, or ones that are even less powerful than they need. Why? Because they’re trying to save money.
    I mean, what’s the fun in a power supply? You don’t get any games with it, there’s no more storage, hardly ever any more bells and whistles, etc. A power supply is boring, and it’s supposed to be, because it’s supposed to provide a stable, reliable platform upon which the rest of the equipment can easily access the amount of power it needs, and when it’s needed. In almost EVERY review of powers supplies, the same point is stressed: Better safe than sorry.
    But what does safe vs sorry mean? It can mean that you don’t have to waste money on the wrong PSU in the first place, but it can also mean that you don’t have to replace your expensive ram, CPU, video card, etc. NEEDLESSLY, or because your cheap PSU destroyed them. What? A cheap power supply can wreck your computer? YES IT CAN. A cheap power supply can cause thermal damage, not only from the heat it produces, but also the heat it can create in your components as well. RAM is especially sensitive to heat, and there’s RAM in your CPU, your video cards, and, well, your RAM too. A cheap switching power supply, run at its maximum, or peak, continuously can also destroy components by creating RF (Radio Frequency) signals on your power rails, signals which the components on your peripheral devices were not equipped to handle in the first place.
    So this begs the question, how does one choose the right power supply? I’ll illustrate this using my own PC as the example. This is my setup that I use for video processing:
    K7N2G-ILSR
    Athlon 2500+ Barton @ 2125Mhz
    AMD Retail Heatsink/Fan
    2 - 512MB DDR333 w/Thermaltake Spreaders (slot 1&3)
    MSI TV@nywhere Video Capture
    ATI Radeon 9600
    120GB Maxtor DiamondMax Plus 9 SATA
    30GB Quantum IDE
    TEAC DV-W50E DVD/CD-R/W
    BTC DVD-ROM Drive
    Artec CD-R/W
    Using this Power Supply Calculator link:
    http://www.jscustompcs.com/power_supply/
    I plug in all my equipment values, but some of this can be a little tricky. For example, since I often run the CPU like an XP 3000, I choose the 3000 as my processor; it’s the same chip run at the faster rate. I also choose the ATI Radeon video card, and I select the RAM wattage for 2 sticks of DDR. I also choose every card I have, like my video capture card, but I also select the boxes for the separate cards that correspond to the functions that my ILSR provides as well (and that I use), like sound, USB, Firewire, NIC, etc.  Although I use the onboard SATA controller, I don’t select the SCSI PCI card, because, in truth, I’ve probably made up for it by selecting all the other corresponding devices, including cards that the motherboard replaces. I check the boxes for the fans and drives I use, and I’m done, right?
    Not yet.
    I just remembered that I plan to upgrade soon, so I go back and change the values to reflect my impending changes. I mean, I want to make sure that I have enough power to begin with so that I don’t have to replace the power supply again, right?
    Ok. Done. I look at the bottom and see that it tells me that I need a 468 watt PSU. So a 480 watt supply will do, right? Wrong.
    Remember that, for efficiency, long-life, and less heat, you want your actual power consumption to fall between 30-70% of the PSU’s rating, so add 30% (minimum) to the 468, and you get 468 + (468*.30)= 608 Watts! Holy Cow!
    However, I’d only need a 608-Watt supply if I was using all the devices at once, and I don’t. But, in truth, with video and audio processing, I often get close when I process, burn, and monitor at the same time. (Hardcore gamers also get close a lot, as they blast the sound and push that video to its limits.) So, let’s take off 10% (maximum) of 608, for a total of 541 Watts.
    I need a 550 Watt supply, but not just ANY 550 watt PSU. I need a supply that can give me enough power on the critical 3.3, 5, and 12V rails combined. I also want a supply from a trusted, name-brand manufacturer, so I start hitting the many online reviews. Here are just two from Tom’s Hardware:
    http://www6.tomshardware.com/howto/20030609/index.html
    http://www6.tomshardware.com/howto/20021021/index.html
    Read these in their entirety. I didn’t post them because they’re pretty links.
    In the end, I chose Antec, because they’ve got the reputation, the recommendation, and because the Antec True550 has better specs than the rest of the 550 Watt competition. I also bought it from a reputable company I found on Pricegrabber.com, for the lowest price I could find, $95.00 shipped to my door. (In truth, I wanted two mini-redundant supplies, like the hospitals and military use, but they were too expensive.)
    The result? Not only are the random reboots, crashing, the BSOD, lockups, etc., gone like magic, but I also now have “peace of mind” in that whatever might happen to my equipment in the future, I know almost for certain that the PSU is NOT the problem. I also bought an UPS, because the East Coast Blackout proved to me that even the Antec True550 isn’t going to provide me any power for emergency shutdown if it doesn’t get its power from somewhere.
    Even if your problem doesn’t lie in the PSU completely, it gives you a GREAT platform for troubleshooting further. If you’re not reasonably certain that the supply is the cause, borrow one, or buy one that you can return once you’ve solved the problem. But, above all else, BUY THE RIGHT SUPPLY before you do anything else! Otherwise, you could be plugging and unplugging components, buying and blowing up expensive memory, and causing even further damage, until you give up or die.
    I mean, I assume you built your own system to enjoy “more bang for your buck,” right? What’s the fun of a random reboot in the middle of Unreal Tournament 2003?
    William Hopkins
    Former Staff Sergeant, USAF
    B.A., B.S., with Honors
    The University of California, San Diego
    [email protected]
    P.S. It should be noted that while Enermax, ThermalTake, Zalman, Fortron, and others make great PSU’s, and I compared and considered them, the Antec still won out overall in my critical evaluation, like it did in so may others’ reviews. You’d probably be ok if you went with another reputable manufacturer as listed above, but pick a supply that gives you at least 230 watts on the 3.3 and 5V lines combined, and still meets the 30% criteria as stated above. Remember, if the manufacturers don’t give you maximum combined specs up front, they’re untrustworthy right off the bat. With power supplies, you definitely end up getting what you pay for. Don’t say nobody warned you.
    P.P.S. Update! After recent developments, it looks like Enermax is the leader, but only the latest line of PSU's.

    Ok, as an electrical engineer...I have to step in here! LOL
    First, these amp rating are for 2 +12 rails. That is why you see a protection of around 15-18A on the +12 rail. That means each Rail is allowed up to 18A lets say for the new Enermax 1.2 version like the one I have.
    Now, Lets say 18A for 12V....well as you know the Abit NF7-S uses the 12V for powering the CPU.
    Lets say you have a Barton like me and you want it stable at around 2.4-2.5Ghz. You will have to put lets say around 2V to the cpu to get it stable at that kinda speed, specially if you have high FSB like I do. So 12V * 18Amps = 216W ....well the converter on the NFS-7 is really bad, its loss on the step down convertion is probably around 25% along with the PSU lost cuz its not running at 25oC (another 15%)....you will actually only get around 100-120W for the CPU.
    Now, if you go into Sandra and see how much a Barton eats up at 2.4Ghz you will see its around 110Watts.
    So, if you wanna push more, dont even think about it! Prime Power test fails and your +12 rail will drop as low as 11.60 Volts.
    Now, lets say you got yourself a AMD 64 bit chip and you wanna overclock it....I bet it will need more than 110Watts.
    So, what im saying is, dont buy nothing less than a 500 Watt PSU!
    You really need around 20-22 A on the main +12 along with really really good cooling on the case and PSU so it is running at a 100%.
    http://forums.amdmb.com/showindex.php?s=&threadid=287828
    i found this quite interesting especially the bit re the power loss turning the 12v into 1.6v or what ever cpu needs

  • How do I get the Parameters of a Stored Procedure from my Java Code?

    I want to get the parameters in my Java code. How do I do this with Jdbc?
    In ADO it was: myCmd.Parameters.Refresh();
    Any idea what it is in Jdbc?

    no, what I want is to know what parameters are required by my stored proc. So basically I tell it, "My Stored Proc is name 'SomeName'. What are the parameters I need to fill for this proc?" Then it puts those in for me, and then I fill the values. That's what Cmd.Parameters.Refresh() does in VB/C++. So if I had a proc name "MyProc" with:
    @Something int,
    @Another varchar(25)
    Then if I did cmd.StoredProc = "MyProc" (and told it where to find the DB), and then did cmd.Parameters.Refresh(), the cmd would then have those parameters with null values, so i could do:
    cmd.Parameters(0) = 5
    cmd.Parameters(1) = "hello"
    Any idea how to do that in Java/Jdbc?

  • How to select multiple values from the parameters in BI Publisher report

    How to select multiple values from the parameter drop down in BI Publisher, and how to handle this mulitple values from the report sql...

    Hi kishore,
    I have used all the steps as you mentioned in your previous reply....including checking Mulitple Selection Check Box..
    Iam able to get the results when I am selecting one value..
    and also I am able to handle multiple values the in the query by using IN :Parameter, but seems when we select more than one value from the parameter drop down i think the Bi Publisher is sending the values in concatenated form something ilke
    ex: "'ACCOUNT','HR','SALES'" ,and when trying to display the parameters values in the output, its throwing the error as 'missing right paranthesis' ....on the whole do you have any solution which would handle
    1.Single selection.
    2.Multiple selection.
    3.'ALL' Values.
    4.Separating the concatenated string into individual strings and dispaly them on the output of the report..etc..in case of Mulitple selection.
    Ex:
    Concatenated String from BI Publisher:"'ACCOUNT','HR','SALES'"
    Expected Output on the report:ACCOUNT,HR,SALES
    reply to this would be much appreciated....
    thanks,
    manoj

  • When I try to save a webpage as a bookmark, the options window where I choose the folder where I will save it is disappearing when I try selecting it

    Step 1. I open a web page.
    Step2. I press ctrl+d.
    Step3. I do not see the window where I choose the folder I wish the bookmark to be saved in.
    Step4. I clicked the star button on the right corner of location bar.
    Step5. I see the window now.
    Step 6. When I move the cursor down that window to choose the folder it again disappears.
    Step 7. I randomly click at a spot in the area where the window disappeared.
    Step 8. I realize that it does not go away but stays hidden disappearing.[http://www.youtube.com/watch?v=WV050BObT9I]

    hello bdavis106, please refer to [[Find and manage downloaded files]].

  • Can i choose the resolution of my external display for when the lid is closed when my lid is open

    When I close the lid of my MacBook Pro for an external display apple chooses a resolution that isn't compatible with my display can I choose the resolution when the lid is open in any way of my external display for the mode when the lid is closed?

    Hi there, I had a similar problem and was unable to resolve it.  I spent about an hour on the phone with a very helpful AppleCare rep who was also completely stuck.  It would seem that the only solution is to choose a setting with trial and error while the lid is closed.
    My MacBook ended up getting stuck on a closed-lid reoslution that wasn't supported, so I had to do a screen-share with another device to see what the video card was sending to the external display and change it back that way.

Maybe you are looking for

  • I can no longer use gmail with Firefox since it updated today.

    This morning, Firefox had updates for version 3.6.6 and I did this and now gmail is not working. The page loads and I can see my mail, but I cannot open any of the messages or compose a message and I cannot even see the people on the chat feature (I

  • How to display the Image in PDF report by using iText Report

    Hi Im trying to display the image which is very big one. This is my code Document document=new Document(); PdfWriter.getInstance(document,new FileOutputStream("imagePDF.pdf")); document.open(); Image image = Image.getInstance ("1.bmp"); document.add(

  • I can't set Adobe Reader 9.3.4 as default .pdf

    When I double click .pdf it doesn't open with Adobe Reader (AR). It used to open with AR 8 but wouldn't print from 8. I figured out that it would print from AR 9 and consequently deleted the AR 8 folder. However, now it won't associate .pdf with AR 9

  • Opening balance issue

    Hi experts, We carried forward balances from 2008 to 2009 through T code F.16.We have found alll GL accounts has been carried forward properly except one GL code (which is opening balance uploaded in sap)not carried forwaded properly. We have run F.1

  • EAN/UPC NO. issue...

    Hi SAP Gurus, my client is using the interface to upload master data. In basic data 1 the EAN/UPC field contains UPCu2019s without the leading zero. Example upc= 058912365 shows as 58912365 in basic data 1. I want to know why it is missing leading ze