Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | 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
 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
22859 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  
 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.06 seconds. Powered By: Snitz Forums 2000