Forum Replies Created

Viewing 15 posts - 1,006 through 1,020 (of 3,543 total)

  • RE: Using BULK INSERT with a non delimited flat file

    Create a table with an IDENTITY column and a single varchar column set to max length of input line

    bulk load the data

    then select the relevent detail associated to each 'Event'...

  • RE: Convert minutes to HH:MM:SS format

    CONVERT(char(8),DATEADD(minute,[value],0),114)

  • RE: TRUNCATE TABLE and ROLLBACK TRAN

    GilaMonster (2/6/2012)


    Given the distribution of answers, I'm considering a followup question - "does recovery model ever affect the ability to rollback transactions?" because it appears way too many people don't...

  • RE: Are the posted questions getting worse?

    SQLRNNR (1/31/2012)


    Worse, what if more tables get added, how do i create a polygon in tsql?

    Meh! Dodecahedron with the emphasis on doh!

  • RE: search query as per selected checkboxes

    I think your dynamic query should look like this

    SET @hpQyery= 'SELECT p.Id,

    p.[PropertyAddress],

    s.MainCityState,

    c.CityValue

    FROM Property p

    JOIN cj_MainCity_States s ON s.[id]=p.MainCityStateId

    JOIN FROM cj_Cities c WHERE c.[id]=p.CityId...

  • RE: Are the posted questions getting worse?

    SQLRNNR (1/12/2012)


    I have a four letter word in mind for him in regards to his 2+2 question:-D

    Five! ???? :w00t:

  • RE: Question for the "experts"

    DeanORenO (1/12/2012)


    I like all the interpretations of my question but still no answer. I imagine if I asked the question what is 2 + 2, I would get people telling...

  • RE: Divide by Zero why so difficult?

    IIf(Fields!EmailSold.Value = 0, 0, (Fields!EmailSold.Value+Fields!EmailNotSold.Value) \ IIf(Fields!EmailSold.Value) = 0, 1, Fields!EmailSold.Value))

  • RE: How to manage working with multiple select concatenated parameters

    Create a DataSet (eg DataSet1) and set the query to

    SELECT DISTINCT mastercompanyid,RTRIM(CompanyName) + ' ' + Convert(varchar(25),mastercompanyid) AS Company

    FROM vCompanyView

    Create Parameter eg ReportParameter1 and tick Allow multiple values

    For Available Values

    Dataset:...

  • RE: Are the posted questions getting worse?

    Koen Verbeeck (1/4/2012)


    .. my wife gave birth to a wonderful son ...

    Congrats Koen 😀

    And to repeat previous query

    USE MANY_MANY_PATIENCE

    GO

    DROP Dirty_Nappy

    GO

    INSERT Baby INTO Nappy

    SELECT Clean_Nappy

    FROM Nappy_Pile

    WHERE COUNT(Clean_Nappy) > 0

    GO

    GRANT ALL...

  • RE: Concurrent Operations

    Hugo Kornelis (12/15/2011)


    If you really want to test the statement made in today's question, you have to run the two backup commands from two seperate tabs in SSMS

    Out of curiosity...

  • RE: Problem with running total

    OK, my first idea for an answer before I did the cte thinng was

    SELECTa.PostPeriod, a.NPI, a.location, a.location_mapping, a.location_category, a.category, a.CPT, a.modifier, a.MTDCharges, a.MTDUnits,

    SUM(b.MTDCharges) AS [YTDCharges],

    SUM(b.MTDUnits) AS [YTDUnits]

    FROM...

  • RE: Problem with running total

    OK maybe this then

    ;WITH cte (Period) AS (

    SELECT '11010' UNION ALL

    SELECT '11011' UNION ALL

    SELECT '11012' UNION ALL

    SELECT '11101' UNION ALL

    SELECT '11002' UNION ALL

    SELECT '11003'...

  • RE: Problem with running total

    Confused :crazy:

    Scrapped post, answer not right :blush:

  • RE: Are the posted questions getting worse?

    L' Eomot Inversé (12/13/2011)


    .... isn't it somewhat improper to go around feeling posts...

    Feeling posts is OK, taking them home to see mama, that's improper :hehe:

    Jeff Moden (12/13/2011)


    Only if the posts...

Viewing 15 posts - 1,006 through 1,020 (of 3,543 total)