onepieceking
Well-known member
- Joined
- Sep 20, 2006
- Messages
- 64
- Programming Experience
- 1-3
Hi,
Just to check. Is "TRUNCATE" usable in OleDbCommand?
I am getting an error of invalid SQL statement when i execute this code
Just to check. Is "TRUNCATE" usable in OleDbCommand?
I am getting an error of invalid SQL statement when i execute this code
VB.NET:
Dim deletestr as string
deletestr = "TRUNCATE TABLE [" + TableName + "]"
Dim myCommand as OleDbCommand
myCommand = New OleDbCommand(deletestr, myconn)
myCommand.ExecuteNonQuery()