Is INT the correct datatype for ABS(CHECKSUM(NEWID()))?
Posted
by
Chad Sellers
on Stack Overflow
See other posts from Stack Overflow
or by Chad Sellers
Published on 2013-11-06T20:31:49Z
Indexed on
2013/11/06
21:54 UTC
Read the original article
Hit count: 204
I'm in the process of creating unique customers ID's that is an alternative Id for external use.
In the process of adding a new column "cust_uid" with datatype INT for my unique ID's,
When I do an INSERT into this new column:
Insert Into Customers(cust_uid)
Select ABS(CHECKSUM(NEWID()))
I get a error:
Could not create an acceptable cursor. OLE DB provider "SQLNCLI" for linked server "SHQ2IIS1" returned message "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
I've check all data types on both tables and the only things that has changed is the new column in both tables.
The update is being done on one Big @$$ table...and for reasons above my pay grade, we would like to have new uid's that are different form the one's that we currently have "so users don't know how many accounts we actually have."
- Is INT the correct datatype for
ABS(CHECKSUM(NEWID()))
?
© Stack Overflow or respective owner