[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

restore sql 2000 database to sql 2005 error

I am trying to restore a sql 2000 bak file to a sql 2005 server database using t-sql.  my restore statement is:

restore database DATABASENAME from mybackup with replace

The restore completes but with the following error in the messages:

Msg 156, Level 15, State 1, Procedure SYSKEYS, Line 1
Incorrect syntax near the keyword 'FUNCTION'.

The error message comes after the upgrade step from version 539 to 551.  The rest of the upgrade steps go off without a problem.  Any suggestions?
0
cambercorp
Asked:
cambercorp
  • 2
1 Solution
 
udayshankarCommented:
did you try restoring from the front end.

create a new db and right click and restore db and point it to the backup file.

0
 
cambercorpAuthor Commented:
yes, but i want to restore from t-sql.
0
 
doobdaveCommented:
how about trying to set it up via the SQL Server management studio, but instead of running it there, generate the SQL script using the appropriate option.
Then try running that scipt and see if it works without error.

Best Regards,
David  :o)
0
 
cambercorpAuthor Commented:
that did it doobdave, thanks!
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now