dbTalk Databases Forums  

tempdb can not delete it

microsoft.public.sqlserver.setup microsoft.public.sqlserver.setup


Discuss tempdb can not delete it in the microsoft.public.sqlserver.setup forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
atx
 
Posts: n/a

Default tempdb can not delete it - 11-28-2005 , 10:58 AM






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

Reply With Quote
  #2  
Old   
Joe D
 
Posts: n/a

Default Re: tempdb can not delete it - 11-28-2005 , 01:41 PM






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 (AT) xerox (DOT) com> wrote

Quote:
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



Reply With Quote
  #3  
Old   
atx
 
Posts: n/a

Default Re: tempdb can not delete it - 11-29-2005 , 03:27 AM



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:
Quote:
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 (AT) xerox (DOT) com> wrote in message
news:ec7prwC9FHA.2832 (AT) TK2MSFTNGP14 (DOT) phx.gbl...

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




Reply With Quote
  #4  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: tempdb can not delete it - 11-29-2005 , 06:09 AM





--
Andrew J. Kelly SQL MVP


"atx" <atx (AT) xerox (DOT) com> wrote

Quote:
Yes, i 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 (AT) xerox (DOT) com> wrote in message
news:ec7prwC9FHA.2832 (AT) TK2MSFTNGP14 (DOT) phx.gbl...

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




Reply With Quote
  #5  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: tempdb can not delete it - 11-29-2005 , 06:09 AM




http://www.support.microsoft.com/?id=307487

--
Andrew J. Kelly SQL MVP


"atx" <atx (AT) xerox (DOT) com> wrote

Quote:
Yes, i 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 (AT) xerox (DOT) com> wrote in message
news:ec7prwC9FHA.2832 (AT) TK2MSFTNGP14 (DOT) phx.gbl...

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




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.