Inside my SQL Server database I got this as my ID for example SSK0000001.
I want it to auto-increment in my system and also the last number of ID e.g.”1″ (after another new record it will become SSK0000002) is update in my SQL Server database.
I know it can be done with set auto-increment inside database but now my ID is nchar.
Anyone could help will be appreciate.
You can cast right side to int and increment:
then insert as:
But this is the most dirty solution as you can take:
I suggest to you to move to an autoincrement data type