Advertisement

05.13.2008 at 09:09AM PDT, ID: 23398376
[x]
Attachment Details

Delete table in SQL Server 2000 question

Asked by 7of9 in MS SQL Server

In SQL server- Query Analyzer  when you do a delete from table sql command in SQL you get
ie. (25 rows(s) affected). which is the norm. But for a specific table that I perfom a delete from table sql command I get something different. For example say the table has 3 records that I need to remove, so when I perform the delete from table where x=3 sql command it displayes the following:
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)

(3 rows(s) affected)

 It looks like it performs an extra transaction for each record I need to remove. it even takes more time to remove, yes the table has foreign key restrictions. I never seen this happen
when I try the delete command. Can someone please explan, is this a special kind of table?

Thanks.

Start Free Trial
[+][-]05.13.2008 at 09:30AM PDT, ID: 21556710

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 09:52AM PDT, ID: 21556937

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Sign Up Now!
Solution Provided By: MohammedU
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05.13.2008 at 11:32AM PDT, ID: 21557876

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628