We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
create function test returns bit as begin declare @Counter as int set @ Counter =0 while(@Counter<32) if exists(select ColumnA from TBL where ColumnB = '1') print @Counter --This throws as error. What can i use here instead of PRINT? else print 'Does Not Exist' end