Forum Replies Created

Viewing 15 posts - 886 through 900 (of 3,543 total)

  • RE: INSERTION

    Depending on the data and insert statements you could parse the insert statements into another table and then insert from there

  • RE: Import and Export Wizard Error(Importing data from Excel sheet to DB)

    Did you set the length in both the input and output properties for the column?

  • RE: select query

    CASE WHEN CASE WHEN date1 > date2 THEN date1 ELSE date2 END > CASE WHEN date3 > date2 THEN date3 ELSE date2 END THEN CASE WHEN date1 > date2 THEN...

  • RE: Same table twice left join issue

    For your data containing 2 months

    ;WITH

    m (Month1, Month2)

    AS (

    SELECT MIN(Month), MAX(Month)

    FROM #tmp_h

    UNION ALL

    SELECT MAX(Month),MIN(Month)

    FROM #tmp_h

    ),

    n (name, subject)

    AS (

    SELECT name,...

  • RE: Order My Data

    nuff said 😛

  • RE: Are the posted questions getting worse?

    Jeff Moden (12/1/2013)


    dwain.c (12/1/2013)


    cow is referred to as wua[/b] - don't ask me why)[/i][/b]

    FINALLY!!! AFTER NEARLY 40 YEARS, AN EXPLANATION!!!! When I was in the service, I had a...

  • RE: extract the id's only

    REPLACE(STUFF(Name,1,CHARINDEX('[',Name+'['),''),']','')

  • RE: formatting varchar as percentage

    CAST(CAST(someVariable as int) as varchar(30)) + '%'

  • RE: ssrs 2008 r2 export to pdf problem

    Check the width of the body, if this exceeds the paper size it will cause the effect you state.

  • RE: Difference between two dates ignoring the year

    Is it exactly 2 days?

    Is it +/- 2 days?

    How many rows?

    One way would be to calculate the day number +/- 2 for the current date and compare that to the...

  • RE: Extract string

    Lowell (11/26/2013)


    ok, a kewl sneaky way taking advantage of parsename

    Declare @TableName varchar(128) ='ABCD_kkk_DDD'

    SELECT PARSENAME(REPLACE(@TableName,'_','.'),2)

    As long as the string does not already contain full stops 😉

  • RE: Extract string

    Why another>

    Is there a special requirement?

    You could use a splitter, eg DelimitedSplit8K (search this site).

    Although this seems overkill for this.

  • RE: Extract string

    One way

    SUBSTRING(@string,CHARINDEX('_',@string)+1,CHARINDEX('_',SUBSTRING(@String,CHARINDEX('_',@string)+1,255))-1)

  • RE: SSRS 2008 use several iif statements together

    Steven.Howes (11/22/2013)


    I should have tested it first...

    =IIF(Globals!RenderFormat.Name="EXCEL","White", IIf(RowNumber(Nothing) Mod 2 = 0, "Gainsboro", "White"))

    I had to reverse the TRUE/False part and the render report format type, but this should work.

    Nice...

  • RE: Cursor fetch loops endlessly

    Gavin Lock (11/22/2013)


    You might be bumping into the Halloween Problem.

    I was able to repro your problem like this:

    Changing the cursor to STATIC will stop your query looping.

Viewing 15 posts - 886 through 900 (of 3,543 total)