Forum Replies Created

Viewing 15 posts - 5,161 through 5,175 (of 7,619 total)

  • RE: Converting job duration from Job History and use it on email notifications

    The step is not posted in sysjobhistory until it completes. If the job is still running, you will get the previous job.

    If you need to get only the last...

    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: Converting job duration from Job History and use it on email notifications

    DOUBLE DOH! I just noticed I left of the step# check in the code; please add this to the WHERE clause:

    AND jh.step_id = 0

    That code is checking for the...

    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: SQL query help

    ZZartin (4/23/2015)


    ScottPletcher (4/23/2015)


    Lynn Pettis (4/23/2015)


    ScottPletcher (4/23/2015)


    Lynn Pettis (4/23/2015)


    CELKO (4/22/2015)


    Why are you changing obvious integer data types to character data types?

    Please read any book on basic data modelling and look...

    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: SQL query help

    Lynn Pettis (4/23/2015)


    ScottPletcher (4/23/2015)


    Lynn Pettis (4/23/2015)


    CELKO (4/22/2015)


    Why are you changing obvious integer data types to character data types?

    Please read any book on basic data modelling and look at the...

    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: SQL query help

    Lynn Pettis (4/23/2015)


    CELKO (4/22/2015)


    Why are you changing obvious integer data types to character data types?

    Please read any book on basic data modelling and look at the chapters on scales...

    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: SQL query help

    CELKO (4/22/2015)


    How exactly does one compute a check digit on a string-only characters? I don't believe that MC or VISA are spending hundreds of millions of extra dollars on storage...

    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: Insert DATE --Confused with convert

    Orlando Colamatteo (4/22/2015)


    ScottPletcher (4/22/2015)


    Orlando Colamatteo (4/22/2015)


    ScottPletcher (4/22/2015)


    Orlando Colamatteo (4/22/2015)


    I'll second the point: definitely store your dates and times in a column of type DATETIME. If you make that a non-negotiable...

    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: SQL query help

    CELKO (4/22/2015)


    Why are you changing obvious integer data types to character data types?

    Please read any book on basic data modelling and look at the chapters on scales and measurements....

    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: Insert DATE --Confused with convert

    Orlando Colamatteo (4/22/2015)


    ScottPletcher (4/22/2015)


    Orlando Colamatteo (4/22/2015)


    I'll second the point: definitely store your dates and times in a column of type DATETIME. If you make that a non-negotiable starting point the...

    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: What is the Formula to estimate\forecast space for non-clustered index on a table

    Eric M Russell (4/22/2015)


    ScottPletcher (4/22/2015)


    Eric M Russell (4/22/2015)


    ScottPletcher (4/22/2015)


    With an existing table, you already know what the length of the columns will be, whether varchar or not. The formula...

    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: What is the Formula to estimate\forecast space for non-clustered index on a table

    Eric M Russell (4/22/2015)


    ScottPletcher (4/22/2015)


    With an existing table, you already know what the length of the columns will be, whether varchar or not. The formula provides you with the...

    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: What is the Formula to estimate\forecast space for non-clustered index on a table

    With an existing table, you already know what the length of the columns will be, whether varchar or not. The formula provides you with the additional overhead SQL requires...

    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: SQL query help

    It has to be the pointy-haired boss types that hire Celko. No one who actually knew any practical implementations would ever change obvious numeric values to character. There'd...

    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: Need help to display row as 2 days ago, 1 hours 34 Minutes ago, 11 minutes ago

    SELECT

    crtdte,

    ISNULL(CAST(NULLIF(minutes_ago / 1440, 0) AS varchar(5)) + ' days, ', '') +

    ISNULL(CAST(NULLIF(minutes_ago % 1440 / 60, 0)...

    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: What is the Formula to estimate\forecast space for non-clustered index on a table

    Books Online has very specific formulas for how to do that, under:

    "Estimating the Size of a Nonclustered Index"

    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 - 5,161 through 5,175 (of 7,619 total)