Forum Replies Created

Viewing 15 posts - 391 through 405 (of 1,957 total)

  • RE: Merging XML Variables Like a Table Join

    Alternatively, a way that might help if the elements to be inserted can vary by each run - using XML.modify to insert the child elements into the TopLevel document.

    Each...

  • RE: how do you break out of a foreach loop

    It sounds a lot like you really need to have two nested loops,

    Loop 1 ) foreach date

    .. Loop 2) foreach file matching date

  • RE: Do recursive call without a ParentID column

    This may help kick you along the right path, but if you are dealing with a large dataset this won't be good for performance...

    declare @ID int; -- the first order...

  • RE: Pre 2012 Stored Procedure: Need some DEV advice (COMPUTE BY TO WITH ROLL UP)

    You will need to add support for SQL2012 by changing line 163 to this:

    IF @Version IN (N'9', N'10', N'11')

    I would change the final select to this:

    ...

  • RE: Issue With Producing Running Total Column In Select Clause

    That doesn't look like a running total, merely a grouped sum.

    Try this:

    SELECT

    EmployeeID

    , Project

    , Sunday

    , Monday

    ,....Saturday

    , ProjectHours

    , SUM(ProjectHours) OVER(Partition BY FiscalWeek)...

  • RE: Need Help parsing through the XML

    Evil Kraig F (7/21/2014)


    mister.magoo (7/21/2014)


    So is that right? You have a stored procedure that produces XML from data stored in tables and now you want to shred that XML to...

  • RE: How to efficiently import data in .rpt format into SQL 2008

    Make sure the format file is encoded as ANSI, not unicode.

    You can do this using notepad.exe - just open the file, then go to Save As... and check the Encoding....

  • RE: Need Help parsing through the XML

    So is that right? You have a stored procedure that produces XML from data stored in tables and now you want to shred that XML to store the data in...

  • RE: Datetime conversion issue

    christine.c.ringleb (7/16/2014)


    Thank you for your suggestions.

    I have the DATEFORMAT set correctly and validated with dbcc useroptions.

    I don't have any date fields stored as character strings. All date fields...

  • Viewing 15 posts - 391 through 405 (of 1,957 total)