Solved

restore MS SQL Server backup error - specified cast is not valid (SqlManagerUI)

Posted on 2010-08-25
3
7,531 Views
Last Modified: 2012-08-13
I'm trying to restore a backup into a blank database i.e. no tables. I get the following error

Specified cast is not valid (SqlManagerUI)

Is this because there are no tables in the database?
0
Comment
Question by:gerrymac1943
3 Comments
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 33522482
Try applying SQL Server 2008 SP1 which might help sometimes.
As a faster fix, try restoring backup directly using TSQL statement which would work:

http://social.msdn.microsoft.com/Forums/en/sqldisasterrecovery/thread/9f29c16b-d783-406e-94f2-22720b8993b4
0
 
LVL 7

Accepted Solution

by:
lundnak earned 500 total points
ID: 33525003
SSMS is causing the issue.

Instead of hitting OK in the input window, click the Script Action to New Query Window button in the upper left hand corner of the window.

Try running this script from the command link instead.
0
 

Author Closing Comment

by:gerrymac1943
ID: 33590358
thanks
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question