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

How to add more than one sql statement to command object

Status
Not open for further replies.

krishnappan

Programmer
Feb 7, 2008
21
0
0
US
Whant to execute a delete statement before i select in the command object ....

i added the following in the same command object....

delete from temp_table;
select * from my_table;

it says invalid character ...then i tried removing the semicolon ...then it said SQL statement not ended properly ... any pointers will be gr8ly helpful....

please give an example syntax .... or any alternate easy approch ... i want to execute some sql statements before report ...
 
This is a continuation of a previous thread of yours and should have stayed in that thread.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top