Why can I not use truncate with the Database Toolbox?

1 view (last 30 days)
Why does executing an SQL truncate query generate an error in MATALB R2009b?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 12 Sep 2014
Connecting to SQL Server 2005 database and executing a truncate SQL query generates an error.
??? Error using ==> database.exec at 51
The statement did not return a result set.
Error in ==> test at 4
curs = exec(conn,sql_cmd)
This is a known limitation of the Database Toolbox in MATLAB R2009b and prior. The truncate operation is supported as of R2010a.

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!