A varray of returning from a function

Hello

I would like to return a set of values of a function as:
select my_function(6) from dual
should return multiple values:
1 2 3 4 5 7 8 9

right now, my function works only by returning a value from the array:
create or replace
FUNCTION sls_forf(
      depassement IN number,position in integer)
    RETURN number
  IS
    type res is varray(9) of number;
    sls res:=res();
    depa number;
  BEGIN
    depa:=depassement*100;
    sls.extend(9);
    CASE
    WHEN depa<60 THEN
      sls(1):=0.13+0.03*(depa-20);
      sls(2):=0.13+0.06*(depa-20);
      sls(3):=0.13+0.075*(depa-20);
      sls(4):=0.27+0.03*(depa-20);
      sls(5):=0.27+0.06*(depa-20);
      sls(6):=0.27+0.075*(depa-20);
      sls(7):=0.34+0.03*(depa-20);
      sls(8):=0.34+0.06*(depa-20);
      sls(9):=0.34+0.075*(depa-20);
    when depa between 60 and 149 then
      sls(5):=2.69+0.08*(depa-60);
    when depa>=150 then
      sls(5):=9.91+0.1*(depa-150);
    END CASE;
    
    RETURN sls(position);
    END sls_forf;
It is possible.
Ideally, it would be cool to be able to take the function itself in the form of table as my_funtion() gives me the o set while values than my_function (3) don't give me the 3rd value...

Something like that?

SQL> select rtrim(
  2           extract(
  3             xmlagg(xmlelement("a",level||'='||nvl(to_char(sls_forf(0.7,level)),'null')||', '))
  4             ,'//text()'),' ,') myvalues
  5  from dual
  6  connect by level <=9;

MYVALUES
----------------------------------------------------------------------------------------------------
1=null, 2=null, 3=null, 4=null, 5=3.49, 6=null, 7=null, 8=null, 9=null

Max
http://oracleitalia.WordPress.com

Tags: Database

Similar Questions

  • How can I get multiple results returned from a function

    IDBASKET IDSTAGE DTSTAGE
    ---------- ---------- ---------
    3 1 24 JANUARY 03
    3 5 25 JANUARY 03
    4 1 13 FEBRUARY 03
    4 5 13 FEBRUARY 03
    5 3 21 FEBRUARY 03


    I have entry is a unique number of the IDBASKET in this table and this feature works very well that if she has an IDSTAGE by idbasket. (idbasket #5)
    But how do I return a result for an IDBASKET when there several IDSTAGE? (idbasket #3 & 4)
    Thank you very much
    CARPET


    SQL > CREATE or REPLACE FUNCTION status_desc_sf
    2 (NUMBER Code_P)
    3 RETURN VARCHAR2
    4 EAST
    5 lv_output_txt VARCHAR2 (30);
    6 BEGIN
    7. If Code_P = 1 THEN lv_output_txt: = "Command" submitted
    8 ELSIF Code_P = 2 THEN lv_output_txt: = "Accepted, sent to the navigation";
    9 ELSIF Code_P = 3 THEN lv_output_txt: = 'out of stock ';
    10 ELSIF Code_P = 4 THEN lv_output_txt: = "Cancelled";
    11 ELSIF Code_P = 5 THEN lv_output_txt: = "shipped";
    12 lv_output_txt ELSE: not = 'no information ';
    13 END IF;
    14 lv_output_txt of RETURN;
    15 END;
    16.

    I think that your function works as expected, not necessary as you like it is running.
    See the example:

    SQL> create table t11(c1 int, c2 int)
      2  /
    
    Table created.
    
    SQL> insert into t11(c1,c2) values(1,1);
    
    1 row created.
    
    SQL> insert into t11(c1,c2) values(1,2);
    
    1 row created.
    
    SQL> insert into t11(c1,c2) values(2,2);
    
    1 row created.
    
    SQL> create or replace function func2(p_code number)
      2  return varchar2
      3  is
      4  v_output varchar2(64);
      5  begin
      6  if p_code = 1 then
      7     v_output := 'Submitted';
      8  elsif p_code = 2 then
      9     v_output := 'Accepted';
     10  end if;
     11  return v_output;
     12  end func2;
     13  /
    
    Function created.
    
    SQL> /
    
            C1 test
    ---------- ------------------------------
             1 Submitted
             1 Accepted
             2 Accepted
    

    If you have run the function in a manner similar to mine, it will work for all ranks. Your design of the table shows that keep you track of each State of your order, so you have more than one State of each basket. If you want to view only the last State of each basket, please take a look at this example:

    SQL> alter table t11 add c3 date
      2  /
    
    Table altered.
    
    SQL> update t11 set c3 = sysdate - 1 where c1 = 1 and c2 = 1
      2  /
    
    1 row updated.
    
    SQL> update t11 set c3 = sysdate  where c1 = 1 and c2 = 2
      2  /
    
    1 row updated.
    
    SQL> update t11 set c3 = sysdate  where c1 = 2
      2  /
    
    1 row updated.
    
    SQL> select * from t11
      2  /
    
            C1         C2 C3
    ---------- ---------- ---------
             1          1 15-JUN-09
             1          2 16-JUN-09
             2          2 16-JUN-09
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  select t11.c1, func2(t11.c2) "test"
      2  from t11, (select c1, max(c3) c3 from t11 group by c1) a
      3* where t11.c1 = a.c1 and t11.c3 = a.c3
    SQL> /
    
            C1 test
    ---------- ------------------------------
             1 Accepted
             2 Accepted
    

    With greetings
    Krystian Zieja

  • multiple number of returning from a function

    I am very new. I need to have a function that you need to return values for a column in a table that can be possiblely the number of tuples in the table. Something like that

    create to replace func (_id number) as return?

    Start
    Select max (phone) in the max_phone of the table where table.id = _id;

    Select the < somelist > phone table where phone = max_phone;

    return < somelist >
    end;

    Any help would be great, thanks

    Hello

    Welcome to OTN

    Create OR Replace Function Get_Phone(pi_id Number) Return Sys_Refcursor Is
       vs_cursor Sys_Refcursor;
    Begin
       Open vs_Cursor For
          SELECT phone
            FROM table_x
           WHERE phone = (SELECT Max(phone)
                            FROM table_x
                           WHERE table_x.id = pi_id);
    
       Return vs_Cursor;
    End;
    

    Kind regards

    Christian Balz

  • Case string returned from the function

    Is it possible to run cases return the string somehow?

    For example:


    BOX WHEN 1.2.2011 > CURRENT_DATE THEN any OTHER 'OFF' END 'ON '.


    .. If I do like above, I get the error message: ORA-00932

    -case when date'' 2011-02-01 > timestampadd(sql_tsi_day,0,current_date) then 'works' end 'off' else

    the above worked for me

    M.

  • RETURN type of function table

    Hello

    I read conflicting information about the return type that has a table function must or may use.

    First, I am a student of a book that says:

    Function in pipeline returns the data types:

    The main constraint for the pipeline functions, it is the return type must be a collection type autonomous which can be used in SQL - i.e. a VARRAY or table nested.

    and then in the next sentence...

    More precisely a pipeline function can return the following:

    A stand-alone nested table or VARRAY, defined at the schema level.

    A nested table or VARRAY that has been declared in a package type.

    This seems to go against the first quoted sentence.

    Now, before reading the above text I had done just my own test to see if a packed type would work because I thought I had read somewhere that it would not, and he does not (the test code and this output is at the end of this question). When I arrived in the text above, after my test, so I was naturally confused.

    So, I'm going to PL/SQL reference that says:

    RETURN data type

    The data type of the value returned by a function table in pipeline must be a type collection defined either at the level of schema or within a package (therefore, it cannot be a type of associative array).

    I tried to call a function that returns a collection of VARRAY type packaged in both SQL and PL/SQL (of course below is SQL all in any case) and no work.

    Now I'm wondering what is a TABLE function must use a schema type and a function table in pipeline can use a packaged type?  I see that I created and called a function table but examples of Oracle see the creation and use of a function table in pipeline.

    Edit: I should add that I read the following sentence in the SF book on p609 in * table functions: "this type of nested table must be defined as an element of level diagram, because the SQL engine must be able to resolve a reference to a collection of this kind."

    So that it begins to resemble table functions should return a schema type and pipelined table functions, perhaps because that they don't in fact return a collection, rather they return (RowSource) content, can use the schema types or types of packages. Is this correct?

    Can someone clarify this for me please?

    Thank you in advance,

    J

    CREATE OR REPLACE PACKAGE PKGP28M

    VAT-type is varray (5) number;

    END;

    /

    DISPLAY ERRORS

    create or replace type VAT is varray (5) number;

    /

    display errors

    create or replace function tabfunc1 return pkgp28m.vat as

    numtab pkgp28m.vat:=pkgp28m.vat();

    Start

    numtab.extend (5);

    because loop me in 1.5

    numtab (i): = trunc (dbms_random. Value (1.5));

    end loop;

    Return numtab;

    end;

    /

    display errors

    create or replace function tabfunc2 as return VAT

    numtab vat:=vat().

    Start

    numtab.extend (5);

    because loop me in 1.5

    numtab (i): = trunc (dbms_random. Value (1.5));

    end loop;

    Return numtab;

    end;

    /

    display errors

    exec dbms_output.put_line (' call tabfunc1 (returns the packaged type) :');)

    Select * from table (tabfunc1)

    /

    exec dbms_output.put_line (' call tabfunc2 (returns the type of schema) :');)

    Select * from table (tabfunc2)

    /

    declare

    RC sys_refcursor;

    number of v;

    Start

    dbms_output.put_line (' in anonymous block1 - open rc to select in the table (tabfunc1) (returns the packaged type) :');)

    Open rc to select table column_value (tabfunc1);

    loop

    extract the rc in v;

    When the output rc % notfound;

    dbms_output.put_line (' > ' | to_char (v));

    end loop;

    close the rc;

    end;

    /

    declare

    RC sys_refcursor;

    number of v;

    Start

    dbms_output.put_line (' in anonymous block2 - open rc to select in the table (tabfunc2) (returns the type of schema) :');)

    Open rc to select table column_value (tabfunc2);

    loop

    extract the rc in v;

    When the output rc % notfound;

    dbms_output.put_line (' > ' | to_char (v));

    end loop;

    close the rc;

    end;

    /

    Scott@ORCL > @C:\Users\J\Documents\SQL\test29.sql

    Package created.

    No errors.

    Type of creation.

    No errors.

    The function is created.

    No errors.

    The function is created.

    No errors.

    the call of tabfunc1 (returns the packaged type):

    PL/SQL procedure successfully completed.

    Select * from table (tabfunc1)

    *

    ERROR on line 1:

    ORA-00902: invalid data type

    the call of tabfunc2 (returns the type of schema):

    PL/SQL procedure successfully completed.

    COLUMN_VALUE

    ------------

    1

    4

    1

    1

    3

    In anonymous block1 - open rc to select in the table (tabfunc1) (returns the packaged type):

    declare

    *

    ERROR on line 1:

    ORA-00902: invalid data type

    ORA-06512: at line 6

    In anonymous block2 - open rc to select in the table (tabfunc2) (returns the type of schema):

    > 1

    > 2

    > 4

    > 2

    > 3

    PL/SQL procedure successfully completed.

    Post edited by: Jason_942375

    But the compilation of the PIPELINED WILL CREATE the schematic function types automatically. And the TABLE function, applied to the PIPELINED function, use these types of hidden patterns.

  • REF CURSOR as a return of a function in SQL developer

    Hi team,

    I have a function which returns a Ref from a function slider while getting an entry number. But once I have create an implementation of single test on it with a valid entry that he throws error like below and have failed. My SQL developer version is 4.0.2.15.21 and it turns on a Linux OS (GNU/Linux 3.10.0 - 123.6.3.el7.x86_64). Here is the error I get.

    Cannot be converted to NUMBER <oracle.jdbc.driver.OracleResultSetImpl@5925237>.

    oracle.dbtools.raptor.datatypes.oracle.sql.NUMBER.customUnscaledInternalValue(NUMBER.java:93)

    oracle.dbtools.raptor.datatypes.oracle.sql.NumericDatum.customInternalValue(NumericDatum.java:37)

    oracle.dbtools.raptor.datatypes.impl.DataTypeImpl.customInternalValueFilter(DataTypeImpl.java:411)

    oracle.dbtools.raptor.datatypes.impl.DataTypeImpl.getInternalValue(DataTypeImpl.java:399)

    oracle.dbtools.raptor.datatypes.impl.DataValueImpl. < init > (DataValueImpl.java:55)

    oracle.dbtools.raptor.datatypes.impl.DataTypeImpl.customDataValue(DataTypeImpl.java:196)

    oracle.dbtools.raptor.datatypes.impl.DataTypeImpl.getDataValue(DataTypeImpl.java:178)

    Oracle.DBTools.unit_test. Runner.UtRunnerImplIterator$ UtRunnerImplObject.getDynamicValueByName (UtRunnerImplIterator.Java:324)

    Oracle.DBTools.unit_test. Runner.UtRunnerImplIterator$ UtRunnerImplObject.mapDynamicValueByName (UtRunnerImplIterator.Java:301)

    Oracle.DBTools.unit_test. Runner.UtRunnerImplIterator$ UT...

    Please help me out here.

    Please do not post double fillet.

    Mark this thread ANSWER and continue to use your other thread.

    Function taking as input ref cursor but throwing error exit

  • The value returned by the function to load is not of type digital errors after migration to Coldfusion 11

    I'm currently testing our website with CF11. He is currently working with CF8 however after the migration to a new server running CF11 I met the following error.

    The value returned by the function of load is not numeric.

    The error occurred in

    D:/applications/CFusion/CustomTags/NEC/COM/objects/address.cfc: line 263
    Called from D:/apps/CFusion/CustomTags/NEC/com/objects/contact. CFC: line 331

    Called from D:/applications/CFusion/CustomTags/NEC/COM/objects/user.cfc: line 510

    Called from D:/applications/CFusion/CustomTags/NEC/COM/objects/user.cfc: line 1675

    Called from D:/website/NECPhase2/action. Validate.cfm: line 54

    261: < cfif isNumeric (get.idCountry) >

    262: < cfset rc = this.objCountry.setID (get.idCountry) >

    263: < cfset rc = this.objCountry.load () >

    264: < / cfif >

    265: < cfset this.sPostcode = get.sPostcode >

    Were there any changes between CF8 and CF11 which can cause this error?

    Does anyone have any ideas?

    The problem is in the charge function.  There is a real return at the end of the function.  The returntype of the function is set to digital.  True is not digital, it will trigger an error.

  • From a function table: invalid data type error

    Hello

    I'm a ORA-00902: invalid data type error when I try to call the function from a select statement below. Here, I am leaving an array from a function.
    create or replace package pkg10
    as
    
    type tabletype1 is table of table1%rowtype
    index by binary_integer;
    
    function func1 return tabletype1;
    
    end pkg10;
    create or replace package body pkg10
    as
    
    function func1 return tabletype1 
    is
        v_tab1 tabletype1;
        idx integer;
    begin 
    
        idx := 1;
        
        for i in (select * from table1)
        loop
            v_tab1(idx).name1 := i.name1;
            v_tab1(idx).key := i.key;
            idx := idx+1;
            
        end loop;
    
    return v_tab1; 
    
    end func1; 
    
    end pkg10;
    select * from table(pkg10.func1);
    Please point out to me where I'm wrong.

    Thank you

    Sathya Vamsi says:
    Hello

    I'm a ORA-00902: invalid data type error when I try to call the function from a select statement below. Here, I am leaving an array from a function.

    create or replace package pkg10
    as
    
    type tabletype1 is table of table1%rowtype
    index by binary_integer;
    
    function func1 return tabletype1;
    
    end pkg10;
    
    create or replace package body pkg10
    as
    
    function func1 return tabletype1
    is
    v_tab1 tabletype1;
    idx integer;
    begin 
    
    idx := 1;
    
    for i in (select * from table1)
    loop
    v_tab1(idx).name1 := i.name1;
    v_tab1(idx).key := i.key;
    idx := idx+1;
    
    end loop;
    
    return v_tab1; 
    
    end func1; 
    
    end pkg10;
    
    select * from table(pkg10.func1);
    

    Please point out to me where I'm wrong.

    Thank you

    you try to use a data type of PL/SQL as part of an SQL statement. is NOT authorized.

  • catch the collection returned by the function in a SQL statement

    I have a select like query: (I need all the values returned by the function in the select list)

    Select t1.col1, t2.col2, (by selecting t.a, t.b., t.c in fn (t2.col3) t)
    Of
    T1, t2
    where t1.col1 = t2.col2;



    My function is like:

    FN (T2.col3) returns an array in format of the object



    Here, I was able to select only one value from the table returned by the funcation both. If I select all of the values as above, she gave too much error vales.
    Please someone help me in this

    user13044793 wrote:
    I have a select like query: (I need all the values returned by the function in the select list)

    Select t1.col1, t2.col2, (by selecting t.a, t.b., t.c in fn (t2.col3) t)
    Of
    T1, t2
    where t1.col1 = t2.col2;

    No specific reason for this? It adds additional complexity to the projection of SQL, and there are additional costs of failover for the motor of PL/SQL (per line) of context. Overall - not your typical approach and one that should have sound justification.

    With regard to the basic method - the SQL multiset() function should be used to create a collection. Here is an example of the approach:

    SQL> create or replace type TFoo as object(
      2          id      number,
      3          bar     varchar2(5)
      4  );
      5  /
    
    Type created.
    
    SQL>
    SQL> create or replace type TFooSet as table of TFoo;
      2  /
    
    Type created.
    
    SQL>
    SQL> create or replace function GetSomeFoo( n number ) return TFooSet is
      2          foo     TFooSet;
      3  begin
      4          foo := new TFooSet();
      5          foo.Extend( 5 );
      6
      7          for i in 1..5
      8          loop
      9                  foo(i) := new TFoo( n+i-1, to_char(i-1,'0000') );
     10          end loop;
     11
     12          return( foo );
     13  end;
     14  /
    
    Function created.
    
    SQL>
    SQL> select
      2          object_id,
      3          object_name,
      4          cast(
      5                  multiset( select * from table(GetSomeFoo(object_id)) ) as TFooSet
      6          )       as FOO
      7  from       all_objects
      8  where      owner = 'SYS'
      9  and        rownum <= 5;
    
     OBJECT_ID OBJECT_NAME                    FOO(ID, BAR)
    ---------- ------------------------------ --------------------------------------------------
         27538 /1000e8d1_LinkedHashMapValueIt TFOOSET(TFOO(27538, ' 0000'), TFOO(27539, ' 0001')
                                              , TFOO(27540, ' 0002'), TFOO(27541, ' 0003'), TFOO
                                              (27542, ' 0004'))
    
         28544 /1005bd30_LnkdConstant         TFOOSET(TFOO(28544, ' 0000'), TFOO(28545, ' 0001')
                                              , TFOO(28546, ' 0002'), TFOO(28547, ' 0003'), TFOO
                                              (28548, ' 0004'))
    
         11718 /10076b23_OraCustomDatumClosur TFOOSET(TFOO(11718, ' 0000'), TFOO(11719, ' 0001')
                                              , TFOO(11720, ' 0002'), TFOO(11721, ' 0003'), TFOO
                                              (11722, ' 0004'))
    
         30094 /100c1606_StandardMidiFileRead TFOOSET(TFOO(30094, ' 0000'), TFOO(30095, ' 0001')
                                              , TFOO(30096, ' 0002'), TFOO(30097, ' 0003'), TFOO
                                              (30098, ' 0004'))
    
        684122 /1023e902_OraCharsetUTFE       TFOOSET(TFOO(684122, ' 0000'), TFOO(684123, ' 0001
                                              '), TFOO(684124, ' 0002'), TFOO(684125, ' 0003'),
                                              TFOO(684126, ' 0004'))
    
    SQL>
    SQL> with dataset as(
      2          select
      3                  object_id,
      4                  object_name,
      5                  cast(
      6                          multiset( select * from table(GetSomeFoo(object_id)) ) as TFooSet
      7                  )                as FOO
      8          from    all_objects
      9          where   owner = 'SYS'
     10          and     rownum <= 5
     11  )
     12  select
     13          d.object_id,
     14          d.object_name,
     15          f.id,
     16          f.bar
     17  from   dataset d,
     18          table(d.foo) f
     19  /
    
     OBJECT_ID OBJECT_NAME                            ID BAR
    ---------- ------------------------------ ---------- ---------------
           217 DUAL                                  217  0000
           217 DUAL                                  218  0001
           217 DUAL                                  219  0002
           217 DUAL                                  220  0003
           217 DUAL                                  221  0004
           268 SYSTEM_PRIVILEGE_MAP                  268  0000
           268 SYSTEM_PRIVILEGE_MAP                  269  0001
           268 SYSTEM_PRIVILEGE_MAP                  270  0002
           268 SYSTEM_PRIVILEGE_MAP                  271  0003
           268 SYSTEM_PRIVILEGE_MAP                  272  0004
           271 TABLE_PRIVILEGE_MAP                   271  0000
           271 TABLE_PRIVILEGE_MAP                   272  0001
           271 TABLE_PRIVILEGE_MAP                   273  0002
           271 TABLE_PRIVILEGE_MAP                   274  0003
           271 TABLE_PRIVILEGE_MAP                   275  0004
           274 STMT_AUDIT_OPTION_MAP                 274  0000
           274 STMT_AUDIT_OPTION_MAP                 275  0001
           274 STMT_AUDIT_OPTION_MAP                 276  0002
           274 STMT_AUDIT_OPTION_MAP                 277  0003
           274 STMT_AUDIT_OPTION_MAP                 278  0004
           815 RE$NV_LIST                            815  0000
           815 RE$NV_LIST                            816  0001
           815 RE$NV_LIST                            817  0002
           815 RE$NV_LIST                            818  0003
           815 RE$NV_LIST                            819  0004
    
    25 rows selected.
    
    SQL>
    
  • When I return from the page of google search for a link then button does not return return

    When I return from the page of google search for a link, then button does not return back. Instead, the same page refills. I need to go back click back button twice or even more. How to fix? I cheked it it another browser and there is no such behavior. It seems completele Firefox problem.

    the problem was resolved after remooving extenshion «user agent overrider»

  • Satellite A30: System busy after returning from standby

    My abrupt A30 Satellite developed a problem when returning from standby mode. The system busy "Hourglass" is constantly and will not die. I have reploaded the power management utility since all options in 'Properties of power Option' are grayed out except for the "Power Meter" tab. It did make a difference.

    This problem appears at the beginning?
    Maybe the operating system has been installed there several times and now the registry entries are corrupted.
    This is why the system busy hourglass may appear.

    I m not 100% sure that this will help, but maybe you need to reinstall the whole OS
    On the new OS installed should all work a lot faster

  • When I reboot after installation of service pack 2, the message comes out and says that updates are not configured correctly, returning from changes

    When I reboot after installation of service pack 2 on a computer laptop with Windows Vista Home Premium 32-bit Dell XPS M1530, the message comes out and says that updates are not configured correctly, returning from changes. Do not turn off your computer. I installed update readiness tool, but it does still every time. I tried to disable the antivirus software prior to installation.

    Hello
     
     
     
    1. how you try to install Service Pack 2?
    2. are you able to boot to the desktop?
     
     
    Method:
    Step 1: If you are able to start the computer in normal mode, then try a clean boot.

    To help resolve the error and other messages, you can start Windows Vista or Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135
    Please note: after troubleshooting, start the computer in normal mode.

     
    Step 2: Try to install Service Pack 2 manually.
     
    How to obtain the latest Windows Vista service pack

     
     
    If you are unable to start the computer, then you can follow this link to start the computer in safe mode.
    Start your computer in safe mode
    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode
     
     
     
     
    If you are unable to install Service pack 2, you can consult this article.
    Error: Failed to setup of the Windows updates. Restoration of the changes. Do not turn off your computer when you try to install Windows updates
    http://support.Microsoft.com/kb/949358
    Please note: method 2 refers about upgrade on site.  Perform a repair installation/place will not damage files and applications that are currently installed on your computer.   However, I suggest you to back up all important data on the computer before you perform the upgrade on the spot.
     
     
     
     
     
     
     
  • Not able to install updates to get the message: 'updates were not able to configure correctly, returning from changes'...

    Original title: I have Vista with Service Pack 2, but were unable to come down and configure updates since 07/12/11. Need help, thank you.

    Do not get the error codes. Just when I reboot, I get the message "updates were not able to configure correctly, returning from the changes".

    Hello

     
    You are able to start in safe mode, then you can perform the clean boot in safe mode and then try to boot into normal mode.
    Put your boot system helps determine if third-party applications or startup items are causing the problem.
     
    See the following article in the Microsoft KB for more information on how to solve a problem by performing a clean boot in Windows Vista or Windows 7:
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.
    If you are able to boot to the desktop after you perform a clean boot Windows check updates history of inforamtion on the updates failed.
    Reference:
     
     
     
     
  • Get updates windows default error configuration. returning from changes in Vista

    Hello

    I get this message "failed to Setup updates windows. returning from changes. do not turn off computer ' on my computer laptop compaq presario with windows vista.
    I have a problem it works and stop. Sometimes it is just on this slide. they gave me some recovery disks too. Help, please

    Thank you

    SK

    Hi henry ate,

    1. did you last changes made on your computer before the show?

    Follow the following troubleshooting methods:

    Method: 1

    Configure the computer to clean boot and check how it works.

    To configure the computer clean boot, follow the steps in the below link:

    How to perform a clean boot

    Note: After checking in the clean boot, follow step: 7 article to reset your computer to normal startup.

    Method: 2

    Perform the troubleshooting steps form the following links.

    The problems with the installation of Vista updates

    You cannot install some programs or updates

    Method: 3

    Follow the form of measures, the following link to install windows updates in Windows Vista.

    Install the Windows Vista updates

  • Windows Vista: updates are not configured correctly, returning from changes

    my computer may not be updated, whenever I turn on or restart my computer, the message "Configuring updates stage 3 of 3 0% Please wait, don't turn off your computer" comes but after awhile, it says 'updates are not configured correctly, returning from changes' it keeps past, I did everything I could , but nothing happened. What should I do?

    So far there are problems or there are many who have this problem?

    Have you tried to disable temporarily running anti-virus software?

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/default.aspx/KB/929135

    950093 how to use the System Configuration utility to resolve configuration errors in Windows Vista
    http://support.Microsoft.com/default.aspx?scid=KB; EN-US; 950093

    How to reset the Windows Update components?
    http://support.Microsoft.com/kb/971058/#appliesTo

    Troubleshooting in Win 7 vs KB971058 for Vista
    http://social.technet.Microsoft.com/forums/en/w7itproappcompat/thread/e1f0a807-E132-4FDC-ABF8-5bad87b64204

    The system update tool

    Description of the preparation tool system update for Windows Vista for Windows Server 2008, for Windows 7 and for Windows Server 2008 R2
    http://support.Microsoft.com/kb/947821

Maybe you are looking for