As marc_s said, the idea of sending a "row" as an object in T-SQL isn't present. You can send the data from the row as individual values, but not the row itself.
A computed column on the table itself would probably make more sense. If the value is directly dependent on the values present in the row (and not dependent on any external values), then this would be a solution.
For example, say I have this table:
Customer:
CustomerID
FirstName
LastName
...
If I wanted a computed column for FullName
, my table declaration would look like:
create table Customer
(
CustomerID int identity(1, 1) primary key,
FirstName varchar(100),
LastName varchar(100),
FullName as LastName + ', ' + FirstName
)
I could also add it after the fact with an ALTER
statement
alter table Customer add FullName as LastName + ', ' + FirstName