can you store results of sql server records in variable code example Example: how to store the query result in a variable sql SET @anyVariableName = ( yourQuery);