types - Recommend datatype Number vs Varchar for a surrogate key -


Can any of you tell me what is the best data type for the surrogate key (number or code 2) Is a bit I have read that the surrogate key works best with number type. But performance has a serious impact on data types. And is this database too dependent?

The answer will be very appreciated!

A numeric datatype is going to be faster than in any database that I can imagine I think - consider the task of comparison - but whatever you fit in your situation, you have to do it. If the behavior is understood, go for it. If you fit equally well, then stay with a numeric.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -