Forum Replies Created

Viewing 15 posts - 136 through 150 (of 283 total)

  • RE: varchar to Text

    well, I would guess it's something with the way you are calling your function.

    This works fine...

    declare @var varchar(1000)

    set @var = 'abceref'

    select cast(@Var as text)

     

     



    A.J.
    DBA with an attitude

  • RE: Strip this!!!

    Reading is fundamental....

     

    select  SUBSTRING(column1, PATINDEX('%[^0]%', column1+'A'), LEN(column1))



    A.J.
    DBA with an attitude

  • RE: Strip this!!!

    Functions like that will be run for each and every row in that table I am querying though vs. once in a set based operation.



    A.J.
    DBA with an attitude

  • RE: Strip this!!!

    Amen brother Phil!!!!



    A.J.
    DBA with an attitude

  • RE: Strip this!!!

    because I want it to actually run fast.



    A.J.
    DBA with an attitude

  • RE: Strip this!!!

    Problem is... that replaces all spaces.  Which is no good for what I am doing.



    A.J.
    DBA with an attitude

  • RE: Strip this!!!

    Yup I stole it..



    A.J.
    DBA with an attitude

  • RE: Strip this!!!

    yeah... actually I found that out already...

    this is better

     

    select  SUBSTRING(column1, PATINDEX('%[^0]%', column1+'A'), LEN(column1))



    A.J.
    DBA with an attitude

  • RE: Strip this!!!

    Forget it... I found it.

    My buddy Bill here showed me the light..

     

    select  REPLACE(LTRIM(REPLACE(columX, '0', ' ')), '', '0') AS new_col1  .....



    A.J.
    DBA with an attitude

  • RE: Table with no index has too many indexes

    Could you post the DDL?



    A.J.
    DBA with an attitude

  • RE: CPU mystery

    That CPU # (if you are referring to the same CPU # in profiler) does not represent time, it represents the # of CPU cycles.



    A.J.
    DBA with an attitude

  • RE: what does recompute statistics do and is this recommended

    Recompute statistics will update statistics on all tables in the database.  This is highly recommended.  Poor stats will lead to poor performance.

    Rebuilding an index is synonamous with reindexing.  As records...



    A.J.
    DBA with an attitude

  • RE: User security

    Backup your database frequently

    I have had to deal with this in the past.  I would recommend that you discuss this with the application...



    A.J.
    DBA with an attitude

  • RE: Problem restoring a DB on a linked server - (log shipping inspired!!)

    yeah... definitely stuck in loading.  yeah.  definitely a monday.



    A.J.
    DBA with an attitude

  • RE: Two Things

    Chris... sounds like you either had a really bad day, or someone ran over your dog today.  In either case, you just need to PRAISE JESUS!!!!!

     

    And all will be...



    A.J.
    DBA with an attitude

Viewing 15 posts - 136 through 150 (of 283 total)