Monday, June 25, 2007

Precision

There's probably a better way to do this, but this is what occurred to me:

select
max(
len(
rtrim(
replace(
substring(
cast(position as varchar(50))
, charindex(
'.'
, cast(position as varchar(50)))
, 50)
, '0', '')
)
)
)
from ...

Tuesday, June 5, 2007

Sprawl

Just looked at a refreshed copy of our server list, and we have more servers than users.