DCSIMG
How to get or sort randomly records - SQL SERVER DBAces And More

SQL SERVER DBAces And More

שרון כהן שכן טוב

How to get or sort randomly records

Using randomly records can be benefit for testing two or more application with different data
simply add to the Order by column NEWID()

 SELECT TOP 200 * FROM mytbl ORDER BY NEWID()

 

sharon cohen

 

 

Comments

Shlomo said:

נחמד מאוד

# March 18, 2009 7:40 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: