Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Moving a database from one drive to a new drive

$
0
0

In the MSDN example for moving a database I found this example below however I do not know what the last path to assingn the new path means, I get the FILENAME = 'new_path\" but I don't get what "\os_file_name" means any ideas? 

all the other examples only have the new path no forward slash no os_file_name

ALTER DATABASE database_name MODIFY FILE ( NAME = logical_name , FILENAME = 'new_path\os_file_name' );

In my case:

ALTER DATABASE database_name MODIFY FILE ( NAME = logical_name , FILENAME = 'F:\newfolderpath\??????' );


Viewing all articles
Browse latest Browse all 5123

Trending Articles