Forum Replies Created

Viewing 15 posts - 3,391 through 3,405 (of 7,613 total)

  • RE: will this SQL trigger recursive

    Also, don't you want to subtract 1 from the substring length to you get rid of the period and everything after it in the string (that seems to me to...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Number of Days between two Day Names

    Lynn Pettis - Wednesday, May 9, 2018 3:34 PM

    ScottPletcher - Wednesday, May 9, 2018 2:48 PM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Number of Days between two Day Names

    Lynn Pettis - Wednesday, May 9, 2018 9:49 AM

    ScottPletcher - Wednesday, May 9, 2018 7:40 AM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Performance issue with the table having 40M rows

    As always, clustering key is the most critical thing.

    Do you (almost) always specify the deal_id when reading the dbo.avt_deal_restriction table?  If so, cluster that table on ( deal_id,...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Number of Days between two Day Names

    Lynn Pettis - Tuesday, May 8, 2018 4:20 PM

    patrickmcginnis59 10839 - Tuesday, May 8, 2018 3:45 PM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Aggregating values from multiple db's

    Unless you pre-build a combined table of all the sys.objects 'FN' entries for each db, you won't be able to do this.  AFAIK, you can't get the object type and...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: DDL trigger causing inserts to fail

    Feivel - Tuesday, May 8, 2018 10:27 AM

    ScottPletcher - Tuesday, May 8, 2018 10:13 AM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: DDL trigger causing inserts to fail


    CREATE TRIGGER [trg_srv_audit_DDL_Event]
    ON ALL SERVER
    WITH EXECUTE AS '<login_name>' /* replace with your own login_name with authority to write to audit table, etc. */

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Updating datetime2 column not working

    Lynn Pettis - Tuesday, May 8, 2018 8:21 AM

    ScottPletcher - Tuesday, May 8, 2018 6:58 AM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Number of Days between two Day Names

    Lynn Pettis - Monday, May 7, 2018 5:56 PM

    jasona.work - Monday, May 7, 2018 5:49 PM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Updating datetime2 column not working

    Lynn Pettis - Monday, May 7, 2018 5:06 PM

    ScottPletcher - Monday, May 7, 2018 4:05 PM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Updating datetime2 column not working

    Lynn Pettis - Monday, May 7, 2018 4:01 PM

    ScottPletcher - Monday, May 7, 2018 3:58 PM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Updating datetime2 column not working

    Yeah, you must use colons instead of dots in the time.  I'm used to seeing either one ... but SQL isn't.

    SELECT CAST('20180326 05:00:00' as datetime2)

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Updating datetime2 column not working

    There must be a trigger(s) on the table that is incorrectly handling a date string (?).

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Updating datetime2 column not working

    Get rid of the dashes in the date, they can cause issues.

    UPDATE T_MYTABLE SET dateTransferred = '20180326 05.00.00' where id = 1223

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

Viewing 15 posts - 3,391 through 3,405 (of 7,613 total)