syntax using the move command

on a sql2000+sp4 server I am trying to restore from backup the master DB from one server to another, and in a different location on the recovery server, as part of a disaster recovery plan. Working the sql on the second server, I start up in single server mode (sqlservr -c -m) and try to run the following in query analyizer

               FROM DISK = 'c:\sql_backup_test\mastermaster_db_200603270200.BAK',
               WITH MOVE  'MASTER'  TO  'c:\sql\mssql\data\master_mdf',
               MOVE 'MASTLOG' TO 'C:\sql\mssql\data\master.ldf,

It is givining me an error of incorrect syntax near the keyword 'with' on line 3 I am not a DB developer and not experienced with SQl. Any help would be appreciated.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guy Hengel [angelIII / a3]Billing EngineerCommented:
               FROM DISK = 'c:\sql_backup_test\mastermaster_db_200603270200.BAK'
               WITH MOVE  'MASTER'  TO  'c:\sql\mssql\data\master_mdf',
               MOVE 'MASTLOG' TO 'C:\sql\mssql\data\master.ldf,
Guy Hengel [angelIII / a3]Billing EngineerCommented:
ie the comme after the FROM DISK was too much
gbird2005Author Commented:
Thats sovled the sqyntax problem but I am getting the error that the system database can not be move by a restore command, which I thouhg you can do when in single user mode.
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

Guy Hengel [angelIII / a3]Billing EngineerCommented:
to move the master database, simply do the following steps:

* shut down sql server
* move the physical files
* change the sql server's registry settings that specify the master database file locations
* startup sql server

registry path:
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\SQLINSTNAME\MSSQLServer\Parameters
gbird2005Author Commented:
excellent reference thank for all your help. consider this closed.
Guy Hengel [angelIII / a3]Billing EngineerCommented:
>consider this closed.

it's your job to close it. either accept a single comment as answer, or split the points using the split points link below the last comment (which I guess won't appear here as you need at least 60 points to split)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.