| Posted by WhytheQ on 08/17/07 15:31 
I have been using NewID but was advised to use TABLESAMPLE as it wouldbe more efficient - unfortunately I can get it to work properly.
 
 This comes up with nothing:
 '=====================
 USE myDatabase
 SELECT   *
 FROM myTable
 TABLESAMPLE (1 ROWS)
 '====================
 
 ....whereas this works:
 '=====================
 USE myDatabase
 SELECT   *
 FROM myTable
 TABLESAMPLE (1 PERCENT)
 '====================
 
 
 Any help appreciated.
 J
  Navigation: [Reply to this message] |