DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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


Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links