Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Move database
Message
From
22/09/2008 09:59:10
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Environment versions
SQL Server:
SQL Server 6.5 and older
Miscellaneous
Thread ID:
01349440
Message ID:
01349453
Views:
11
>Is there an SQL command I can use to change the data directory of a database?
>By default to database is crated in C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\ and that is in "violation" with Vista rulez.
>
>I know I can specify the path when I create the database, but is there a vay to change the path after the database has been created.
>
>Thanks,
>Einar

Can't you detach it, move it then attach it again? There may be a live way but this is what I have done. Might not be great for a a database that can't be down.
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform