Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TOP 1 vs TOP 1 PERCENT
Message
From
03/03/2012 22:05:22
 
 
To
03/03/2012 16:25:03
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01537165
Message ID:
01537177
Views:
43
>>Not really an answer to your question, but, I have always used where 1=2 to do this. No data is returned but you still get an empty cursor with all the structure. Seems like I read somewhere that database engines optimize where 1=2 so it should be very fast.


Awesome tip- it really flies now!

Thanks a lot, James.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Previous
Reply
Map
View

Click here to load this message in the networking platform