Forum Replies Created

Viewing 15 posts - 991 through 1,005 (of 3,348 total)

  • RE: Script to create Triggers

    Looks a lot better this way!

    Final remarks:

    * Try to avoid using [brackets] where they are not needed. In your case, the brackets around [dbo], [Users], and [TR_Aud_Update_Datetime_Update_User] are not needed....

  • RE: Are the posted questions getting worse?

    Ed Wagner (1/30/2016)


    I enjoy helping people, but honestly, what do they they expect from a free help forum?

    The problem is, as long as there is as much as a single...

  • RE: Script to create Triggers

    Sure, if you post your current version of the script I'll help you make the changes.

  • RE: Are the posted questions getting worse?

    GilaMonster (1/30/2016)


    Is it me, or are there weird threads again today. "I want the challenge of trying to fix it without using the easy way" says one, and a second...

  • RE: How to do CASE WHEN THEN CASE

    Though you have your answer, I'd like to add that in many cases it is not needed to nest CASE expression. For instance, this should work for you as well:

    CASE...

  • RE: Read Write Deadlock

    kudz (1/29/2016)


    There is no swap order possible as the first session it's just a select statement and sql choses the order it access the tables right ?

    I think you missed...

  • RE: Facing problems with memory/cpu pressure because of multiple executions of the code

    Kevin apologizes for sounding harsh ...

    I am going to sound much harsher, and I am not even going to apologize for it.

    ffarouqi (1/29/2016)


    Come on people, forums are meant to ask...

  • RE: Script to create Triggers

    If the column User_ID is constrained to be unique and not nullable, then the trigger should work. You should still test, of course.

    There are some modifications I would make if...

  • RE: Make Rows to a Column

    How will you determine which value goes into which column?

    What will you do when there are more values for a column?

    Really, this appears to be a formatting request, and formatting...

  • RE: Trying to replace UNION

    Oops. Checked and double checked the dates multiple times and still overlooked the difference.

    My bad.

  • RE: Read Write Deadlock

    Not sure why you would want to avoid row versioning.

    Anyway, the other standard techniques for avoiding deadlocks are:

    1. If you know or expect that a row you read might get...

  • RE: check constraint not working as per the condition defined in sql server

    SQL Server will execute the function to verify your check constraint *after* inserting the row.

    Assuming that your row has sdate < edate, that row itsself will trigger the condition for...

  • RE: Trying to replace UNION

    Luis Cazares (1/29/2016)


    Yet another option. However, I'm not sure which of the proposed versions would be the best option.

    SELECT Id,

    Amount,

    CashFlowDate

    FROM #Test

    CROSS APPLY( VALUES(Principal, 'Principal'), (Interest, 'Interest')) x(Amount,AmtType)

    WHERE...

  • RE: SQL Query - 2 tables required result field is different to linking field

    I actually recommend that you *should* open SSMS and query the database correctly. Last time I looked, most queries fired from Access involved transporting all data over the network and...

  • RE: SQL Query - 2 tables required result field is different to linking field

    Shabbaranks (1/29/2016)


    Hi,

    Thanks for your reply, Im not a complete newbie as I have an Access background and so I do understand joins and relationships. What I struggle with is working...

Viewing 15 posts - 991 through 1,005 (of 3,348 total)