Solved

rows affected

Posted on 2011-03-17
3
383 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Accepted Solution

by:
gplana earned 300 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 200 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

617 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