You are confusing locks on the files (which the database engine has), in this case the files that
constitutes your tempdb database) with locks inside a database (acquired by the database engine as
queries are processed. Apparently somebody thought it was a good idea to have the tempdb files in
the W drive and also apparently you have lots of activity in tempdb causing the files to grow to
that size. This later is your concern so I suggest you start with
http://sqlserver2000.databases.aspfaq.com/why-is-tempdb-full-and-how-can-i-preve
nt-this-from-happening.html

Signature
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
>I tried to rename them in File Explorer. It would not let me because it says the file is in use by
>another program.
[quoted text clipped - 27 lines]
>>>
>>> DG
Thanks Tibor, That is helpful.
Where is SQL pointing to W:? I would like to change that to a different
drive for the future.
DG
> You are confusing locks on the files (which the database engine has), in
> this case the files that constitutes your tempdb database) with locks
[quoted text clipped - 43 lines]
>>>>
>>>> DG
DG - 01 Jul 2008 19:14 GMT
I found it.
How do I remove the lock? Do I go to spid 60 and kill the process?
DG
> Thanks Tibor, That is helpful.
>
[quoted text clipped - 52 lines]
>>>>>
>>>>> DG
Tibor Karaszi - 01 Jul 2008 19:34 GMT
I wouldn't be surprised if this lock is taken by *you* when looking at locks. I.e., ignore it. SQL
Server do not shrink database files by itself because of resource usage, fragmentation etc. Consider
re-starting SQL Server if you need to get the files down in size.

Signature
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
>I found it.
>
[quoted text clipped - 46 lines]
>>>>>>
>>>>>> DG
Tom Cooper - 01 Jul 2008 19:14 GMT
This is (almost certainly) your tempdb. Instructions for moving tempdb can
be found at
http://support.microsoft.com/kb/224071/en-us
Read the Prerequistes section (especially the part about making sure you
have current backups of all your databases including the master database
(except, of course, you do not need a backup of tempdb)).
Run the following code
use tempdb
go
exec sp_helpfile
go
Make sure that the physical file names that are listed in the filename
column are your two files on the W drive. If they are, then scroll down to
the "Moving the tempdb database" section in the above webpage. Follow those
instructions.
Tom
> Thanks Tibor, That is helpful.
>
[quoted text clipped - 52 lines]
>>>>>
>>>>> DG