September 10, 2010  
  Register Login 
BLOGS
There are no categories in this blog.

SEARCH BLOG

BLOG ARCHIVE
Archive
<September 2010>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789
Monthly
October, 2008
  SQL Server Blogs     



Your Ad Here

 

 

To genereate a random number in SQL Server we can use random function.  Check example below where a random generated number is between 1 and 100:

select rand()
select rand() * 100
select cast(rand() * 100 as int) as number

 

Permalink |  Trackback
Location: BlogsAleksandar Tosic's BlogT-SQL    
Posted by: Alex Wednesday, October 15, 2008

Your name:
Title:
Comment:
Add Comment   Cancel 
Copyright 2007 by www.dballinks.com Terms Of Use Privacy Statement