Forum Replies Created

Viewing 15 posts - 376 through 390 (of 1,048 total)

  • RE: error

    Voide (7/16/2013)


    riya_dave (7/16/2013)


    hi

    select * from tableA with(nolock) a

    join tableB with(nolock) b

    on a.id = b.id

    where a.date > getdate()

    i am getting error incorrect syntax near a

    As Gail said, why nolocks?

    Also alias...

  • RE: delete rows

    Hi Riya, its better if you keep of your old data in some temp table and then insert the new data....

    first insert the old data into a temp table...

  • RE: Unexpected Behaviour With SQL Server :,(

    Shadab Shah (7/17/2013)


    kapil_kk (7/17/2013)


    vinu512 (7/16/2013)


    Is Auto Update of Statistics on the Database Disabled??....Check both AUTO CREATE STATISTICS and AUTO UPDATE STATISTICS.........If any of them are disabled then enable them as...

  • RE: Unexpected Behaviour With SQL Server :,(

    vinu512 (7/16/2013)


    Is Auto Update of Statistics on the Database Disabled??....Check both AUTO CREATE STATISTICS and AUTO UPDATE STATISTICS.........If any of them are disabled then enable them as follows:

    -- Enable...

  • RE: Return

    Hi,

    as per the explanation- The stmt "return (select 5)" gives error because in a batch RETURN with integer_expression is not admitted (note: PARENTHESIS cast the SELECT to an integer_expression for...

  • RE: insert or update according the field value

    sa.ordekci (7/16/2013)


    Should I use below bode?

    set @isexist=(select count(*) from GNL_OgretmenDevamsizlikGirisLog

    where OgretmenID=@ogretmenID

    and DersYiliID=@dersyiliID

    and SinifID=@sinifID

    and DersID=@dersID

    and

    Convert(date,GirisTarihi) = Convert(date,getdate())

    )

    if(@isexist>0)

    begin

    end

    I think Chris have already done your homework... refer his post please

  • RE: Not asking for any parameters in stored procedure

    Your stored procedure was executing as you didn't specify any parameters in that sp...

    Please refer Luis post...

  • RE: Scan count vs logical reads

    Can you please post the execution plan?

  • RE: quick edit data

    Sorry, I am not clear with your requirement 😉

  • RE: Role Permission

    yes, you can create database and database objects with the role dbcreator...

  • RE: Handling error message

    Ed Wagner (7/15/2013)


    The RAISERROR simply throws the error. To terminate processing in a stored procedure, you should fire a RETURN.

    yes, that why now am insteady of choosing severity 20...

  • RE: Reset of Identity

    Good start of the day with the easy one 🙂

  • RE: Handling error message

    Actually first I tried with Batch Abort but it did nt work for me.......

    SET XACT_ABORT On;

    select 'yes'

    RAISERROR('yes',20,1)

    select 'yes'

    RAISERROR('NO',16,1)

    SELECT 'NO'

    When error raises then also all select statements gets executed so...

  • RE: Handling error message

    Thanks Wegner for your suggestion...

  • RE: TSQL-Order by

    Thanks for your replies I got it now 🙂

Viewing 15 posts - 376 through 390 (of 1,048 total)