Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exec SQL parameterized statement from TDatabase

Status
Not open for further replies.

WeezL

Programmer
May 9, 2000
2
FR
Hi ! For some reasons, I have no other solutions but to use a TDatase to perform SQL operations on a database. They can be basic SQL commands (selection...) and calls to stored procs. Actually, I am exactly using the example that can be read at page 17-12 in the developper's guide, under title: 'Executing parameterized SQL Statements'. Basically, u use the TDatabase.Execute method, specifying the SQL Statement to perform, and the params needed by that statement. Eveything is OK when i use simple 'hardcoded' SQL statements, but as soon as i try to pass Params, i get an error when trying to execute, saying ' could not find object ', although im certain that the TParams object im passing as a parameter is valid. Im puzzled. If anyone can help me, thx a lot...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top