Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Truncate DataBase with comands SQL.

Former Member
0 Likes
1,345

I need delete data of a Z table using SQL commands in SAP, ex.

exec sql.

Truncate table ZTABLE05.

endexe.

But, When I use this command displeing a dump 'DBIF_DSQL2_SQL_ERROR '.

From Uilian Silva.

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
709

Try this way


 exec sql.
  Truncate table "ZTABLE05"  " In double quote & no dot in the last
 endexec.

a®s

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
710

Try this way


 exec sql.
  Truncate table "ZTABLE05"  " In double quote & no dot in the last
 endexec.

a®s

Read only

0 Likes
709

OK, the truncate start with success. thanks