Forum Replies Created

Viewing 15 posts - 406 through 420 (of 927 total)

  • RE: compare and insert record

    As per my understanding which could be wrong, your actual query will not bring the correct records. if you want to exclude the records, then you should follow LEFT Join...

  • RE: Preventing recompile

    Nice question. Thanks for sharing

  • RE: INSERT only when value has been updated?

    As STEVE mentioned there are many ways.

    Following is a solution as per the understanding i get 🙂

    Declare @Source table (EventCol varchar(10), UpdateTime datetime)

    Declare @destination table (EventCol varchar(10), UpdateTime datetime)

    --------------...

  • RE: How to tune INSERT query

    Eirikur Eiriksson (10/14/2014)


    Quick question, can you post the full DDL of the table and the indices?

    😎

    in addition to the above question, is there any Trigger on this table ?

  • RE: ROW_NUMBER

    Nice question. Thanks for sharing

  • RE: SSRS 2008 Date Comparison Expression

    you need something like (Assumption is the parameters are for DateTime Type).

    = IIF(

    DateSerial(Year(Parameters!Report_From_Date.Value), Month(Parameters!Report_From_Date.Value), "1").AddMonths(1).AddDays(-1)

    =

    DateSerial(Year(Parameters!Report_To_Date.Value), Month(Parameters!Report_To_Date.Value), "1").AddMonths(1).AddDays(-1)

    ,1,0)

    it will return '1' for equal, and '0' if not,

    Explanation:

    getting the month &...

  • RE: SSRS 2008 Date Comparison Expression

    your expression will fail if the years changes

    something like this

    From Date = 01 September 2013

    To Date = 30 September 2014

  • RE: Transactions

    Nice and easy. Thanks for sharing.

  • RE: Random values

    Nice question. Thanks for sharing

  • RE: How many rows will be returned?

    Very nice question. Thanks for share Subhash.

  • RE: Which type of Numbers?

    Koen Verbeeck (9/17/2014)


    Hany Helmy (9/16/2014)


    Koen Verbeeck (9/16/2014)


    Sean Pearce (9/16/2014)


    And this relates to SQL Server how? I am not here for maths lessons.

    It's an exercise in reading T-SQL 🙂

    Still not convinced...

  • RE: Pausing

    karthik babu (9/16/2014)


    Few days back I read this in the same SSC I guess. And it was the one from where I came to know the answer. SSC Rocks!! 🙂

    +1,...

  • RE: Synonyms 2

    Nice and easy, Thanks for sharing.

  • RE: Storing code in Version control

    Stewart "Arturius" Campbell (9/12/2014)


    Easy one, thanks Steve

    Good way to end the week...

    +10 🙂

  • RE: Truncate table query

    Koen Verbeeck (9/11/2014)


    Please don't say truncate table data isn't logged unless you understand the concepts involved.

    😉

    The Myth that DROP and TRUNCATE TABLE are Non-Logged

    +1, i remember in my earlier days...

Viewing 15 posts - 406 through 420 (of 927 total)