SQL Server script Error: Insufficient result space to convert uniqueidentifier value to char.

Error:  

Getting below error while trying to copy data from one table to another:

Msg 8170, Level 16, State 2, Line 1004 

Insufficient result space to convert uniqueidentifier value to char.

 



Fix:

UserID column which would be having Unique identifier data require more space (36 character). Size is specified as 15 here.

To fix it just specify 36 as varchar length or specify Uniqueidentifier as data type for UserID  column.



Comments

Popular posts from this blog

While executing Select query to pull data from a different server, SQL Server is showing following error:

Overcoming Performance Issues with Memory Optimized tables - SQL Server 2014 CPT2