The Sensex opened almost flat at 17,152 - up one point. Unabated buying in the market saw the index rally to a fresh all-time intra-day high of 17,361 - up 210 points from the previous close.The index finally ended (provisional) with a gain of 149 points at 17,299.