Click here to Skip to main content
15,919,774 members
Home / Discussions / Database
   

Database

 
GeneralRe: VB6 Pin
Pete O'Hanlon8-Aug-07 2:39
mvePete O'Hanlon8-Aug-07 2:39 
GeneralRe: VB6 Pin
ChandraRam8-Aug-07 2:43
ChandraRam8-Aug-07 2:43 
GeneralRe: VB6 Pin
Colin Angus Mackay8-Aug-07 3:45
Colin Angus Mackay8-Aug-07 3:45 
GeneralRe: VB6 Pin
ChandraRam8-Aug-07 3:55
ChandraRam8-Aug-07 3:55 
AnswerRe: VB6 Pin
Nouman Bhatti8-Aug-07 20:05
Nouman Bhatti8-Aug-07 20:05 
Questiondeletion from a master table Pin
samerh7-Aug-07 21:30
samerh7-Aug-07 21:30 
AnswerRe: deletion from a master table Pin
kubben8-Aug-07 2:36
kubben8-Aug-07 2:36 
GeneralRe: deletion from a master table Pin
Mike Dimmick8-Aug-07 4:38
Mike Dimmick8-Aug-07 4:38 
I don't know where you got that idea. EXISTS internally does a TOP 1, stopping as soon as it finds a row. Your approach will require SQL Server to continue after finding a row, to count all the matching rows (this assumes cID does not have a UNIQUE index on it). EXISTS is generally the better solution.

SQL Server only exclusively locks rows that will be changed, initially. The exception is if you're using the SERIALIZABLE transaction isolation level, in which case key-range locks will be taken to prevent new rows being inserted. If a large number of rows are affected, and SQL Server is running low on memory, it may decide to escalate to page locks or even table locks, because the lock object itself requires a certain amount of memory (one page lock obviously takes much less memory than 50 row locks). A DELETE operation that doesn't find any matching rows won't take any locks in READ COMMITTED or REPEATABLE READ isolation levels.

Stability. What an interesting concept. -- Chris Maunder

GeneralRe: deletion from a master table Pin
kubben8-Aug-07 4:47
kubben8-Aug-07 4:47 
AnswerSenthil's Reply for deletion from a master table Pin
Senthil S8-Aug-07 3:07
Senthil S8-Aug-07 3:07 
Questionconnect oracle without oracle client Pin
absprogrammer7-Aug-07 20:01
absprogrammer7-Aug-07 20:01 
AnswerRe: connect oracle without oracle client Pin
Dave Kreskowiak9-Aug-07 10:10
mveDave Kreskowiak9-Aug-07 10:10 
Questionerror invalid object dbo.split Pin
hepsy.i7-Aug-07 19:55
hepsy.i7-Aug-07 19:55 
AnswerRe: error invalid object dbo.split Pin
Pete O'Hanlon7-Aug-07 22:15
mvePete O'Hanlon7-Aug-07 22:15 
GeneralRe: error invalid object dbo.split Pin
hepsy.i7-Aug-07 22:28
hepsy.i7-Aug-07 22:28 
QuestionTyped vs ubtyped datasets Pin
seemamltn7-Aug-07 19:26
seemamltn7-Aug-07 19:26 
AnswerRe: Typed vs ubtyped datasets Pin
Nouman Bhatti7-Aug-07 19:36
Nouman Bhatti7-Aug-07 19:36 
QuestionUpdate command..., Pin
Member 38798817-Aug-07 18:33
Member 38798817-Aug-07 18:33 
AnswerRe: Update command..., Pin
HemMagesh7-Aug-07 20:10
HemMagesh7-Aug-07 20:10 
GeneralRe: Update command..., Pin
Blue_Boy8-Aug-07 0:38
Blue_Boy8-Aug-07 0:38 
QuestionCrossTab Pin
Amit Kumar G7-Aug-07 15:28
Amit Kumar G7-Aug-07 15:28 
AnswerRe: CrossTab Pin
Pete O'Hanlon7-Aug-07 22:09
mvePete O'Hanlon7-Aug-07 22:09 
GeneralRe: CrossTab Pin
Amit Kumar G8-Aug-07 2:32
Amit Kumar G8-Aug-07 2:32 
AnswerRe: CrossTab Pin
fasih19818-Aug-07 3:00
fasih19818-Aug-07 3:00 
GeneralRe: CrossTab Pin
Amit Kumar G8-Aug-07 5:12
Amit Kumar G8-Aug-07 5:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.