If the temp db drive is unavailable (others system database files are available), how can I trick SQL server 2000 to create new temp db on C: and start up?
When trying to start up using sqlservr -c -f -T3608 -T4022
from command prompt, it just displays the following and thats it:
Thanks in advance
You can run the following from a command prompt to run SQL Server in the command prompt. First, change directories to the SQL server executables folder, (possibly C:\Program Files\Microsoft SQL Server\MSSQL\Binn).
Then, if you want to permanently change the tempdb location, your can run the following SQL:
Stop the SQL Server (control-c) in the command prompt and start the SQL Server service as normal.
Use this code: you will need to know the logical names of the tempdb database files. The logical name for each file is in the NAME column
Change the location of each file using ALTER DATABASE.
Stop and restart SQL Server.