Forum Replies Created

Viewing 15 posts - 5,881 through 5,895 (of 7,608 total)

  • RE: SELECT clause

    ChrisM@Work (8/7/2014)


    ScottPletcher (8/7/2014)


    ChrisM@Work (8/7/2014)


    gstarsaini (8/7/2014)


    Thanks for the reply.

    This means there is no effect on the queries?

    Each reply posted to your question implies "maybe", "probably" or "definitely". The average of these...

  • RE: SELECT clause

    ChrisM@Work (8/7/2014)


    gstarsaini (8/7/2014)


    Thanks for the reply.

    This means there is no effect on the queries?

    Each reply posted to your question implies "maybe", "probably" or "definitely". The average of these isn't "definitely...

  • RE: SELECT clause

    gstarsaini (8/7/2014)


    Do multiple SELECT queries on the same table but different condition in WHERE clause block or affect each other in any way?

    They definitely could. The WHERE conditions determine...

  • RE: Stupid Stored Procedure Question Nbr 1

    Bill Talada (8/6/2014)


    To be chosen as a deadlock victim, two threads must be inside transactions. If thread one updates tableA then tableB while thread two updates tableB then tableA...

  • RE: Difference In Query Plans while Executing Same Query Independently and Within Stored Proc

    For best performance overall, I strongly suspect you need to change the clustered indexes on the tables. We would have to look at least at missing index and index...

  • RE: Table size is Huge!!!

    LutzM (8/6/2014)


    Here are a few options to make that single table "smaller":

    If the table contains a rather large number of columns (e.g. 50 or more) you might consider "vertical partitioning",...

  • RE: Remotely called job returns success even if it's not finished

    Basically, I want to wait for the job to complete and then send either a success or failure email based on the outcome of the job.

    Again, I urge you to...

  • RE: Remotely called job returns success even if it's not finished

    For that, you could create a proc on the remote server. You execute the proc remotely, and the proc can issue the start job, and then monitor for job...

  • RE: Creating Index take a long time

    8 hours seems extraordinarily extreme for 172M rows. It seems like there must be more to the story.

    Are you changing the clustered index on the table? Does the...

  • RE: Find Changed Rows (and the row prior to the changes)

    I'd also create the best indexes while re-working the code.

    #Events indexes:

    1) Unique Clustered on ( ProcessDate, L4Ident ) --in that order

    2) Nonclustered on ( L4Ident )

    3) NNonclustered on ( LinkRL4,...

  • RE: Below Update statement is not working! any Idea why

    dkriplani97 (8/1/2014)


    this update statement is working

    UPDATE TableA

    SET Value = isnull((select top 1 Value from #tmpcopylibrary

    where dataid = tempquerydataid), 0).

    however this is not working

    UPDATE TableA

    SET Value = isnull((select top 1...

  • RE: SQL procedure Query Performance issue

    OPENQUERY does not allow variables, only literal/static queries.

    Try code below instead.

    --temporarily add "TOP (100)" to the query for testing purposes

    SET @tsql = STUFF(@tsql, CHARINDEX('SELECT', @tsql) + 6, 0, ' TOP...

  • RE: SQL - case statement

    Eirikur Eiriksson (8/1/2014)


    ScottPletcher (8/1/2014)


    If the table may or may not exist, you'll have to make references to that table only in dynamic SQL. Otherwise, if the code runs and...

  • RE: SQL - case statement

    If the table may or may not exist, you'll have to make references to that table only in dynamic SQL. Otherwise, if the code runs and the table does...

  • RE: Missing Century in Date

    Agreed, nice code.

    But if it's a birthday, wouldn't it be reasonable to use the current date + 1 as the cutoff, since there won't be future birthdates but someone could...

Viewing 15 posts - 5,881 through 5,895 (of 7,608 total)