SQL Server - An error occurred while executing batch. Error message is: The directory name is invalid

后端 未结 11 1668
[愿得一人]
[愿得一人] 2020-12-28 12:22

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 i

相关标签:
11条回答
  • 2020-12-28 12:49

    I know it can sound like a joke, but have you tried restarting SQL Server instance?

    0 讨论(0)
  • 2020-12-28 12:51

    All you need to do is to open command prompt and type: mkdir %temp% and press Enter.

    Simple as that. No logout/login required.

    0 讨论(0)
  • 2020-12-28 12:51

    Is the "Default Location for saving Query Results" set to a valid path in Tools/Options/Query Results/SQL Server/General?

    Do the TMP/TEMP environment variables point to valid directories?

    Reinstalling the client tools will probably fix the problem.

    0 讨论(0)
  • 2020-12-28 12:55

    I was facing the same problem, so to check this i typed %temp% and it gives an error for folder not found .../temp/2 so i created a folder name 2 inside temp folder and restart the sql server.

    which works for me.

    0 讨论(0)
  • 2020-12-28 12:57

    I had similar problem on SQL Server 2012. I checked the folder value in %TEMP% variable (echo %TEMP% from command prompt ) and noticed that the folder did not exist. I created the folder and it did the trick!

    0 讨论(0)
  • 2020-12-28 12:57

    I was facing this problem for a long time.....simple answer for this problem An error occurred while executing batch. Error message is: The directory name is invalid is just free up the disk drive space ....my problem resloved by this may be this will be helpful for many more...

    0 讨论(0)
提交回复
热议问题