Re: tempdb can not delete it

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Yes, ı konow it is regenerated normally on restart, but it does not anymore. It is stuck at 2.8 GB. So, by some means I have to delete it. But how? DBCC shrink does not work also..
regards,
atx



Joe D wrote:
First of, Why would you want to delete that database? It is vital to the operation of SQL Server.
If you are concern about disk space you could always try dbcc shrinkfile, once the database is empty.


It is recreated every time SQL Server is shutdown and then restarted. Are you saying that once you restarted SQL it was still 2.8GB in size? How big is your model database?

JD


"atx" <atx@xxxxxxxxx> wrote in message news:ec7prwC9FHA.2832@xxxxxxxxxxxxxxxxxxxxxxx


Hi,
after a huge ODBC operation to read some data from a DB table, my tempdb is now 2.8 GB and I can not delete tempdb. Query analyzer does not work, right mouse click and delete does not work, dbcc checks does not work. I even stopped the service and started it again, but tempdb did not regenerated and still 2.8 GB. I manually deleted the tempdb.mdf file and log file but after I started the MSSQLSERVER service, they are all recovered as 2.8 GB.
How can I get rid of this tempdb???
regards,
atx



.



Relevant Pages

  • RE: ASPState Bug/Security issue
    ... I accept that my *state* doesn't persist after sql server ... after a sql server restart EVEN IF YOU DON'T CARE THAT ... Microsoft's guidelines for how to access tempdb properly, ... to resolve it is to use persiststate version. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: db log Timeout errors PLEASE HELP!!!
    ... Tempdb is re-created every time SQL Server restarts. ... You can also use ALTER DATABASE to change the size of your ... running tempdb, but again, it is re-created at restart. ...
    (microsoft.public.sqlserver.server)
  • RE: Reason Code 0x3006 ; Server restarting
    ... Does SQL Server often restart automatically or does it restart only ... Do you point to the SQL Server service ... Microsoft Partner Online Support ... Reason Code 0x3006; ...
    (microsoft.public.windows.server.migration)
  • Re: SQL Server statistics Counter
    ... I didn't have the chance to restart the sql server until now, ... So i will try check the error log after restarting the sql server on weekend ... > anything monitoring the counters when you restart. ... >> Threads, Max Worker Threads, Network Threads, Max Network Threads ...
    (microsoft.public.sqlserver.setup)
  • RE: ASPState Bug/Security issue
    ... what is the proper way to configure SQL ... >!information does not survives a sql restart unless you ... >!tempdb for storage and I'm fine with the downsides. ... >!the stored procs in aspstate and you are good to go. ...
    (microsoft.public.dotnet.framework.aspnet.security)