Forum Replies Created

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

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

    SQLKnowItAll (2/23/2012)


    It doesn't look like that will do any good since the identifiers for the event are on a separate line.

    Not sure what you mean by this, since each row...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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'...

    Far away is close at hand in the images of elsewhere.
    Anon.

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

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

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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!

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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:

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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))

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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:...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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'...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Problem with running total

    Confused :crazy:

    Scrapped post, answer not right :blush:

    Far away is close at hand in the images of elsewhere.
    Anon.

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