SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 unsigned int
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

144 Posts

Posted - 10/07/2004 :  18:04:13  Show Profile  Reply with Quote

How can i declare unsigned integer in sql server?


Starting Member

South Africa
18 Posts

Posted - 10/12/2004 :  03:23:07  Show Profile  Reply with Quote

I've been searching for this for a while, as far as i could find out, SQL Server does not have unsigned ints. I got around this by declaring my variable as a bigint, and then using it as if its an unsigned in so that i could get values up to 4294967296 (unsigned INT32 ie WORD)

If, unfortunately you need a BIGINT unsigned, I can't help you.

Black Holes exist where God divided by Zero
Go to Top of Page


United Kingdom
22771 Posts

Posted - 10/12/2004 :  04:11:12  Show Profile  Reply with Quote
Put a CONSTRAINT on an INT column to not allow numbers < 0 ??

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000