Conversion from 'uniqueidentifier' to 'int' is not supported on the connected database server

I'm busy coding picture I'm busy coding · Feb 25, 2013 · Viewed 25.2k times · Source

I'm about to migrate my database from using old membership to the one included in mvc4, which uses int instead of guid.

When changing the type I get following error:

Conversion from int to uniqueidentifier is not supported on the connected database server.

How can I change UserId to int via SQL Server Management Studio?

Answer

Muhamed Shafeeq picture Muhamed Shafeeq · Aug 30, 2013

First Change Data Type to any other supported Type like varbinary or anything. then you can convert from that to what you want.