Forum Replies Created

Viewing 5 posts - 61 through 65 (of 65 total)

  • RE: Indexes with more writes than reads

    IMO - it is rare to "over-index" a table - I almost always find the exact opposite. However, things I look for when I see many indexes:

    1. Are...

  • RE: Convert Varchar to Int

    Regarding simply ordering the values so that numerics are all first - in numeric order, and alphas follow in alpha order, that is also simple with the Try_Convert method.

    select [data]

    from...

  • RE: Cast timestamp to string

    ctaylor 79909 (7/10/2015)


    Please note that I changed your suggestion language to prefix a hyphen to the value so I could eliminate the challenge of working through the process of quoting...

  • RE: Convert Varchar to Int

    Use Try_Convert, which does what IsNumeric should have done... Try_Convert(<type>, <data>) returns a NULL if the data cannot be converted to the type, or returns the data converted...

  • RE: Insert-update trigger blocking

    An "instead of" trigger seems like the best solution. It is pretty simple for your example here:

    create trigger table1_ins_upd

    on table1 instead of insert, update

    as

    begin

    declare @num_rows int;

    ...

Viewing 5 posts - 61 through 65 (of 65 total)