Multiple rows affected message for a single insert

Why would this show multiple 1 row affected statements in the messages tab? I tried tracing it, but it only shows a single statement:
create table #ltbl_Temp (a int, b varchar(100))
insert into #ltbl_Temp values (1, 'AAA')
drop table #ltbl_Temp
Proceduces:
(1 row(s) affected)
(1 row(s) affected)
Here is the plan
John M. Couch

In SQL Server, everything is a transaction.
When you enable Actual execution plan, additional row is to represent the execution plan.,ie, 1 row for your actual insert and the next is for actual execution plan.
You may check without actual execution plan, it would show only 1 row(s) affected. In other way, you may check with only Estimated Execution plan, it would return only 1 row(s) affected( here no data returns)
Hope the above is clear.
EDIT:
Eg:
create table #ltbl_Temp (a int, b varchar(100))
insert into #ltbl_Temp values (1, 'AAA'),(1,'BBB')--With actual execution plan(2 row(s) affected)
(1 row(s) affected)--Without actual execution plan(2 row(s) affected)
--Only with estimated plan(1 row(s) affected)drop table #ltbl_Temp

Similar Messages

  • How to show multiple messages for a single exception

    hi
    Please consider this example application created using JDeveloper 11.1.1.3.0
    at http://www.consideringred.com/files/oracle/2010/MultipleMessagesExceptionApp-v0.01.zip
    It has a class extending DCErrorHandlerImpl configured as ErrorHandlerClass in DataBindings.cpx .
    Running the page and entering a value starting with "err" will result in an exception being thrown and multiple messages shown.
    See the screencast at http://screencast.com/t/zOmEOzP4jmQ
    To get multiple messages for a single exception the MyDCErrorHandler class is implemented like
    public class MyDCErrorHandler
      extends DCErrorHandlerImpl
      public MyDCErrorHandler()
        super(true);
      @Override
      public void reportException(DCBindingContainer pDCBindingContainer,
        Exception pException)
        if (pException instanceof JboException)
          Throwable vCause = pException.getCause();
          if (vCause instanceof MyMultiMessageException)
            reportMyMultiMessageException(pDCBindingContainer,
              (MyMultiMessageException)vCause);
            return;
        super.reportException(pDCBindingContainer, pException);
      public void reportMyMultiMessageException(DCBindingContainer pDCBindingContainer,
        MyMultiMessageException pException)
        String vMessage = pException.getMessage();
        reportException(pDCBindingContainer, new Exception(vMessage));
        List<String> vMessages = pException.getMessages();
        for (String vOneMessage : vMessages)
          reportException(pDCBindingContainer, new Exception(vOneMessage));
    }I wonder if calling reportException() multiple times is really the way to go here?
    question:
    - (q1) What would be the preferred use of the DCErrorHandlerImpl API to show multiple messages for a single exception?
    many thanks
    Jan Vervecken

    fyi
    Looks like using MultipleMessagesExceptionApp-v0.01.zip in JDeveloper 11.1.1.2.0 (11.1.1.2.36.55.36) results in a different behaviour compared to when used in JDeveloper 11.1.1.3.0 (11.1.1.3.37.56.60)
    see http://www.consideringred.com/files/oracle/img/2010/MultipleMessages-111130versus111120.png
    When using JDeveloper 11.1.1.2.0 each exception seems to result in two messages where there is only one message (as intended/expected) per exception when using JDeveloper 11.1.1.3.0 .
    (Could be somehow related to the question in forum thread "multiple callbacks to DCErrorHandlerImpl".)
    But, question (q1) remains and is still about JDeveloper 11.1.1.3.0 .
    regards
    Jan

  • How do I add multiple rows in Numbers for iPad?

    how do I add multiple rows in Numbers for iPad?

    Hi James,
    On the iPod I can only insert what is on the clipboard but I can insert however many rows I have there. Is it working differently for you? Benjoon seemed to think that he could not do this in Numbers. He was ruling Numbers out because of it. He doesn't need to do that because of this issue.
    If I was needing to insert multiple blank rows often I might keep a table of blank rows or just some blank rows at the end of the working table that I could copy/paste. This is no different than Numbers on the Mac.
    quinn

  • Merge multiple rows of same ID into Single row

    Hi All,
    I need the requirements of merging multiple rows of same ID as single row.
    My Table Data:
    ID     Language1 Language2 Language3 Language4
    1001 NULL         JAPANESE  NULL          NULL
    1001 SPANISH   NULL          NULL          NULL
    1001 NULL        NULL           NULL         ENGLISH
    1001 NULL        NULL           RUSSIAN    NULL
    Required Output Should be,
    ID     Language1 Language2 Language3 Language4
    1001 SPANISH    JAPANESE  RUSSIAN   ENGLISH
    Please help me to achieve this output.
    Tried grouping but its not working also producing the same result.
    Thanks.
    Live freee....Joy forever................ :)

    Try the below:
    create Table Test_Sample(ID int,Language1 varchar(50), Language2 varchar(50), Language3 varchar(50), Language4 varchar(50))
    Insert into Test_SAmple Values(1001,NULL,'JAPANESE', NULL, NULL),
    (1001,'SPANISH', NULL, NULL, NULL),
    (1001,NULL, NULL, NULL, 'ENGLISH'),
    (1001,NULL, NULL, 'RUSSIAN', NULL)
    Select ID,MAX(Language1),MAX(Language2),MAX(Language3),MAX(Language4)
    From Test_Sample
    Group by ID
    Drop table Test_Sample

  • Want to be able to open tabs in multiple rows, rather than in a single row. I used tab mix plus before, but it says it is not compatible with New tab Homepage. The older version of Firefox allowed this very easily.

    Want to be able to open tabs in multiple rows, rather than in a single row. I used tab mix plus before, but it says it is not compatible with New tab Homepage. The older version of Firefox allowed this very easily.

    Your plugins list shows outdated plugin(s) with known security and stability risks.
    *Java Plug-in 1.5.0_06 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)

  • Multiple Units of Measurements for a single item

    Hi all,
    How do I maintain multiple units of measurements for a single Item/  I have a scenario where purchase orders are being made for sand in Metric Tons, Tons, Kgs and Cubit Feets.  Each measurement is being used at each construction site of the company but the item is single sand.   One more problem is here with the material reconciliation of stock since it is maintained in different units of measurement and conversion from unit to other is problematic.
    Thanks
    YSvee Reddy

    Hi YSvee Reddy ,
    Julie is correct in saying that this feature will be available in version 8.8, currently in Ramp-up.
    Please see the [8.8 landing page |https://websmp203.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000705857&_SCENARIO=01100035870000000183&_ADDINC=011000358700001192682007E&]for a link to the 'What's new' document.
    You can contact your LPE to discuss participation in Ramp-up.
    All the best,
    Kerstin

  • How to process multiple rows of data into a single string

    Hello,
    I am trying to process multiple rows of text from an Oracle database into one field to display on a report as continuous text. Below is sample data. The text field is 55 characters wide so anything longer is broken into multiple rows. I need to recombine it for display.
    line          text
    1             IN THE N.E. QUADRANT OF THE INTERSECTION OF THE FAIRFAX
    2              COUNTY PARKWAY AND THE DULLES AIRPORT ACCESS AND THE T
    3             OLL ROAD AND SOUTH OF SUNSET HILLS ROAD
    I tried creating a formula field but it did not work, below is the code in Visual Basic syntax. I also tried using the Maximum() and UBound() functions without luck. I don't quite understand how to make the UBound() work; it threw a lot of errors.
    Dim i As Number
    Dim strLocDesc As String
    For i = 1 To count({LDS_AR_RL_COMM.ART_LINE_NUM})
        strLocDesc = strLocDesc & {LDS_AR_RL_COMM.ART_COMM_RMK}(i)
    Next i
    formula = strLocDesc
    Any ideas on how to solve this?

    Hello Allison,
    You can try this:
    Create a formula called @StoreText, place it in the details and have the following code in it:
    WhilePrintingRecords;
    Global StringVar Text1;
    Global StringVar TextRest;
    if {field.line} = 1 then
    Text1:= {field.text} else
    if {field.line} >= 2 then
    TextRest := TextRest+" "+{field.text};
    In the Group Footer you can have a formula called @GetStoreText with the following code in it:
    WhilePrintingRecords;
    Global StringVar Text1;
    Global StringVar TextRest;
    Text1+varTextRest;
    See how that works out for you.
    Regards,
    Zack

  • Multiple beans getting created for a single jsf page

    Hi all,
    I am developing UI pages using JSF in 'IBM Websphere studio Application developer.'
    Suddenly I have started facing some weired problem.
    I have one jsp file 'Schedule_Process.jsp' and
    corresponding bean file 'Schedule_Process.java'.
    Everytime I run the jsp page a new bean file gets created with suffixes as 1,2,3...
    So i have 'Schedule_Process1.java', 'Schedule_Process2.java'.....for a single jsp file.
    The jsp file gets mapped to the newly created bean file. The mapping entry automatically comes in faces-config.xml file.
    Thus my bean code is divided into multiple beans.
    Sometimes this code run but sometimes it doesnot.
    To get everthing working i have to remove extra mapping entires from faces-config.xml. Also have to delete all new versions of bean files except the latest one. and then i have to rename the latest file(with number as suffix) to remove the suffix.
    This works sometimes but there no guarantee that it will work.
    I desparately want to know the reason behind this problem.
    Any help on this issue will be greatly appreciated.
    Thanks a lot in advance!!!

    Make sure in the faces-config.xml file you have
    your managed bean set a session.
    <managed-bean-scope>session</managed-bean-scope>
    and assure that you have the follwoing lines of code in the web.xml file
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    Hope this helps

  • Multiple row value coming in a single row(nclob)

    hi ,
    i have a requirement where i have to work on a column on datatype nclob, now here the value of 2 rows coming into a single column. like this:
    select distinct extractvalue(xmltype(details),'/Anything/invoiceNumber') as invoices ,
    actinguserid as user_id ,createdt
    from bchistevent where bucket = 201301
    and upper(type) = 'COM.AVOLENT.PRESENTATION.EVENT.INVOICEDOWNLOADEVENT'
    --and    bchistevent.bucket = to_char (add_months (sysdate, -1),'YYYYMM')
    395452969-000-20130103     1.46388193452398E37     1/8/2013 3:05:42 AM
    300000590-000-20090723     1.46388193452398E37     1/11/2013 8:11:45 AM
    300000590-000-20090723     1.46388193452398E37     1/11/2013 8:12:50 AM
    395453127-000-20130103     1.46388193452398E37     1/14/2013 4:44:26 AM
    *300084670-000-20120906, 300084671-000-20120906*     1.46388193452398E37     1/7/2013 12:45:19 AM
    395452626-000-20130103     1.46388193452398E37     1/8/2013 3:03:57 AM
    300084679-000-20120906     1.46388193452398E37     1/11/2013 8:10:47 AM
    300000728-000-20090731     1.46388193452398E37     1/11/2013 8:19:19 AM
    300084679-000-20120906     1.46388193452398E37     1/14/2013 12:31:48 AM
    300000590-000-20090723     1.46388193452398E37     1/14/2013 4:13:19 AM
    395452718-000-20130103     1.46388193452398E37     1/8/2013 7:10:19 AM
    300084679-000-20120906     1.46388193452398E37     1/23/2013 6:54:11 AM
    300084679-000-20120906     1.46388193452398E37     1/22/2013 3:11:54 AM
    300000590-000-20090723     1.46388193452398E37     1/11/2013 8:14:02 AM
    395453127-000-20130103     1.46388193452398E37     1/14/2013 4:33:12 AM
    300084679-000-20120906     1.46388193452398E37     1/22/2013 3:03:36 AM
    300084679-000-20120906     1.46388193452398E37     1/14/2013 12:34:13 AM
    395452997-000-20130103     1.46388193452398E37     1/7/2013 3:31:38 AM
    395452391-000-20121027     1.46388193452398E37     1/3/2013 4:40:05 AM
    and the value of bold highlighted row is coming in a single row, plzz help how to break this in 2 rows??
    Edited by: user1175303 on Mar 13, 2013 5:43 AM

    user1175303 wrote:
    the column value which is in question is <Anything><invoiceNumber>300084670-000-20120906, 300084671-000-20120906</invoiceNumber></Anything> here i am getting 2 values in a single column and because of this i am unable to get desired output...So you have XML issue but trying to resolve it in Oracle??? Why <invoiceNumber> holds two invoice numbers? Anyway:
    with t as (
               select  distinct extractvalue(xmltype(details),'/Anything/invoiceNumber') as invoices,
                       actinguserid as user_id,
                       createdt
                 from  bchistevent
                 where bucket = 201301
                   and upper(type) = 'COM.AVOLENT.PRESENTATION.EVENT.INVOICEDOWNLOADEVENT'
    select  regexp_substr(invoices,'[^,]+',1,column_value) invoices,
            user_id,
            createdt
      from  t,
            table(
                  cast(
                       multiset(
                                select  level
                                  from  dual
                                  connect by level <= length(regexp_replace(invoices,'[^,]')) + 1
                       as sys.OdciNumberList
    /SY.

  • Best way to loop through multiple rows to search for a count result

    I have a script where I'm trying to find a Rollup row without any children. I have created a SQL statement to do this, but I can only input one point at a time. If the count is greater than 0 then i'm good to go. If the count is 0 then I want to know about it.
    select count (*) from (Select * From ESSBASE_FCS.Ham
    where hier_pt like (Select substr(hier_pt, 1,8)||'%' as hcy_pt
    From ESSBASE_FCS.Ham
    Where Hier_Pt = '412375....')
    And Cctr_Or_Rollup 'Rollup')
    What is the best way to develop a SQL script that searches through all my Hier_pt's and return everything with a count of 0, instead of manually inputing each hier_pt at a time?
    Thanks for any help.

    Hi,
    Please read SQL and PL/SQL FAQ
    Please provide table structure, sample data and expected output.
    Additionally when you put some code please enclose it between two lines starting with {noformat}{noformat}
    i.e.:
    {noformat}{noformat}
    SELECT ...
    {noformat}{noformat}
    I noticed also that you have posted the same question here: {message:id=10678000}
    If you move your question to another forum please mark the previous question as answered.
    Regards.
    Al
    Edited by: Alberto Faenza on Nov 7, 2012 5:03 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Multiple rows on DBA_FEATURE_USAGE_STATISTICS for Advanced Security

    Hello,
    I have a situation where I have two rows on the DBA_FEATURE_USAGE_STATISTICS table for the Advanced Security feature.  Is this normal or should usage always normally be tracked on a single row?
    NAME
    VERSION
    DETECTED_USAGES
    CURRENTLY_USED
    FIRST_USAGE_DATE
    LAST_USAGE_DATE
    LAST_SAMPLE_DATE
    Advanced Security
    10.2.0.1.0
    1
    TRUE
    22-Apr-08
    22-Apr-08
    22-Apr-08
    Advanced Security
    10.2.0.3.0
    30
    FALSE
    29-Apr-08
    18-Nov-08
    10-Jun-13
    and of course I'm not sure how to interpret this from a license management perspective.
    Thanks!

    Your query seems to be incomplete.
    There is a column 'VERSION' in dba_feature_usage_statistics.
    When I query this view, I am on 11.20.3 after upgrading from 11.2.0.1
    I see both version 11.2.0.1 and 11.2.0.3 for several components.
    So I think your query needs to be amended.
    Please note you also should ALWAYS include your four digit version number.
    Sybrand Bakker
    Senior Oracle DBA

  • Currently Unavailable Message for a Single Channel

    Has anyone had this issue with a single channel?  The new FSC HD (584) that just came out last week worked for 1/2 a day then it started showing Currently Unavailable.  I had a technician out a few days later and he checked signal strength, changed all the connections at the splitter on every line and the channel started to show up again.  Two days later it went back to Currently Unavailable.   After 2 hours on the phone, an hour tech visit, an hour on online chat, researching all I could, etc. they have no clue what to do and now I have to wait for a technician to come out again in 7 days!!!!!   Gotta love Verizon!  
    I can't believe that there is no record of another customer having this issue in their tech support databases and someone can tell me something other than unplug the connection and plug it back in.  
    Solved!
    Go to Solution.

    The technician changed out all of the connections into and out of the splitter. We also reconnected everything along with way (at the router, to the TVs and from the wall plates, etc.).   It worked fine for a day or two then went out again on all of the TVs.  Then this morning the channel is appearing again (without doing anything), but it's just a matter of time until it goes out again.   My question is I could understand a connection issue if it were all of the HD channels, but why on just this one (the newest one released about a week ago, doesn't happen on the previously released HD channel BET). 

  • How can I add multiple fill in answers for a single title, or fill in answers with no title

    Time
    Date
    Description
    I need to add a table much like the one above to my form. How can I do this.

    Your best bet might be to use a Formatted Text for "Turnover" on top of your fields and then use caption on top for label positon.
    OR you can have the Formatted text on the same line as your fields too
    Hope this helps
    Gen

  • How can I update multiple rows in table using a single form button and checkboxes

    I have a project where the visitors can select multiple productos and once the click on the PURCHAS button it updates the selected records.

    You have not mentioned the programming language that you are using, but here's a link that could help you if you are using ASP.
    http://csharpdotnetfreak.blogspot.com/2009/05/edit-multiple-records-gridview-checkbox.html
    Also, have a look at this discussion thread
    http://forums.asp.net/t/1470882.aspx

  • Are there any workarounds for multiple PDF files created for a single Word 2011 document?

    I am running...
    Mac OS X Version 10.6.8
    Word for Mac 2011
    Adobe Acrobat X Version 10.1.0
    I am working with 100 plus page Word documents that go back and forth between portrait and landscape layouts. When I attempt to create an Acrobat PDF document (or one using the native Mac PDF function), I end up with 10 to 15 separate PDF documents. One person suggested that I simple stitch them together, which is an inordinate amount of work as compared to how simple it is do on my PC with older versions of Acrobat and Word. However, I have noticed that the margins are way off and the pagination is off sometimes too. So even this workaround is not the answer. I last talked to Microsoft, Apple, and Acrobat tech support about five weeks ago. Each blaming the other two but saying they were working together to solve the problem. My recent searches of forums has not revealed any solutions nor have updates changed anything.
    As I am anticipating the day when my old PC stops working, I am searching for a possible workaround or other solution for this problem.

    Thanks for your reply.
    The tip-off may be this.  In Word 2007 on my pc when I print the document to a printer, Word generates 1 print file for the entire document. If I print to PDF, one print file is generated by Word and Acrobat creates a PDF from this file.
    What I just discovered by accident was that when Word for Mac 2011 prints the same Word document to a printer it creates about 10 different print files.  So instead of a 100 page PDF document I end up with 10 PDF documents of 1 to 30 pages depending where the page orientation shifts in the Word document. If you print to a printer that is not turned on, you can see all of the files stacked up in the printer queue. I suspect that Word for Mac 2011 generates 10 different print files during the PDF creation process and therefore Acrobat logically creates 10 different PDFs.  Unfortunately, there are margin errors and other layout errors in these 10 different PDFs so stitching them together is useless.
    I am beginning to think that the way Word for Mac 2011 prints documents is simply incompatabile to Acrobat or the PDF creator that is native to the Mac OS.
    I just think that this is a problem that Microsoft is going to have to fix.

Maybe you are looking for