Forum Replies Created

Viewing 15 posts - 286 through 300 (of 1,183 total)

  • RE: How to select one column as multiple columns..

    crackbridge, kindly let us know if our solutions have answered your question.

    ______________________________________________________________________

    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: Please help me understand the query

    The 'ID' column in the Generation CTE is an Alias for the Mother and Father fields in the source table. You can also write it like this ...

    -- Create the...

    ______________________________________________________________________

    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: How to select one column as multiple columns..

    EDITED: and going further with Ninja's approach ...

    ;WITH

    ListWithRows

    AS (SELECT

    (ROW_NUMBER() OVER (ORDER BY id)/5)+1 as rowNumber

    ...

    ______________________________________________________________________

    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: Conversion failed when converting datetime from character string

    As Gsquared said. "It depends"

    But if you just want to avoid the error message then use NULLIF:

    declare @test-2 varchar(30)

    Set @test-2 = ''

    --Set @test-2 = '2009 12 17 22 31 00...

    ______________________________________________________________________

    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: Client tool (only SSMS and profiler tool) installation

    Not sure which CD it's actuall on. Either one should bring up the same install menu. Just select Client Tools and you'll be fine.

    ______________________________________________________________________

    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: How to find highest paying two employee for each dept

    Search BOL for the "OVER" clause and "ROW_NUMBER"

    ______________________________________________________________________

    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: Advice for a student

    All good advice above.

    I'd add ....

    - Create a database that holds your personal finances, movies or song list.

    - Visit this site EVERY DAY, read questions, post questions, etc... The knowledge...

    ______________________________________________________________________

    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: How to avoid sending blank reports using Database mail in SQL SERVER 2008

    I only post this as it is related to your request and although it may be more complicated, it does allow for more functionality... 🙂

    Go HERE ->http://www.sqlservercentral.com/articles/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: Looking for a data compare/copy product

    GilaMonster (5/18/2011)


    Grant Fritchey (5/18/2011)


    In general, except for data, most of the time the flow of structural changes is not from production down to a dev or test environment, but the...

    ______________________________________________________________________

    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: Looking for a data compare/copy product

    Red-Gate SQL Data Compare[/url]

    and

    Red-Gate SQL Compare[/url]

    They work magic! 😀

    ______________________________________________________________________

    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: distinct/grouping problem

    Please check out the article in my signature and provide us some DDL and sample data. That makes our help that much easier to provide to you for free. 😀

    ______________________________________________________________________

    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: Data Driven Subscriptions

    This is the most recent code I have. It may need some tweaking for 2008, I've not tested it on '08.

    http://www.sqlservercentral.com/articles/Development/2824/%5B/url%5D

    ______________________________________________________________________

    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 to Colums - please help a Newbie

    Jeff Moden (5/15/2011)


    vilonel (4/8/2011)


    thanks WayneS - will read the links - but will a pivot \ crosstab work for my scenario because I am not looking to sum, count etc...

    ______________________________________________________________________

    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: report by day, week and month

    Sorry, this is SSAS and not my cup of tea. (yet)

    ______________________________________________________________________

    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: report by day, week and month

    It almost sounds like you're asking how to write your query to get weekly/monthly data.

    Can you post the code you're using for the daily info?

    ______________________________________________________________________

    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 - 286 through 300 (of 1,183 total)