473,386 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Unable to move Tempdb files to another drive

Whenever I attempt to copy my tempdb files over to another drive, I get the message "The action can't be completed because the file is open in SQL SERVER(Abc_CLUST). Close the file and try again. Any ideas? Running sql 2014 in a clustered environment. I failed over and restarted/shutdown the cluster nodes and still get the same message.
Jun 30 '17 #1
1 1500
Figured it out. I thought you had to copy the tempdb files first to the new location then run the tsql script to recognize the new location. I just ran the following script to point to the new location and the files move automatically to the new share drive location.

USE master;
GO

ALTER DATABASE tempdb
MODIFY FILE (NAME = tempdev, FILENAME = 'T:\MSSQL12.SVT_CLUST\MSSQL\Data\tempdb.mdf');
GO

ALTER DATABASE tempdb
MODIFY FILE (NAME = templog, FILENAME = 'T:\MSSQL12.SVT_CLUST\MSSQL\DATA\templog.ldf');
GO
Jul 1 '17 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: MarcinS | last post by:
hello, my problem is how to move data files drom drive c: to drive d: ?? -- MarcinS
1
by: Douglara | last post by:
I have a system configured with Windows 2000 and SQL Server 2000 Clustering (active/passive). Both SQL Servers have a local E:\ drive with the same directory structure. I would like to move the...
0
by: patricia | last post by:
Hi all, I got a problem with my web application. I have a project under the inetpub/wwwroot. Now I move it to another folder under c:\. There is a subfolder in this project. when I run the web...
3
by: New MSSQL DBA | last post by:
Hi all, I have a tempdb that consists of 8 datafiles, tempdb_data_1 to tempdb_data_8, each is 8GB. Now how can I drop 7 of them and leave only tempdb_data_1? Can this be done? Thanks a lot.
8
by: Mark D Powell | last post by:
I obviously did not search the archives on the right terms so what is the easiest and fastest way to move a 3G database from a nearly full C drive to the nearly empty D drive that should have been...
1
kwaxy
by: kwaxy | last post by:
Hey Frendz, I can upload files into MS Access database, but unable to upload files to MSSQL database using ASP, can anyone help me plz ????
1
by: Cirene | last post by:
All my ASP.NET websites/projects are in my C:\Work drive. I want to move them to F:\Data\Work For each project I have a web deployment project as well, such as: C:\Work\Project1...
10
by: ronqa | last post by:
How can I recursively move *.jpg files from a memory card to a specified directory? I have searched the internet for days and not found a way to do this. Thanks,
5
by: trixb | last post by:
Hello all, Here is what I need to do and need help with: I have a table that is feeding a chart in a report in Access. If this table has more than 50 records, the graph gets messy, and this is...
1
by: Junior Dev | last post by:
I need to move all files from all folders and sub folders with (.bidd)extension into one main folder. the number of files more than 7000 files I'm using Win7 Regards, Junior Dev
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.