Q
Problem solve Get help with specific problems with your technologies, process and projects.

Incorrect drive letter assignments

Monitoring and Administration expert Kevin Kline discusses how to fix incorrect drive letter assignments.

I have installed SQL Server on Windows 2003 and made incorrect drive letter assignments to C: with respect to the data files and transactions. How can I undo this error without having to rebuild the entire database?
There are a couple ways to do this. The best way is to use the sp_detach_db and sp_attach_db system stored procedures. In essence, you simply disconnect the database from SQL Server, then reconnect it to the server with a new path and file.

 


Do you have comments on this Ask the Expert Q&A? Let us know.
This was last published in November 2005

Dig Deeper on Microsoft SQL Server Installation

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close