steveb (1/20/2009)
This method should be faster
SELECT rows FROM sysindexes
WHERE id = OBJECT_ID('YourTableName') AND indid < 2
Here the local sql server's object id will need to apply. but if you will run the same command on the linked server. again the speed isssue will arise especially for such large data
kshitij kumar
kshitij@krayknot.com
www.krayknot.com