Forum Replies Created

Viewing 15 posts - 3,556 through 3,570 (of 7,484 total)

  • RE: Triggers 2

    Hugo Kornelis (4/25/2013)


    L' Eomot Inversé (4/25/2013)


    But I have a minor quibble: if this is a business rule, it should be enforced by the schema if possible, not by code; and...

  • RE: Triggers 2

    Good question and explanation.

    Triggers that work only on single rows are a common problem, so anything that points out the pitfalls and warns people not to write them is a...

  • RE: Natural Data

    Maybe I'm slightly off topic here, but...

    Once upon a time there was a principle that you could patent a new invention only if it was not something that others familiar...

  • RE: FK to IDENTITY

    Really excellent question with a good clear explanation. More like thios onme, please!

  • RE: Are the posted questions getting worse?

    jcrawf02 (4/24/2013)


    Lynn Pettis (4/23/2013)


    L' Eomot Inversé (4/23/2013)


    Jeff Moden (4/23/2013)


    Heh... to complicated. Just take Jason.A to work and let him entertain the kids with stories of GPO's as if they...

  • RE: Are the posted questions getting worse?

    Jeff Moden (4/23/2013)


    Heh... to complicated. Just take Jason.A to work and let him entertain the kids with stories of GPO's as if they were dragons. 😛

    That's too risky; if...

  • RE: Are the posted questions getting worse?

    SQLRNNR (4/23/2013)


    jasona.work (4/23/2013)


    Frickin fracking g***amn locked down idiot nitwit domains!!!

    Fracking place implemented / started enforcing a policy that prevents ANY accounts from having the "replace a process level token" privilege,...

  • RE: Nested triggers 1

    Hugo Kornelis (4/23/2013)


    The first sentence of the explanation should probably have read "Instead of triggers can cascade regardless of the setting of the nested trigger server option."

    yes, you are write....

  • RE: Help with Triggers

    cmorris1441 (4/20/2013)


    Dird (4/20/2013)


    Yeah I just tested it in my env 😮

    Also the commit shouldn't be within the transaction but I guess you copied it before I added it in~

    Dird

    Should...

  • RE: Normalization

    IgorMi (4/20/2013)


    Hi

    You can use this code to determine if a table has primary key (a condition for 2NF)

    Actually having a primary key is a condition for 1NF. Of course...

  • RE: Normalization

    Ananth@Sql (4/19/2013)


    Is It possible To Identify A Table By Seeing it Whether It is Normalized Or Denormalized?

    In general no. Usually you have to know all the business rules that...

  • RE: Normalization

    m.rajesh.uk (4/20/2013)


    Yes you can get a idea by seeing the table.

    First of all know the normalization forms and see whether they are implemented in table or not.

    example: In your table...

  • RE: tsql query - Count the number of spaces in a string

    David Burrows (6/20/2012)


    vinu512 (6/20/2012)


    Cadavre (6/20/2012)


    Well, I doubt I'd be the developer I am today (or have the job I currently have) without Jeff and a lot of other people from...

  • RE: tsql query - Count the number of spaces in a string

    Lynn Pettis (4/19/2013)


    Like this:

    CREATE FUNCTION [dbo].[ifn_NumOccurrences]

    (

    @sourceString varchar(1000),

    @searchString varchar(10)

    )

    RETURNS TABLE

    AS

    return

    SELECT numTimes = (DATALENGTH(@sourceString) - DATALENGTH(REPLACE(@sourceString COLLATE Latin1_General_BIN2, @searchString, '')))...

  • RE: Help with Idea on Round Robin TSQL solution

    If the number of new students and the number of staff is always small, a simple loop adding one to whoever has the fewest students until there are no new...

Viewing 15 posts - 3,556 through 3,570 (of 7,484 total)