Archive for January, 2013

— Below query gives all difference records between old & new tables one below other
(SELECT * FROM Table_Old
UNION
SELECT * FROM Table_New)
EXCEPT
(SELECT * FROM Table_Old
INTERSECT
SELECT * FROM Table_New)

— Below query gives all difference records from old table first and then all difference records from new table
select * from
(
select * from Table_Old
except
select * from Table_New
) as T
union all
select * from
(
select * from Table_New
except
select * from Table_Old
) as T

Calling Reporting webservice from c# code to generate the reports is timing out due to long running reports. Resetting timeout period to high value is a quick solution before fixing  report performance issue.

http://msdn.microsoft.com/en-us/library/reportexecution2005.reportexecutionservice%28v=sql.105%29.aspx