About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
MSSQL and UID
Author Message
Matynator Offline
Member

Post: #1
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 pfft as when i get it back out the object where the UID came from is unfindable.
06-20-2015 11:44 AM
Find all posts by this user Quote this message in a reply
Zervox Offline
Silver Supporter

Post: #2
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
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
Find all posts by this user Quote this message in a reply
Post Reply