Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Posts
    5

    Question Unanswered: Cursor and Procedure

    Hello:

    I want find that the ntext column data string have more than 2000 characters. I need to truncate those string to segment with 200 character, then put those segments along with their table_name and column_name to another table. Maybe need to use cursor? If so, how to use it?

    Your help is highly appreciated.

    s

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    It is almost always a bad idea to "seek and sunder" data, splitting it into smaller pieces solely to make it into smaller pieces. I've done it more than once, but I've always regretted doing it in the long run.

    -PatP

  3. #3
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    I second Pat's opinion; in fact I've been fighting the powers that be recently because they have "suggested" that I implement some work this way.

    It will only end in heartache
    George
    Home | Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •