Matynator
Member
|
MSSQL and UID
What would be the propper way of saving and loading out of mssql for UID values?
Atm im using a "bigint" to store the UID value into in mssql but it does not seem to work all that well as when i get it back out the object where the UID came from is unfindable.
|
|
06-20-2015 11:44 AM |
|
Zervox
Member
|
RE: MSSQL and UID
I would imagine storing any of these
union
{
struct{Byte b[16];};
struct{UInt i[ 4];};
struct{ULong l[ 2];};
};
that is inside UID would make it work correctly.
|
|
06-20-2015 06:55 PM |
|
Esenthel
Administrator
|
RE: MSSQL and UID
Hi,
Ms sql has built-in support for that,
check line 968 in Net/Sql.cpp in the engine source
the type is called "UNIQUEIDENTIFIER"
|
|
06-21-2015 10:36 PM |
|