| View previous topic :: View next topic |
| Author |
Message |
Carlos Ojea Castro Guest
|
Posted: Fri Feb 13, 2004 8:54 am Post subject: How to make a SQLDataset component |
|
|
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
|
Posted: Fri Sep 24, 2004 7:33 pm Post subject: Re: How to make a SQLDataset component |
|
|
The same problem occur in Mysql. Show "Unable to execute query"
why?
Francisco Vazquez
|
|
| Back to top |
|
 |
FrankV Guest
|
Posted: Fri Sep 24, 2004 8:30 pm Post subject: Re: How to make a SQLDataset component |
|
|
Same problem occurs with mysql when the active property change true show
"Unable to execute query"
why?
Francisco Vazquez
|
|
| Back to top |
|
 |
FrankV Guest
|
Posted: Fri Sep 24, 2004 8:31 pm Post subject: Re: How to make a SQLDataset component |
|
|
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
|
Posted: Tue Sep 28, 2004 3:55 pm Post subject: Re: How to make a SQLDataset component |
|
|
"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 |
|
 |
|