BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Very interesting ADO behavior

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Ashok
Guest





PostPosted: Thu Sep 18, 2003 8:22 pm    Post subject: Very interesting ADO behavior Reply with quote



In following code, ShowMessage never executes.
If TABLE already exists, I was expecting ShowMessage to popup.

VAR
SQLStmt : String
begin
SQLStmt:=
'CREATE TABLE TB_TEST1' +
'( ' +
'UpdateCount Number(10,0), ' +
'Description Varchar2(50), ' +
'Adddate Date, ' +
'CountIndex Number(5,0)' +
')';
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add(SQLStmt);
try
ADOQuery1.ExecSQL; // "Create table" always returns huge number if you
try to grag the return value

except
ShowMessage('some error');
end;



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.