Forum Replies Created

Viewing 15 posts - 136 through 150 (of 282 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)

     

     

  • RE: Strip this!!!

    Reading is fundamental....

     

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

  • 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.

  • RE: Strip this!!!

    Amen brother Phil!!!!

  • RE: Strip this!!!

    because I want it to actually run fast.

  • RE: Strip this!!!

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

  • RE: Strip this!!!

    Yup I stole it..

  • RE: Strip this!!!

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

    this is better

     

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

  • 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  .....

  • RE: Table with no index has too many indexes

    Could you post the DDL?

  • 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.

  • 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...

  • 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...

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

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

  • 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...

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