![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have Nvarchar column in which i am storing Series no and i increment it as max(DocNO)+1 to get next number in series but it has problem after 9 for 10 it also giving max as 9 what is the problem and solution. Do i need to use cast()? |
#3
| |||
| |||
|
|
Vivek wrote: I have Nvarchar column in which i am storing Series no and i increment it as max(DocNO)+1 to get next number in series but it has problem after 9 for 10 it also giving max as 9 what is the problem and solution. Do i need to use cast()? Why are you storing what clearly appears to be a numeric value in a character-based column? Consider using an INT column for storage. You can cast the column to an int but that doesn't address the design issues. -- David Gugick Quest Software www.imceda.com www.quest.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |