Click here to Skip to main content
15,881,173 members
Articles / Database Development / SQL Server

Check if a number is a power of 2 with Sql Server 2012

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
19 Jan 2013CPOL1 min read 39.8K   38   5  
This tip shows how to get rows from a table where a field contains a number that is a power of 2 using LOG function.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Europe Europe
Biography provided

Comments and Discussions