Forum Replies Created

Viewing 15 posts - 211 through 225 (of 1,162 total)

  • RE: Ambiguous SQL server

    Not entirely sure what you mean. Are you saying you had to qualify a reference to a column with its table/alias name (e.g. "table1.column1") and sometimes you don't (e.g. just...

  • RE: Database backup striping

    Jeffrey Williams 3188 (5/16/2013)


    You will only see value in striping a backup when you have multiple drives available - and separate IO paths to those drives. Striping a backup...

  • RE: Select statement using a max

    Think I see what you're after. Untested, since you haven't provided data, but you need a separate sub-query to pick out just the latest call for each group. There are...

  • RE: Plan Reuse - Unrelated tables in execution plan

    Would the fact that your "table" is called View_FactTable have anything to do with it? E.g. it must be a view that references other tables if those other tables are...

  • RE: Storing Spatial Data

    I see. I think it's still longitude first for this, but the problem is that when describing a polygon, the direction of rotation (ring orientation) is important as it defines...

  • RE: Storing Spatial Data

    Not sure which bit you're confused with. Longitude comes before Latitude for those geography methods, so the last query looks the correct way round....

  • RE: WHERE > CASE > IN

    lanky_doodle (4/8/2013)


    The thing is I only want it to include the next year if the current month is 12.

    So if the current month is Jan-Nov only take dates from this...

  • RE: WHERE > CASE > IN

    Wrapping functions around columns isn't a good idea if it can be avoided as indexes can't be used.

    Give this a go and see if it's what you're after:

    WHERE abr.ABR_Shift_Date >=...

  • RE: Crosstab, dynamic number of columns, No Pivot function!

    Sorry, I misunderstood. When you said line, I thought you meant a row of data, rather than a Line ID in your data. You need to use dynamic SQL plus...

  • RE: Crosstab, dynamic number of columns, No Pivot function!

    so when I select line 2, there would be four columns, each with the boardings number in it, when I select line 4, there would be nine columns.

    Each row has...

  • RE: IDENTITY value becoming too big

    Presumably, the rows you're not deleting each day are the highest ID values in the set? If so, simply reseeding wouldn't help. There are obviously convoluted solutions involving deleting, updating...

  • RE: AWE on SQL SERVER 2012 and Windows Server 2008 Data Center?

    How are you viewing that AWE is being used rather than regular memory allocation?

  • RE: SQL Refusing to use an index

    Agreed, we need the actual execution plans and DDL to help.

  • RE: SQL Refusing to use an index

    Did you update statistics with FULLSCAN after the 2000 upgrade? It's a compulsory step.

    Other than that, we'd need full table and index definitions and the actual execution plans to see...

  • RE: COMPUTE Clause problem

    ChrisM@Work (3/15/2013)


    What version of SQL Server are you connected to?

    And what compatibility level is set for the database?

Viewing 15 posts - 211 through 225 (of 1,162 total)