Forum Replies Created

Viewing 15 posts - 3,721 through 3,735 (of 4,085 total)

  • RE: project could not be deployed

    bhanu.singh83 (6/6/2011)


    Please make me clear.

    what is basically the 'localhost'? Is it SQL Server Instance?

    Thx

    First, this question is completely unrelated to the original question. You're better off starting a...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Increment a date T-SQL Statement

    skcadavre (6/3/2011)


    When you post sweeping comments, you should probably include a test script that proves what you're claiming. Note, I'm not saying you're wrong. As I said before, I use...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Percentage Functionality in t-SQL

    This is something that is best left to the presentation layer.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Increment a date T-SQL Statement

    Jnrstevej (6/2/2011)


    Hi skcadavre,

    Thanks for your reply, its not a homework question i'm in the process of designing a SSRS report and i need this section in the store procedure in...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Identify the Column for 'String or binary data would be truncated'

    Ninja's_RGR'us (5/26/2011)


    The other way to find this out is to wrap all the columns with MAX(LEN(column)) and then checking 1 by 1 to see which one(s) bust the limits.

    I use...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Gaps and Islands with multiple simultaneous insurance coverage?

    I came up with the following solution using a calendar table fragment. You can create a calendar table on the fly using a tally table. I also added...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Gaps and Islands with multiple simultaneous insurance coverage?

    peterzeke (5/26/2011)


    WITH CTE AS (

    SELECT ProcessID, Month, Compliant,

    ROW_NUMBER() OVER(PARTITION BY ProcessID ORDER BY Month) -

    ROW_NUMBER() OVER(PARTITION...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: A strange T-SQL challenge

    First, this thread is almost three years old.

    Second, the OP has a table that is normalized and asks how to denormalize it. Your sample data starts out denormalized. ...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: INNER JOIN drags query

    You do realize that this thread is over three years old.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: MAX yields multiple results

    Maybe the problem is with the GROUP BY itself. There are a couple of approaches you can try instead. Which is more efficient may depend on indices you...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Combining Multiple Rows Into One Row

    SSRS will export to Excel. You can also schedule reports to run automatically, so you might want to investigate using SSRS.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Combining Multiple Rows Into One Row

    Look at the following two articles on cross tabs and pivot:

    http://www.sqlservercentral.com/articles/63681/

    http://www.sqlservercentral.com/articles/65048/

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Query all stored proc with additional requirements

    Ninja's_RGR'us (5/17/2011)


    That won't work correctly. You can have 2 variables declared 1 as nvarchar and 1 as varchar.

    To do this you need to save the spot where you find...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: how do in insert into table after splitting using tally?

    Yes, the string split that you are using returns the values as ROWS and you need them as COLUMNS. You can use a PIVOT or crosstab to change your...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: UNPIVOT @ Local Variables

    You can certainly obtain the desired output, but since the correlation between the variable and the column name seems rather arbitrary, the following code is completely ad hoc and might...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 15 posts - 3,721 through 3,735 (of 4,085 total)