Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

rows affected

Posted on 2011-03-17
3
Medium Priority
?
386 Views
Last Modified: 2012-05-11
i ran an update on one row, but got 2 lines of results back.. what would the other be for?

(1 row(s) affected)

(1 row(s) affected)
0
Comment
Question by:anushahanna
3 Comments
 
LVL 15

Accepted Solution

by:
gplana earned 1200 total points
ID: 35159901
Probably the updated table has a trigger which makes another update, so there are in fact two updates. This is the reason why sql analizer returns two outputs: one for the original update, and one for the updated made inside the trigger.

Hope it helps.
0
 
LVL 9

Assisted Solution

by:rajeevnandanmishra
rajeevnandanmishra earned 800 total points
ID: 35164114
Hi,

While checking as per the comments of "gplana", Please also check if you have enabled "Cascade Updates".
If that is the case, still you can get such result.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 35165058
thank you.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question