SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
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  

rubs_65
Posting Yak Master

144 Posts

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

How can i declare unsigned integer in sql server?

Thanks
--Harvinder

Soulweaver
Starting Member

South Africa
18 Posts

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

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

Kristen
Test

United Kingdom
22415 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 ??

Kristen
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