Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - MSSQL identity field for unique ID numbers
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MSSQL identity field for unique ID numbers

 Post Reply Post Reply
Author
bikeweb View Drop Down
Newbie
Newbie


Joined: 24 July 2006
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote bikeweb Quote  Post ReplyReply Direct Link To This Post Topic: MSSQL identity field for unique ID numbers
    Posted: 29 November 2006 at 8:09pm
I'm posting this question again since nobody anwered the question the last time I posted it but I'll try and rephrase the question.
 
With a MSSQL database, to assign a unique ID number to a field item.  WWF uses the "int" Type with a length of 4, the nullable column is unchecked, the Id column is checked, start and Id seed are set to to 1,1.
 
I have several fields in my own database that use this same method.
 
My question is this:
 
Because the length is 4 does this mean that the total entries can only be up to 9999?  What if I have a database with more than 10,000 entries in this field?  Is the WWF limited to this many entries?
 
I'm worried about using this method and also using WWF for my project if this is the case.
 
I've already purchased a license.
 
Thanks
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 29 November 2006 at 10:49pm
INT's are stored in binary and not as a string, so 4 is enough. INT can hold anything between -2^31 (-2,147,483,648) through 2^31 -
1 (2,147,483,647) that should give you enough room for now.
Back to Top
bikeweb View Drop Down
Newbie
Newbie


Joined: 24 July 2006
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote bikeweb Quote  Post ReplyReply Direct Link To This Post Posted: 29 November 2006 at 10:56pm
Thanks for the follow up.  I tried to google the answer myself and I wasn't getting anywhere.  I knew that the fields couldn't be that limited.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.