Numeric data type


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Numeric data type

  1. #1
    Vhost Guest

    Numeric data type


    Should a numeric data type (SQL Server) ever be used as primary key/row identifier
    instead of the int data type? I have inherited a DB with numeric data types
    as primary keys. I think they should be changed to int or bigint.

  2. #2
    Craig Clearman Guest

    Re: Numeric data type

    >Should a numeric data type (SQL Server) ever be used as primary key/row identifier
    >instead of the int data type? I have inherited a DB with numeric data types
    >as primary keys. I think they should be changed to int or bigint.


    That would depend on whether the database is for a product that might
    have to be ported to other database management systems. If you know
    that the application will always be using SQL Server, then there is no
    real reason to use numeric. bigint can handle large enough tables.

    Ciao, Craig


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center