how do i delete all the data which is stored in the sql table????
i want to delete only the data present in one table without dropping the table when i click on the command button in vb6 plz help :(:(:(:( its really urgent
abhishekkp
0
Newbie Poster
Recommended Answers
Jump to PostHow you connect to database ?
If using ADO then try this
conn.begintrans 'conn-----adodb connection object conn.execute "delete from table_name" conn.committtrans
Jump to Post"Recordset.Delete" will only delete the active row. You either have to iterate through the recordset and advance the current row or do what @debasisdas says. Please don't post if you haven't tested your solution.
All 7 Replies
debasisdas
580
Posting Genius
Featured Poster
abhishekkp
0
Newbie Poster
mokong
-3
Newbie Poster
BitBlt
452
Practically a Master Poster
Featured Poster
mokong
-3
Newbie Poster
BitBlt
452
Practically a Master Poster
Featured Poster
jireh
3
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.