Specified cast is not valid.
ashaw
Posts: 12
I am getting an error: Specified cast is not valid when trying to view the tables and views within a database that I am trying to data compare against another database.
What might be the cause of this issue. I have Sql Profiled the calls made to the database and nothing there throws an error when I run it within Management Studio.
Sql Server 2005
SqlDataCompare 5.3.0.68
What might be the cause of this issue. I have Sql Profiled the calls made to the database and nothing there throws an error when I run it within Management Studio.
Sql Server 2005
SqlDataCompare 5.3.0.68
Comments
Thanks for your post. This problem does come up occasionally and I have to apologize for the vagueness of the error message. What's happened is that SQL Data Compare's schema query had run successfully, but one or more of the fields in the results has come up as NULL when it normally wouldn't.
In some cases in SQL 2005, it fixes the issue to use a SQL account with higher privileges. Rights to one of the schemas could have been denied to you. Failing that, there could be database corruption or a configuration problem. But please try registering the database as a SYSADMIN first and see if permissions are the problem.
I also found a similar post in the Sql Compare forum as well... Maybe this could become a FAQ item?