Forum Replies Created

Viewing 15 posts - 76 through 90 (of 112 total)

  • RE: Deterministic UDF slower than Non-Deterministic?

    Lynn Pettis (8/3/2010)


    dant12 (8/3/2010)


    Jeff Moden (8/3/2010)


    dant12 (8/2/2010)


    yeah sure ill send you a .csv if your willing to play with it, but i wouldnt bother so much. you already gave me...

    --
    Thiago Dantas
    @DantHimself

  • RE: Deterministic UDF slower than Non-Deterministic?

    Jeff Moden (8/3/2010)


    dant12 (8/2/2010)


    yeah sure ill send you a .csv if your willing to play with it, but i wouldnt bother so much. you already gave me lots of ideas...

    --
    Thiago Dantas
    @DantHimself

  • RE: Deterministic UDF slower than Non-Deterministic?

    yeah sure ill send you a .csv if your willing to play with it, but i wouldnt bother so much. you already gave me lots of ideas with both ur...

    --
    Thiago Dantas
    @DantHimself

  • RE: Deterministic UDF slower than Non-Deterministic?

    dunno whats wrong with your function but it performed way slower than the old one

    DECLARE @A DATETIME = GETDATE() -- CLR

    SELECT DBO.UF_TRATASTRING(NOME_DEV) FROM TB_DEVEDOR

    SELECT DATEDIFF(MS,@A,GETDATE())

    GO

    DECLARE @A DATETIME = GETDATE() --...

    --
    Thiago Dantas
    @DantHimself

  • RE: Deterministic UDF slower than Non-Deterministic?

    Jeff Moden (8/1/2010)


    dant12 (7/31/2010)


    wow Jeff, thats a nice load of replaces lol. ill test it first thing on monday and post the results against the old T-SQL and the CLR...

    --
    Thiago Dantas
    @DantHimself

  • RE: Deterministic UDF slower than Non-Deterministic?

    wow Jeff, thats a nice load of replaces lol. ill test it first thing on monday and post the results against the old T-SQL and the CLR functions. Thanks for...

    --
    Thiago Dantas
    @DantHimself

  • RE: Deterministic UDF slower than Non-Deterministic?

    alright, here it goes.

    T-SQL code (var names and common words are in portuguese)

    CREATE FUNCTION [dbo].[UF_TRATASTRING]

    (

    @PALAVRA NVARCHAR(3000)

    )

    RETURNS...

    --
    Thiago Dantas
    @DantHimself

  • RE: Preventing a Stored Procedure to run simultaneously

    i agree with ken. we have a similar requirement and we use this inside our proc

    put this in the beginning of the proc

    DECLARE @PROC VARCHAR(20)

    DECLARE @SUCESS AS INT

    SET @PROC =...

    --
    Thiago Dantas
    @DantHimself

  • RE: SPID related question

    Ok, ill explain further

    We have a stored procedure that gathers information on incosistencies from the ETL process on a #temp table and exports a csv file via BCP

    each of the...

    --
    Thiago Dantas
    @DantHimself

  • RE: SPID related question

    I mean a third-party application creating a new thread using the same sql server SPID

    --
    Thiago Dantas
    @DantHimself

  • RE: Help with keeping the leading zeros

    as far as I know you can't "SELECT * INTO TABLE" into an already created table, so I don't think the problem is the target table definition as it doesn't...

    --
    Thiago Dantas
    @DantHimself

  • RE: All distinct number combinations

    Thanks alot Peter, thats exactly what I was looking for.

    I tried achieving this with CROSS JOINS but got very very far away from expected results

    --
    Thiago Dantas
    @DantHimself

  • RE: All distinct number combinations

    there are 10 parameters now, this can change but not much, should be around 6-12 tops.

    I used 8, this could be 6-9 but I prefer to do it with a...

    --
    Thiago Dantas
    @DantHimself

  • RE: Replace Function in SQL 2005 and 2008

    that is what i was thinking, but they must have changed it from 2005 to 2008 and im pissed that microsoft doesnt even mention it anywhere

    --
    Thiago Dantas
    @DantHimself

  • RE: Replace Function in SQL 2005 and 2008

    yes, but REPLACE should convert it to nvarchar data-type and get rid of the extra spaces, right?

    --
    Thiago Dantas
    @DantHimself

Viewing 15 posts - 76 through 90 (of 112 total)