Forum Replies Created

Viewing 15 posts - 1,816 through 1,830 (of 5,504 total)

  • RE: Table Scan

    Rog Saber (3/3/2011)


    There are 15 Non-Unique, Non-Clustered indexes on MY_TABLE. I don't know how to get the execution plan in text - in only shows up graphically.

    15 indexes? Can you...

  • RE: Shredding XML

    I would shred it in a normalized staging table together with a row number per termCondition and use that staging table to perform a CrossTab (or DynamicCrossTab, if needed).

    Edit: here's...

  • RE: Table Scan

    Can you post the actual execution plan together will both table definition including any index definition if they exist? (I'd expect no index on the tables since you mention a...

  • RE: Create stored procedure help

    I would either use a varchar(8000) variable and a comma delimited list (or any delimiter that will never ever be part of the parameter) and split it in the sproc...

  • RE: How to ping a SQL Server datbase?

    Lowell (3/3/2011)


    LutzM (3/3/2011)


    Duplicate post. No replies please.

    Original post can be found here

    😀

  • RE: Shredding XML - Need to Include OfferId

    pamozer (3/3/2011)


    Thank you. I actually like the version not using cross apply.

    ... until you test both versions against a larger XML file...

    Your preference may change 😉

  • RE: How to ping a SQL Server datbase?

    Duplicate post. No replies please.

    Original post can be found here

  • RE: Are the posted questions getting worse?

    CirquedeSQLeil (3/3/2011)


    ...

    I'm confused now. HIPAA = HIPPO != Rhino 😎

    Hoola-HIPAA-Hippo as requested 🙂

  • RE: Combine two fields together

    Use your original query????

  • RE: custom sql server

    You could use a cte with ROW_NUMBER() OVER (PARTITION BY Case_Id ORDER BY DateTime DESC) and then query for row=1.

  • RE: Help With Query

    phood (3/3/2011)


    Based on your forum etiquette I did a hack job on this post so I deleted what was in here and will post again in a bit when I...

  • RE: Combine two fields together

    Since I don't know where the blank is coming from (presumably because Field1 is defined as CHAR(5), but it's also possible that the value of field2 starts with a blank)...

  • RE: Question with running .sql file

    You could modify your current script to return the query or any other information before the actual statement.

    Something like

    SELECT 'query: SELECT * FROM sys.columns'

    SELECT * FROM sys.columns

  • RE: Combine two fields together

    would you please provide the sample data you'd like to concatenate?

    Something like

    SELECT 'abc','def'

    Also, please include your current approach.

  • RE: Help With Query

    Please provide table definition and ready to use sample data as described in the first link in my signature. Also, please provide your expected result based on those samples together...

Viewing 15 posts - 1,816 through 1,830 (of 5,504 total)