Forum Replies Created

Viewing 15 posts - 3,706 through 3,720 (of 49,571 total)

  • RE: Script to create Triggers

    Orlando Colamatteo (1/30/2016)


    TheSQLGuru (1/30/2016)


    Such a shame too. But it wasn't fully baked when it was released and it has never gotten the attention it needed/deserved from the product team.

    I could...

  • RE: How to do CASE WHEN THEN CASE

    The return value of a function is the literally just value that it returns when run.

    SELECT ISNULL(1, 2) -- returns 1, because the first parameter is not null

    SELECT ISNULL(NULL,5) --...

  • RE: Script to create Triggers

    Kinda makes sense. You may gather that I barely use MERGE. I think the last time I wrote one was when I was teaching a class on T-SQL commands.

  • RE: Script to create Triggers

    Hugo Kornelis (1/30/2016)


    GilaMonster (1/30/2016)


    You don't need both of these, they're checking for the same thing.

    IF @@ROWCOUNT = 0

    RETURN;

    IF NOT EXISTS (SELECT * FROM INSERTED) RETURN;

    True on SQL...

  • RE: Script to create Triggers

    You don't need both of these, they're checking for the same thing.

    IF @@ROWCOUNT = 0

    RETURN;

    IF NOT EXISTS (SELECT * FROM INSERTED) RETURN;

  • RE: BIG HELP Needed!!

    The login that the access app is using can no longer connect to the DB db2. Either:

    - The DB is no longer there

    - The DB cannot be opened

    - The login...

  • RE: Strange Performance Issue

    You don't need to rebuild the indexes, doing so is a massive waste of time. Fragmentation's not the problem. The stats are out of date, that's the problem.

  • RE: Script to create Triggers

    You didn't even try to run that...

    Msg 156, Level 15, State 1, Procedure TR_Aud_Update_Datetime_Update_User, Line 15

    Incorrect syntax near the keyword 'EXISTS'.

    Go back and look at Hugo's example of an...

  • RE: "Blocked process report" in sql server Profiler

    I think you get exactly what you asked for with that. The test of the most recent batch run on that session, as per c.most_recent_sql_handle. No, it's not random, or...

  • RE: Script to create Triggers

    SQL!$@w$0ME (1/30/2016)


    Sorry, I'm not good with scripting!

    Why don't you take this as an opportunity to get better? Hugo explained what's needed, and I'm sure he'll fix errors if you try...

  • RE: BIG HELP Needed!!

    The cause of the problem is that the database named "db2" is either no longer on that instance, or can't be opened or the login no longer has permission to...

  • RE: "Blocked process report" in sql server Profiler

    If SQL said that procedure was the cause of the blocking, then it was the cause of the blocking.

    150 commands and 3 minutes is insane for a transaction. Does...

  • RE: "Blocked process report" in sql server Profiler

    ReadUncommitted doesn't mean no locks. It means that selects don't take shared locks (and that your results can be quite inaccurate due to rows read twice or not read at...

  • RE: Are the posted questions getting worse?

    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 berated...

  • RE: Are the posted questions getting worse?

    Ed Wagner (1/29/2016)


    Is it really that much better than SSMS intellsense? I'm asking because I don't know; not trying to start a riot.

    Oh, hell, yes. SSMS intellisense...

Viewing 15 posts - 3,706 through 3,720 (of 49,571 total)