Read the registry using T-SQL