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 

How to make a SQLDataset component

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.databases
View previous topic :: View next topic  
Author Message
Carlos Ojea Castro
Guest





PostPosted: Fri Feb 13, 2004 8:54 am    Post subject: How to make a SQLDataset component Reply with quote




Hello:

In kylix3 I made a SQLConnection component (called 'SQLConnection1') to
connect to a PostgreSQL database. I started the PostgreSQL server so
Object inspector shows 'Connected: True' on that object.

Then I made a SQLDataSet component (called 'SQLDataset1').
On 'SQLDataset1' I set SQLConnection to 'SQLConnection1', CommandType to
'ctQuery' and CommandText to 'SELECT * FROM pc104' (pc104 is a valid
table name).
But now, when I try to make 'SQLDataset1' Active to 'True', I get this
error message:
Access violation at address 43A92782, accessing address 43B09774

żAny idea?

Thank you.
Regards,
Carlos

Back to top
FrankV
Guest





PostPosted: Fri Sep 24, 2004 7:33 pm    Post subject: Re: How to make a SQLDataset component Reply with quote



The same problem occur in Mysql. Show "Unable to execute query"

why?

Francisco Vazquez

Back to top
FrankV
Guest





PostPosted: Fri Sep 24, 2004 8:30 pm    Post subject: Re: How to make a SQLDataset component Reply with quote



Same problem occurs with mysql when the active property change true show
"Unable to execute query"
why?

Francisco Vazquez

Back to top
FrankV
Guest





PostPosted: Fri Sep 24, 2004 8:31 pm    Post subject: Re: How to make a SQLDataset component Reply with quote

Same problem occurs with mysql when the active property change true show
"Unable to execute query"
why?

Francisco Vazquez

Back to top
John Kebert
Guest





PostPosted: Tue Sep 28, 2004 3:55 pm    Post subject: Re: How to make a SQLDataset component Reply with quote

"FrankV" <fvpavp (AT) yahoo (DOT) com.mx> wrote

Quote:
Same problem occurs with mysql when the active property change true show
"Unable to execute query"
why?

Francisco Vazquez

Just guessing - libmysql.dll? What is the SQL? If you are getting
access violations, usually that means it is being accessed before it
is created. Or freed then accessed. Make sure your datamodule is
created *before* the mainform. Put in showmessage('It got to Number
1'), then showmessage('It got to Number 2') in your code to try to
find out where it happens. You haven't given us much to go on....

HTH,

John

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.databases 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.