Inside a tsql stored procedure i want to substring 'x' that is nvarchar(max).
x can take values like:
1.000.232 or 2.1110.23444.456
I want to save to 'z',which is also nvarchar(max), only the middle numbers between the first and the last '.'
For example:
if x=1.000.232 then z=000
if x=2.1110.23444.456 then z=1110.23444