Our database server had run out of disk space, after freeing up some disk space any query run in sql server management studio, with the results sent to grid view, resulted in this error:
An error occurred while executing batch. Error message is: The directory name is invalid.
When the results sent to text view the queries worked fine.
Does anyone know why this error occurs and how to get rid of it?
/log
parameter, then open%appdata%\Microsoft\AppEnv\[VERSION]\ActivityLog.xml
and search for the error. In my case, searching for "The directory name is invalid" in activitylog.xml found a description containing "InternalGetTempFileName", which hints at the solution several users recommended (i.e., making sure%temp%
exists). – Beaumont