Advertisement

10.09.2008 at 07:20PM PDT, ID: 23803042
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.2

SQL Server installed on identical Hardwares and Database, but vary in working time

Asked by wingkchan in MS SQL DTS, MS SQL Server

Tags: , ,

Hi Experts,

I am seeing a strange behavior with 2 SQL servers, but couldn't figure out the reason behind it, so I wonder if anyone has faced the same problem and can give me some advices...

I am monitoring job performances on some servers, and one sql server gets the job done in about 1hr45mins, while another server takes almost 2hrs45mins to complete.  These servers have the same hardware configurations, and they hold the same database and structure (redundant db servers for serving a load-balanced website).

I tried to pin-point the exact location where they have major processing time difference, and it came to a loop where the jobs are doing data manipulation.  (sorry, I am not a sql developers, and hence I know little of what the job does).  This job could be done on the quick server in about 7 minutes, but on the slow server, it takes over an hour for it to get through. Below is the SQL part of the job, I couldn't understand why there can be so much time difference between them... and since there are dependencies on it, it's late completion has other impact on other jobs as well...

****
open see_also_class_cursor_branch_c
fetch next from see_also_class_cursor_branch_c into @branch_id,@class_count
while @@fetch_status=0
Begin
         declare see_also_class_cursor_class_c cursor  for
         select distinct class_id from searchresult_basket_class_companyorder_business_working_c where branch_id=@branch_id
         open  see_also_class_cursor_class_c
         fetch next from see_also_class_cursor_class_c into @class_id
         while @@fetch_status=0
                 Begin
                         set @see_also_class_desc=''
                         declare see_also_class_cursor_see_also_class_desc_c cursor  for  
                         select distinct ltrim(rtrim(class_desc)) as class_desc from searchresult_basket_class_companyorder_business_working_c where branch_id=@branch_id  and class_id<>@class_id
                         open see_also_class_cursor_see_also_class_desc_c
                         fetch next from see_also_class_cursor_see_also_class_desc_c into @class_desc
                         while @@fetch_status=0
                         Begin
                                  set @see_also_class_desc=@see_also_class_desc + '  ' +  @class_desc

                         fetch next from see_also_class_cursor_see_also_class_desc_c into @class_desc
                         End
                         close see_also_class_cursor_see_also_class_desc_c
                        deallocate       see_also_class_cursor_see_also_class_desc_c
                         set @see_also_class_desc=ltrim(rtrim(@see_also_class_desc))
                        update searchresult_basket_class_companyorder_business_working_c set see_also_class=@see_also_class_desc
                        where branch_id=@branch_id and class_id=@class_id

                        fetch next from see_also_class_cursor_class_c into @class_id
                  End
          close  see_also_class_cursor_class_c
          deallocate  see_also_class_cursor_class_c

fetch next from see_also_class_cursor_branch_c into @branch_id,@class_count
End
close see_also_class_cursor_branch_c
deallocate see_also_class_cursor_branch_c
****

Does anyone have faced the same issue too?  Thanks very much in advance.
Start Free Trial
 
Loading Advertisement...
 
[+][-]10.09.2008 at 07:23PM PDT, ID: 22683982

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.09.2008 at 07:42PM PDT, ID: 22684038

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.09.2008 at 07:58PM PDT, ID: 22684114

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.09.2008 at 08:42PM PDT, ID: 22684246

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.09.2008 at 08:47PM PDT, ID: 22684259

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL DTS, MS SQL Server
Tags: Microsoft, SQL, 2000
Sign Up Now!
Solution Provided By: dtodd
Participating Experts: 4
Solution Grade: B
 
 
[+][-]10.09.2008 at 10:54PM PDT, ID: 22684566

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.10.2008 at 01:09AM PDT, ID: 22685034

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.10.2008 at 01:58AM PDT, ID: 22685223

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.10.2008 at 06:45AM PDT, ID: 22686834

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.10.2008 at 10:25AM PDT, ID: 22688766

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.11.2008 at 07:52AM PDT, ID: 22694076

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.13.2008 at 12:41AM PDT, ID: 22700683

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628