Forum Replies Created

Viewing 15 posts - 6,841 through 6,855 (of 7,472 total)

  • RE: Trigger Activation !!!!!!!

    That's the concept of triggers, fire always when from the designed action.

    If you have full control regarding the invocation of the designed...

  • RE: Data manipulation nightmare

    It might even be from a _new_ mainframe db

    create function dbo.fnGetNextRecNo(@company xx, @customer xx, @glperiod xx, @transaction)
    returns smallint
    as
        begin
           ...

  • RE: How to clear the collation of a column

    If for any reason your database collation is changed, your existing tables will not be affected. If they used the "old" db-collation, they will still use the "old" db-collation, even...

  • RE: How to clear the collation of a column

    how about :

    alter table mytable

    alter column mycol type_and_length COLLATE mynewcollation

    Ofcourse backup before!!

    Maybe even script the full db, create...

  • RE: Trigger Activation !!!!!!!

    the trigger will always be firred, but will only perform some stuf when meeting some criteria.

     

    CREATE TRIGGER TR_mytable_ins ON [Mytable]

    FOR INSERT

    AS

    BEGIN

    if inserted.Mycolumn = 'myvalue'

    begin

      my work to be done

    end

    END

  • RE: foreign key - index

    Keep in mind that when you have existing indexes with the same column(s), ordinal and direction and you run this script, it will create extra indexes which are redundant, so...

  • RE: MSX Server

    mu 2ct

    maybe edit the jobs and set 'target' to the local (test) server.

    Then delete the jobs.

  • RE: Question of the Day for 11 Nov 2004

    in addititon this testscript :

  • RE: Insert From Query failure

    sometimes even a DBA has to proove (s)he's only human

  • RE: Populating @Variables dynamically

    The nice thing about "dynamic"  is that it has issues

    Because "exec (@sql)" lives its own life,...

  • RE: Insert From Query failure

    you might want to perform a left join or a not exists.

    insert into tableB

    select  A.* (I hate * but in this case maybe ...)

    from tableA A

    left join TableB...

  • RE: foreign key - index

    Same player shoots again ...

     

    Test this : 

    'T_ParentMC' =...

  • RE: foreign key - index

    That's correct ! Sorry for that 

    I didn't notice because I didn't document that in the script at the time I developed it. 

  • RE: foreign key - index

    Hi Noelson,

    This is part of a script I used to convert some pk-indexes (clusterd/nonclusterd).

    Test it for usability for your purpose.

    Declare @TbNaam varchar(128)

    set @TbNaam = 'T_Tabel'

    create table ##Tmp_TbRefsW1 (

    cType...

  • RE: "," used as a decimal separator

    no can do.

    Structured Query Language (SQL) uses a comma as a separator and not as a decimal sign.

    You can avoid this problem by...

Viewing 15 posts - 6,841 through 6,855 (of 7,472 total)