Forum Replies Created

Viewing 15 posts - 361 through 375 (of 1,183 total)

  • RE: Uneven usage of CPUs in SQL 2005 environment: some CPUs consistently busier than others

    My guess would be that it's normal. The process by which the multiprocessor uses it's available cores is quite complex (I won't even pretend to know)

    But I would assume it's...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: newbee - Having trouble grouping and getting only the 1st 25 instances of a column

    Without having sample data, this is a "best guess"

    SELECT

    *

    FROM

    (SELECT

    ROW_NUMBER() OVER (PARTITION BY ae.DM_AuditNurseID ORDER...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Pattern Matching

    HMMM.....

    Works fine for me.

    DECLARE @f TABLE (ndex INT IDENTITY(1,1), pattern VARCHAR(90), fileType VARCHAR(256))

    DECLARE

    @fileVAR VARCHAR(99)

    ,@fileVar2 VARCHAR(99)

    INSERT @f

    SELECT 'a%.%',...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Query help using Pivot

    joshtheflame (3/17/2011)


    I have the following stored procedure which is doing a perfect job and creating a matrix style output of 41 items and showing data day wise like [1]..........[31]

    Now...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Help with concatenate -

    Susan-322874 (3/15/2011)


    I need to modify a job that is on multiple servers and includes the servername in the job.

    I have this (below), but it's not working, what am I doing...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Reindexing Necessity

    ChazMan (3/8/2011)


    be careful how you remove your PK. If you script it with a drop, dropping a clustered index will delete the table.

    Sorry, but this is incorrect. 😀

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Reindexing Necessity

    Whisper9999 (3/8/2011)


    Thx. Out of curiosity, can I ask why they get rebuilt 3X? I assume one is when readd the PK it will rebuild them and then in...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Row transpose

    GSquared answered your question. 😀

    As well as it seems you have the answer in your own signature under "Cross Tabs and Pivots" :hehe:

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: updating data during the select statement

    Read up on the CASE statement in Books Online.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Subtracting From SUm

    You're close. It's all in the placement of the parenthesis.

    SELECT

    Salesrep_Customerid

    ,SUM(PaymentAmount) - (SUM(Totalshippingcost) + SUM(Salestax1)) AS [Weekly Total]

    FROM

    ...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Duplicates

    Read up on GROUP BY and HAVING!

    But the answer is something similar to...

    SELECT account

    FROM yourTable

    GROUP BY address

    HAVING count(*) > 1

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Email a report Using Reporting Services in SQL Server 2005 Standard Edition with different parameter values to different email addresses

    your second approach seems more effective.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Email a report Using Reporting Services in SQL Server 2005 Standard Edition with different parameter values to different email addresses

    http://www.sqlservercentral.com/articles/Development/2824/

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: scheduling emails

    In the Report Builder, you should have the option to Open from Server. This would have the server's address.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: scheduling emails

    you should have the web interface ....

    something like http://<YOUR SERVER NAME>/Reports/Pages/Folder.aspx

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg

Viewing 15 posts - 361 through 375 (of 1,183 total)