Click here to Skip to main content
15,889,874 members
Home / Discussions / Database
   

Database

 
GeneralRe: terminating SqlConnection.Open() call while connecting Pin
Eddy Vluggen5-Oct-12 4:57
professionalEddy Vluggen5-Oct-12 4:57 
QuestionSQL 2000 to 2008R2 Query Performance Pin
cjb1104-Oct-12 5:13
cjb1104-Oct-12 5:13 
AnswerRe: SQL 2000 to 2008R2 Query Performance Pin
Shameel4-Oct-12 9:01
professionalShameel4-Oct-12 9:01 
GeneralRe: SQL 2000 to 2008R2 Query Performance Pin
cjb1104-Oct-12 22:30
cjb1104-Oct-12 22:30 
AnswerExecution plan Pin
David Mujica4-Oct-12 10:25
David Mujica4-Oct-12 10:25 
GeneralRe: Execution plan Pin
cjb1104-Oct-12 20:58
cjb1104-Oct-12 20:58 
GeneralRe: Execution plan Pin
David Mujica8-Oct-12 8:54
David Mujica8-Oct-12 8:54 
GeneralRe: Execution plan Pin
cjb1108-Oct-12 23:41
cjb1108-Oct-12 23:41 
The Compatibility level is set to 100. We've not tried 80...

We do seem to have resolved the issue, the server now has 8Gb, rather than 4Gb. The 2000 server had 4Gb.

One query that took hours on 2008, but down to seconds once we added the 8Gb was:
SQL
update outMortgageAsset
set        
	OpeningBalance  = z.OpeningBalance 
	, ClosingBalance  = z.ClosingBalance 
	, AvgBalance      = z.AvgBalance  
from outMortgageAsset b  
join       
	(
		select            
			GroupID      = a.GroupID
			, MonthDate      = k.MonthDate
			, OpeningBalance  = sum(k.OpeningBalance)
			, ClosingBalance  = sum(k.ClosingBalance)
			, AvgBalance      = sum(k.AvgBalance)   
		from EIRGroupAccountsToBeTotaled a   
		join          
		(           
			select                
				monthdate       = b.ForecastMonth
				, accountid       = b.AccountID
				, OpeningBalance  = isnull(b.CurrentBalance, 0.0) 
				, ClosingBalance  = isnull(c.CurrentBalance, 0.0)
				, AvgBalance      = (isnull(c.CurrentBalance, 0.0) 
										+ isnull(b.CurrentBalance, 0.0)) / 2.00000000    
			from EIRAccountBalancePerPeriod b    
			left join EIRAccountBalancePerPeriod c     
				on b.ForecastMonth = c.ForecastMonth - 1     
				and c.AccountID = b.AccountID     
			union all    
			select               
				ForecastMonth - 1 
				, AccountID
				, OpeningBalance  = 0
				, ClosingBalance  = isnull(CurrentBalance, 0.0) 
				, AvgBalance      = (CurrentBalance) / 2.00000000
			from EIRAccountBalancePerPeriod a    
			where ForecastMonth =               
				(
					select min(ForecastMonth) 
					from EIRAccountBalancePerPeriod z 
					where z.AccountID = a.AccountID
				)       
		) k
        on a.accountid = k.accountid
		group by a.GroupID, k.MonthDate
	) z 
    on b.GroupID = z.GroupID      
		and fm = z.MonthDate  


The row counts for the tables:
outMortgageAsset: 1148
EIRGroupAccountsToBeTotaled: 1499860, Clustered Index on GroupID, AccountID
EIRAccountBalancePerPeriod: 14347829, Non-Clustered on MonthDate, ForcastMonth, AccountID
GeneralRe: Execution plan Pin
David Mujica9-Oct-12 3:12
David Mujica9-Oct-12 3:12 
GeneralRe: Execution plan Pin
cjb1109-Oct-12 4:34
cjb1109-Oct-12 4:34 
GeneralHigh CPU Pin
David Mujica9-Oct-12 9:13
David Mujica9-Oct-12 9:13 
GeneralRe: High CPU Pin
cjb11010-Oct-12 21:30
cjb11010-Oct-12 21:30 
GeneralRe: High CPU Pin
cjb11010-Oct-12 23:15
cjb11010-Oct-12 23:15 
QuestionMySQL Server timestamp changed! Pin
Jassim Rahma2-Oct-12 21:53
Jassim Rahma2-Oct-12 21:53 
AnswerRe: MySQL Server timestamp changed! Pin
Shameel3-Oct-12 4:05
professionalShameel3-Oct-12 4:05 
QuestionConnection String for Ms access 2010 to Windows 7 64 Bit Pin
Satyam Tripathi2-Oct-12 21:33
Satyam Tripathi2-Oct-12 21:33 
AnswerRe: Connection String for Ms access 2010 to Windows 7 64 Bit Pin
Richard MacCutchan2-Oct-12 22:00
mveRichard MacCutchan2-Oct-12 22:00 
QuestionBackup/Recover of row data in a multi-Company database Pin
DeDawg2-Oct-12 10:35
DeDawg2-Oct-12 10:35 
AnswerRe: Backup/Recover of row data in a multi-Company database Pin
Wendelius2-Oct-12 11:17
mentorWendelius2-Oct-12 11:17 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
DeDawg2-Oct-12 11:22
DeDawg2-Oct-12 11:22 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
Wendelius2-Oct-12 18:22
mentorWendelius2-Oct-12 18:22 
AnswerRe: Backup/Recover of row data in a multi-Company database Pin
Mycroft Holmes3-Oct-12 7:39
professionalMycroft Holmes3-Oct-12 7:39 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
DeDawg3-Oct-12 7:43
DeDawg3-Oct-12 7:43 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
Mycroft Holmes3-Oct-12 8:02
professionalMycroft Holmes3-Oct-12 8:02 
Questioncannot find column Pin
sindhuan1-Oct-12 0:19
sindhuan1-Oct-12 0:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.