Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 869657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:20:40+00:00 2026-05-15T10:20:40+00:00

When I run any query in sql server management studio, I get the following

  • 0

When I run any query in sql server management studio, I get the following error:

An error occurred while executing batch. Error message is: The file exists.

Restarting SSMS didn’t help. Neither did rebooting the machine. The only thing I found on Google was someone saying “report the bug to microsoft” 😛

(Windows XP Pro x64, SSMS 2005)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T10:20:40+00:00Added an answer on May 15, 2026 at 10:20 am

    I’ve been struggling with this one for while and when I recently installed Toad for MySQL I got the same issue.

    I installed sysInternals process monitor tool to try and work out which file was causing the issue.

    The answer is temp files.

    Both SQL server management studio and toad use a similar naming convention for their temp files. Both use the temp directory under your user account in Documents and Settings. In my case, there were over 60 thousand *.tmp files in that directory.

    Watching the query execute through process monitor I could see the SQL IDE continually trying and failing to identify a temp file name which didn’t exist until it finally gives up with a “The file exists” error.

    The solution is simply to clear out the *.tmp files in your local settings temp directory.

    Both SQL Management Studio and Toad for MySQL are now working fine on my machine.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In SQL Server Management Studio, if I run a query like SELECT TOP 1000
When I try to run any update query in Access 2007, I get the
I have a query from SQL Server which I want to run in Mysql.
in Microsoft SQL Server Management Studio, I use File -> Open -> File (Ctrl
I am trying to get my Winforms app to query a SQL Server CE
I want to run a query on both Oracle and SQL Server. The problem
Little background: Recently I upgraded SQL server management studio 2005 by applying the patch
I have the following SQL Server 2008 query that works for all of my
My SQL Server Management Studio suddenly went case sensitive on me. The database and
I have a query that takes 5 seconds to run in SQL Server Managment

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.