Yes, to do this I would do the following...
exec sp_detatch_db 'Pubs'
GO
exec sp_attatch_db 'Pubs', @filename1 = 'e:\data\Pubs.mdf', @filename2 = 'f:\logs\Pubs_log.ldf'
That should do it..! For more help lookup sp_detatch_db & sp_attatch_db on BOL
Clive Strong
clivestrong@btinternet.com