Forum Replies Created

Viewing 15 posts - 181 through 195 (of 1,048 total)

  • RE: SELECT TOP ????

    AS Koen said Please provide the actual execution plan then only we can provide you some suggestion...

  • RE: Comparing a to a substring

    Amit Raut (9/11/2013)


    SELECT * FROM Table A

    INNER JOIN Table B

    WHERE LEFT(A.UserName, 7) = B.ID -- RELEVANT FIELD FROM TABLE B

    Its not a good practice to use functions like LEFT, RIGHT...

  • RE: Compare a date to a previous group of records' max date

    good one Mark 🙂

  • RE: SP_UpdateStats

    excelent articel..

    thanks Grant 🙂

  • RE: Difference

    T-sql is the language which is used to write scripts.

    SQL server is the engine

  • RE: Combine fields

    Please provide the tables structure and desired output.....

    you can check the link in my signature about posting the question

  • RE: Compare a date to a previous group of records' max date

    Your requirement is not clear to me...

    On what basis you are doing rhis thing-

    for Grp 20, dated 05-11-2012, it needs to be compared to the max date for Grp 10...

  • RE: Weird Date Issue slowing down Stored Proc

    It will be good if you use BETWEEN to specify date ranges... I have made some changes in your SP and placed BETWEEN in where condition..

    Please run and let us...

  • RE: Does stored procedure exist?

    adb2303 (9/9/2013)


    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[myproc]') AND type in (N'P', N'PC'))

    DROP PROCEDURE [dbo].[myproc]

    GO

    +1 🙂

  • RE: comparing a column to Todays date

    SQLTestUser (9/9/2013)


    Convert(datetime, DATEDIFF(day, 0, GETDATE())) worked

    IF EXISTS(

    select 1 from Xlog where LogDATE >= cast(getDate() as date) -- should this be datetime if i have Sql server...

  • RE: Pivot views

    Ryan1 (9/10/2013)


    Thanks guys.

    It makes a lot more sense when I see it written out in English.

    I still don't get pivot views entirely. I can write out the...

  • RE: Alternative to Cursor

    Please provide some more information.....

  • RE: wildcards

    Danny Ocean (9/10/2013)


    handkot (9/10/2013)


    I got an error: "String or binary data would be truncated. The statement has been terminated."

    (0 row(s) affected);-)

    Just because of "Steppenwolf" having length 11. So insert...

  • RE: comparision

    what if the value if out of range of INT?

  • RE: Holiday Breaks

    Still only 71% got the right answer :w00t::w00t:

Viewing 15 posts - 181 through 195 (of 1,048 total)