Viewing 3 posts - 1 through 3 (of 3 total)
If you use merge replication GUID's are a perfect primary key .
October 12, 2010 at 1:01 am
#1235322
Hi Divya
Monday would be day 1, but a sunday returns 0.
February 19, 2010 at 2:22 am
#1121635
Thanks for putting me in the right direction.
If you want Monday to be day 1 and Sunday to be day 7 use this:
SELECT ((DATEPART(dw, '2010-02-23') + @@DATEFIRST -2) % 7)+1...
February 19, 2010 at 2:02 am
#1121622