Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server Management Studio - Create database with files at specific location

Using SQL Server Management Studio (SQL Server 2008 R2 Express), how do I create a database with files at an arbitrary location, say "K:\SQL_DATA"? I have been able to create it at default location, detach it, move the files, attach it. But it sounds like a lot of unnecessary steps. I would like to use GUI if possible.

like image 347
mcu Avatar asked Feb 13 '26 06:02

mcu


1 Answers

You can easily define both the path as well as the actual file name in the Create New Database Wizard:

enter image description here

like image 167
marc_s Avatar answered Feb 15 '26 19:02

marc_s