For SQL server is it better to use an uniqueidentifier(GUID) or a bigint for an identity column?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That depends on what you’re doing:
intis probably big enough.bigintor a sequential guid.Guidis really great.Update
Some additional (less-obvious) notes on Guids:
where id='xxx-xxx-xxxxx'), but you get some of that back via sequential guids as well (where id='xxx-xxx' + '123').'http://example.com?userid=xxxx'and expect to get a result for someone else’s account).