Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved scripts in your
SSC briefcase from the favorites tab.
Download now (direct download link)
Thank this author by sharing:
By Goce Smilevski,
A TVF to select prime numbers
A fast table valued function to generate a list of prime numbers within the range specified by the p...
While it's not likely that many of you need to find prime numbers using T-SQL, it is an interesting ...
"Trying to create a sp that prints Prime numbers upto 500"
Generates prime numbers and puts them into a table for future reference by adhoc queries and databas...