Why can I not use truncate with the Database Toolbox?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 12 Sep 2014
Answered: MathWorks Support Team
on 12 Sep 2014
Why does executing an SQL truncate query generate an error in MATALB R2009b?
Accepted Answer
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Database Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!