SELECT @var1 = field1, @var2 = field2, ..., var24 = field24 FROM ... WHERE pk = @PKIf calculations are simple you can do them in select as well. You can also do some partual calculations, if possible into intermidiate variables and then complete calculation using them.