Why does this work:
Declare @latitude varchar = '34.343';
Declare @decLatitude Decimal(9,6);
Set @decLatitude = CAST(@latitude AS Decimal(9,6));
But this doesn't?
Declare @longitude varchar = '-92.6424';
Declare @decLongitude Decimal(9,6);
Set @decLongitude = CAST(@longitude AS Decimal(9,6));
It returns the error "Arithmetic overflow error converting varchar to data type numeric".
This is on an Azure SQL database.
varcharvariables and parameters that you use - marc_s