Micosoft SQL Server 2005 check if temporary table empty

Posted by Kevin on Stack Overflow See other posts from Stack Overflow or by Kevin
Published on 2010-04-14T19:15:11Z Indexed on 2010/04/14 19:33 UTC
Read the original article Hit count: 263

Is there a fast/efficiency way to check if a table is empty?

DECLARE @StartEndTimes TABLE
(
    id bigint,
    StartTime datetime,
    EndTime datetime
)

IF @StartEndTimes IS NOT NULL

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about temporary-tables