The growth in July 2012 index of industrial production (IIP) was 0.1% higher as compared to the level in the month of July 2011.
The cumulative growth for the period April-July 2012-13 over the corresponding period of the previous year stood at -0.1%.
The 30-share Sensex ended at 18,000 up147 points or 0.82% and the 50-share Nifty ended at 5,431 up 41 points or 0.76%.
The Sensex and the Nifty reached an intra-day high of 18,012 levels and 5,436 mark, respectively.
On the global front, European shares and the euro rose on Wednesday while Italian and Spanish bonds were little changed after Germany's top court gave its backing to the euro zone's new 700 billion euro European Stability Mechanism bailout fund.
German approval of the ESM was crucial to boost the euro zone's crisis fighting powers and a key requirement for the European Central Bank's new plan to buy the bonds of struggling euro members.
European shares rose to stand up 0.14 percent on the day having stood up 0.07 percent just ahead of the decision.
The euro hit a new four month high of $1.29017 from $1.2845. German Bund futures fell to a session low of 139.75.
Asian markets ended firm with Nikkei, Strait Times, Hang Seng, Taiwan, Kospi and Shanghai gaining between 0.3-2%.
Back home, the rupee stays strong at 55.2625/2675 versus its previous close of 55.34/35. A softer-than-expected factory output number for July fails to have much impact on markets.
On the sectoral front, BSE Metal index zoomed over 2% followed by counters like Auto, Capital Goods, Technology, Consumer Durable, Realty, TECk, FMCG, Oil & Gas and Banks, all gaining between 0.5-1.3%.
However, BSE Healthcare and Power indices ended lower between 0.4-1%.
Tata Motors was the top Sensex gainer, up over 5% after the company said it is evaluating options for setting up a manufacturing base in Indonesia to serve the country and the ASEAN region.
Maruti Suzuki and Bajaj Auto 0.3-0.4%.
From the Metal space, Jindal Steel, Tata Steel, Sterlite and Hindalco surged between 0.2-4%. Steel shares recovered on short covering and value buying
BSE, NSE to hold special trading session tomorrow
IMAGES: 30 countries with best living standards
For ISI, US is a BIGGER enemy than India: Dr Afridi
Knee surgery sidelines United's Jones for two months
Deccan Chronicle a/cs: Forensic audit by Canara Bank