Sign in
|
Join
|
Help
Search
SQL SERVER DBAces And More
שרון כהן שכן טוב
Home
RSS
Atom
Comments RSS
Recent Posts
Unable to connect to SQL Server when using ruby on rails
How to connect ruby on rails 3 to SQL Server
How to verify that SQL Backup File is OK
Record(s) cannot be read; no read permission on 'MSYSObjects'
How to get or sort randomly records
Tags
Breaking News
CTP
Deadlock
DEV
Error Message
hotfix
ITPRO
KATMAI
New Product
New Release
Related Site
ruby on rails
Samples
SQL 2005 Sample
SQL Server 2008
SQL Server 2008
story/Tip
Tools
Tutorials
Vista
VSTSPRO
News
Navigation
Home
All Posts
RSS
Popular Tags
Archives
May 2012
(2)
May 2011
(1)
December 2009
(1)
March 2009
(1)
February 2009
(2)
December 2008
(1)
October 2008
(4)
September 2008
(1)
August 2008
(1)
April 2008
(1)
November 2007
(1)
September 2007
(1)
August 2007
(5)
June 2007
(2)
May 2007
(2)
March 2007
(2)
February 2007
(2)
January 2007
(3)
December 2006
(7)
November 2006
(5)
October 2006
(4)
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 T
OP
200
*
FROM
mytbl
ORDER
BY
NEWID
()
sharon cohen
Posted:
Mar 18 2009, 12:22 PM
by
DBASharon
| with
1 comment(s)
תגים:
story/Tip
,
DEV
Comments
Shlomo
said:
נחמד מאוד
#
March 18, 2009 7:40 PM
Leave a Comment
Title
(required)
Name
(required)
Your URL
(optional
)
Comments
(required)
Remember Me?
Enter the numbers above: