| | |
Integer or Numeric
Please support our MS SQL advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Apr 2009
Posts: 4
Reputation:
Solved Threads: 0
Hi,
I've imported a Visual FoxPro database to MS SQL Server 2008 and had a couple of queries;
The VFP tables used Numeric(5,0) for the Index fields, but I'm thinking of converting them to Integers in SQL Server. Is there any issues I should be aware of? A co-worker keeps telling me that Integers are "slower" to search on, which I find a bit hard to believe. I always thought that you would you use Numerics for data that requires precision, such as financial data and Integers for counters whole number id's and so on. Am I wrong or missing something?
Thanks
I've imported a Visual FoxPro database to MS SQL Server 2008 and had a couple of queries;
The VFP tables used Numeric(5,0) for the Index fields, but I'm thinking of converting them to Integers in SQL Server. Is there any issues I should be aware of? A co-worker keeps telling me that Integers are "slower" to search on, which I find a bit hard to believe. I always thought that you would you use Numerics for data that requires precision, such as financial data and Integers for counters whole number id's and so on. Am I wrong or missing something?
Thanks
0
#2 19 Days Ago
>>A co-worker keeps telling me that Integers are "slower" to search on, which I find a bit hard to believe
He's an idiot.
Integers are fine. Just be sure to index your database properly -- and this is regardless of datatype (string, integer, decimal, etc).
He's an idiot.
Integers are fine. Just be sure to index your database properly -- and this is regardless of datatype (string, integer, decimal, etc).
![]() |
Similar Threads
- run time error "13" type mismatch (Visual Basic 4 / 5 / 6)
- Running out of Memory (Windows Vista and Windows 7)
- Problem with Arrays (Java)
- sum the sequence (C++)
- Arrays (C++)
- integer sum (Python)
- Displaying numeric data (Assembly)
- pls help me to convert char to integer. (C)
Other Threads in the MS SQL Forum
- Previous Thread: SSRS delete blank rows
- Next Thread: Stored Procedure with Increments
| Thread Tools | Search this Thread |






