Error: Specified cast is not valid. (SqlManagerUI)

Tavousi picture Tavousi · Apr 10, 2012 · Viewed 120.7k times · Source

I have a backup from database in SQL Server 2008 R2. When I want to restore this backup to SQL Server, I get this error: "Error: Specified cast is not valid. (SqlManagerUI)" How to I resolve this error? Thanks.

Answer

user1089020 picture user1089020 · Jul 29, 2013

This would also happen when you are trying to restore a newer version backup in a older SQL database. For example when you try to restore a DB backup that is created in 2012 with 110 compatibility and you are trying to restore it in 2008 R2.