Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Is there a better way to fetch more than one parameter from a row?

$
0
0
Over the years I've developed the habit of doing this in circumstances where I need to fetch a couple of parameters from a row in a table:

set @id = (select top 1 id from tbl_EmailQueue where IsSent = 0)
set @recipient = (select top 1 Address

Viewing all articles
Browse latest Browse all 3145

Trending Articles