You are here: Re: Use MS SQL Server 2005 Developer version to open MDF file? « MsSQL Server « IT news, forums, messages
Re: Use MS SQL Server 2005 Developer version to open MDF file?

Posted by Tim on 03/08/06 15:59

Thanks for the assistance! It's been very helpful.
Tim

DickChristoph wrote:
> Hi Tim
>
> Why don't you ask them to run a backup of the database(s) in question to a
> file and then restore the databases on your end. If the SQL Server 2005
> developer version has a Enterprise Manager this is pretty easy to do. If not
> read Books Online about the Restore Command.
>
> BTW I don't know if you can attach an MDF that hasn't been previously
> detached (using sp_detach_db). Your customers almost certainly won't want to
> detach their open databases just to send them to you, whereas a full backup
> can be run on a open database. I suspect just doing a Copy of an open MDF
> may give you a file you can't use in any way.
>
> See books online about sp_attach_db and sp_detach_db and my favorite
> sp_attach_single_file_db (which attaches an MDF without needing the LDF).
>
> For Example:
>
> EXEC sp_attach_single_file_db @dbname = 'pubs',
> @physname = 'c:\Program Files\Microsoft SQL Server\MSSQL\Data\pubs.mdf'
>
> You might try this with the file(s) you have and see if if works.
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация