Click here to Skip to main content
16,006,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTry and catch but there is debug Pin
Ahmad11-Oct-01 7:45
Ahmad11-Oct-01 7:45 
GeneralRe: Try and catch but there is debug Pin
Joaquín M López Muñoz11-Oct-01 7:58
Joaquín M López Muñoz11-Oct-01 7:58 
GeneralRe: Try and catch but there is debug Pin
Christian Graus11-Oct-01 12:06
protectorChristian Graus11-Oct-01 12:06 
GeneralPerformance Pin
11-Oct-01 6:52
suss11-Oct-01 6:52 
GeneralRe: Performance Pin
Carlos Antollini11-Oct-01 7:17
Carlos Antollini11-Oct-01 7:17 
GeneralRe: Performance Pin
sardinka11-Oct-01 9:18
sardinka11-Oct-01 9:18 
GeneralRe: Performance Pin
Carlos Antollini11-Oct-01 9:34
Carlos Antollini11-Oct-01 9:34 
GeneralRe: Performance Pin
sardinka11-Oct-01 10:11
sardinka11-Oct-01 10:11 
Thank you for answering. I already tryed the cursor(SQL). It takes even more time to run than using my program.
This is my SQL:
DECLARE @num int, @id varchar(10)
declare @row_count int
SET @row_count = 0
DECLARE c1 CURSOR FOR
SELECT distinct num,id FROM table1
OPEN c1
FETCH NEXT FROM c1 INTO @num, @id
WHILE @@FETCH_STATUS = 0
BEGIN
SET @row_count = @row_count + 1
print "row count:" + convert(varchar,@row_count)
if NOT EXISTS (select * from table2 t1
inner join provceff_new t3 on t1.id=t3.id and t1.num=t3.num
inner join provcont_new t4 on t1.id=t4.id and t1.num=t4.num
Where t1.num=@num and t1.id=@id)
begin

PRINT "Deleted id:" + @id + " " + convert(varchar,@num)
delete from table1 where num=@num and id=@id
delete from table2 where num=@num and id=@id
delete from table3 where num=@num and id=@id
delete from table4 where num=@num and id=@id
end
FETCH NEXT FROM c1 INTO @num, @id
END
CLOSE c1
GeneralRe: Performance Pin
Carlos Antollini11-Oct-01 10:32
Carlos Antollini11-Oct-01 10:32 
GeneralRe: Performance Pin
sardinka11-Oct-01 10:43
sardinka11-Oct-01 10:43 
GeneralRe: Performance Pin
Carlos Antollini11-Oct-01 11:08
Carlos Antollini11-Oct-01 11:08 
GeneralRe: Performance Pin
Carlos Antollini11-Oct-01 11:11
Carlos Antollini11-Oct-01 11:11 
GeneralRe: Performance Pin
sardinka12-Oct-01 3:58
sardinka12-Oct-01 3:58 
GeneralRe: Performance Pin
Carlos Antollini11-Oct-01 11:13
Carlos Antollini11-Oct-01 11:13 
GeneralRe: Performance Pin
Bernhard11-Oct-01 19:57
Bernhard11-Oct-01 19:57 
GeneralProblem with (Farsi) language Pin
Ghasrfakhri11-Oct-01 6:41
Ghasrfakhri11-Oct-01 6:41 
GeneralRe: Problem with (Farsi) language Pin
RoyaEslami26-Dec-11 2:33
RoyaEslami26-Dec-11 2:33 
GeneralMessage compiler and event log. Pin
SuperGeek11-Oct-01 6:11
SuperGeek11-Oct-01 6:11 
GeneralRe: Message compiler and event log. Pin
Carlos Antollini11-Oct-01 7:01
Carlos Antollini11-Oct-01 7:01 
GeneralRe: Message compiler and event log. Pin
SuperGeek11-Oct-01 10:26
SuperGeek11-Oct-01 10:26 
GeneralBTW how to I format the code in a post Pin
Bill Wilson11-Oct-01 6:00
Bill Wilson11-Oct-01 6:00 
GeneralRe: BTW how to I format the code in a post Pin
Jon Hulatt11-Oct-01 6:27
Jon Hulatt11-Oct-01 6:27 
GeneralRe: BTW how to I format the code in a post Pin
Bill Wilson11-Oct-01 8:35
Bill Wilson11-Oct-01 8:35 
QuestionHow do I get the system performance Pin
Bill Wilson11-Oct-01 5:55
Bill Wilson11-Oct-01 5:55 
GeneralDebug Info In Release Build Pin
John M. Drescher11-Oct-01 5:41
John M. Drescher11-Oct-01 5:41 

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.