Click here to Skip to main content
15,903,012 members
Home / Discussions / Database
   

Database

 
GeneralRe: VB6 Pin
ChandraRam8-Aug-07 1:40
ChandraRam8-Aug-07 1:40 
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 
If exists is a pretty slow approach. If you really wanted to do a select statement first you should do something like this:
if (select count(cID) from table2 where cID = @CID) > 0
begin
  delete from table1 where cID = @CID
end

You probably don't want to do blind deletes since you may incur some locks that you don't really need if the row isn't there.

Hope that helps.
Ben
GeneralRe: deletion from a master table Pin
Mike Dimmick8-Aug-07 4:38
Mike Dimmick8-Aug-07 4:38 
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 

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.