Forum Replies Created

Viewing 15 posts - 136 through 150 (of 898 total)

  • RE: The Best Programmers

    The article referenced in the editorial is just too good.

    I was simply smiling through the article wondering how can an article be so accurate.

  • RE: Creating an import from sql server

    saurabh_goel_86 (6/19/2013)


    HI,

    Thanks for the assistance..

    I need to import this and send it over to client.

    A .csv format or excel format which ever would be suitable..

    I was wondering which one...

  • RE: Creating an import from sql server

    There is a table which has entries coming to it every day. I need to check which all entries came on Monday.

    Create a table with a column to store date...

  • RE: log shipping version.

    Log shipping should be possible if the primary instance is of a lower version(say, SQL Server 2005) and the secondary instance is of a higher version(say, SQL Server 2008)

    It will...

  • RE: Partitioning in SQL Server 2008

    Sai Viswanath (6/19/2013)


    Hi All,

    One more doubt on partitioning.

    - Do we need to have a primary key in the table which needs to be partitioned?

    - Can I use a composite...

  • RE: pivot query

    This should give you a start

    SELECTMONTH,

    SUM( CASE WHEN RN = 1 THEN MEASURE ELSE 0 END ) AS MEASURE1,

    SUM( CASE WHEN RN = 2 THEN MEASURE ELSE 0 END )...

  • RE: Qry

    ajayvinay1979 (6/18/2013)


    Hi ,

    You can do as

    declare @table as table

    (id int)

    INSERT INTO @table

    SELECT 100 UNION ALL

    SELECT 101 UNION ALL

    SELECT 102 UNION ALL

    SELECT 103 UNION ALL

    SELECT...

  • RE: merge case when

    immaduddinahmed (6/18/2013)


    actullay i am fresh in this field so its ok(LATE HALFDAY). i have to learn more from the internet and the forum like sql server central

    yes your query is...

  • RE: how to get name only from these column of enmae from emp table?

    Arul prakash (6/18/2013)


    select substring(ename,charindex(':',ename)+1,len(ename)) from emp

    The charindex start from "0".......:-)

    Is your solution not the same as the one posted above yours?

  • RE: merge case when

    immaduddinahmed (6/18/2013)


    i do like this

    when convert(varchar(10),t.[Timein],108) >= convert(varchar(10),t4.ltime,108) and

    spendtime is not null then 'LATE '

    else '' end

    + case when (t4.minute- Time_Minutes) >= 120 then + 'HALF...

  • RE: merge case when

    immaduddinahmed (6/18/2013)


    Thanks i get it

    Great. I am glad you got it yourself.

    Anyways here is what I came up with

    SELECTCASE

    WHEN CONVERT(VARCHAR(10), t.[Timein], 108) >= CONVERT(VARCHAR(10), t4.ltime, 108) AND spendtime IS NOT...

  • RE: merge case when

    immaduddinahmed (6/18/2013)


    yes this is what i want Thanks

    but it gives me like this

    Remarks

    LateHALFDAY

    i want this

    late / halfday

    when only halfday remarks show this Halfday

    and when late and halfday remark...

  • RE: how to make trigger

    immaduddinahmed (6/18/2013)


    how i can create a trigger

    Its not possible to explain this in a forum post

    Please check for articles on Google or Books Inline and I am sure you will...

  • RE: Usage of CTE - Trick with Dates

    ChrisM@Work (6/18/2013)


    sagesmith (6/18/2013)


    Please post the times each approach takes, this is the only basis for a conclusion. As others have already mentioned, in many scenarios the cursor far outperforms...

  • RE: how to make trigger

    You will have to create 2 separate triggers on the 2 tables

    Inside the trigger you can write the code to update the new table

Viewing 15 posts - 136 through 150 (of 898 total)