Hi,
I thinking of using this to solve the sorting problem inherent in SQL (10 sorts before 2). Are there any drawbacks to doing this? I haven't been able to find any in depth pluses or minuses on this subject in the forum. I'm planning on changing the "Sales Header"."Document No." and Job."No." fields to SQL Type = Variant.
Thanks,
Mega
0
Comments
Downsides are these:
+ When using "Variant" SQL Server has to do implicitly internal datatype-conversions, which could slightly degrade performance (depending on the business processes)
+ You cannot use any "leading zeros" like 01, 001, 0001 etc. in Primary Keys (as "Sales Header"."No."), this all would create a "Variant" of 1 (hence a PK violation)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool
Thanks !
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.