Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Specified cast is not valid. (SqlManagerUI)

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.

like image 228
Tavousi Avatar asked Apr 10 '12 11:04

Tavousi


People also ask

How do I fix Specified cast is not valid Sqlmanagerui?

Restore a Database Backup to an earlier version in SQL Server. The simple solution to achieve that is to use “Script and Data Generator Wizard” to create T-SQL script, then run it at the destination SQL Server with earlier version.

Which is not valid SQL database?

Explanation: DECIMAL is not a valid SQL type because it is nothing but numeric only in SQL.

Which feature will be removed in a future version of Microsoft SQL Server?

Occurs once per compilation. Deprecated encryption algorithm rc4 will be removed in the next version of SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use it. The RC4 algorithm is weak and is only supported for backward compatibility.


1 Answers

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.

like image 170
user1089020 Avatar answered Oct 01 '22 19:10

user1089020