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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which unit is needed to use ALTER TABLE?

Status
Not open for further replies.

marieannie

Programmer
Jan 14, 2004
84
US
Hello everybody!
Does anyone know which unit I have to add to my project
in order to use the ALTER TABLE command??

Thanks for the information
 
If I'm getting your meaning right, ALTER TABLE is an SQL command, and not related to any Delphi specific unit.

It is all about the db engine being able to handle it and the encapsulating objects being able to send it to the engine.

What engine are you using? What behavior are you having now? Any error message?

buho (A).
 
I saw code example in which is no necessary the use of an object.. and I wondered if I can do it that way...
I guess it isn't posible. Thank you! I have a pretty good idea how to use the objects for SQL.

 
offcourse this is possible! (everything is possible in Delphi [spin])

you can create a TADOCommand object in code and use the CommandText property to issue the ALTER TABLE command
Read the help file for more details. I don't have time to create a small code sample (maybe later) at the moment.

Cheers,
Dadddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Without using any object (ie: pure objectless PASCAL)? May be diving into the deeps of the VCL, to see how it connects with the underlaying engine. A (probably very) difficult task, not worth the work IMO.

On the other hand, if your meanining is "not dropping a component in a form/module", see Daddy above.

buho (A).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top