Results 1 to 6 of 6

Thread: Help!! [RESOLVED]

  1. #1

    Thread Starter
    Lively Member nokia8210's Avatar
    Join Date
    Dec 2002
    Location
    Coventry
    Posts
    92

    Help!! [RESOLVED]

    i've got a table on sql that holds over 9000 names they are all one string i.e. mr j j Smith, etc.

    i need to read the table into a dataset split the string then feed that data into a new dataset can you help me????

    once i've done that i need to update another table using the diferent columns.

    any idea's have tried the obvious one of filling a dataset the using a split function but i don't know where to go after that any ideas?
    Last edited by nokia8210; Feb 23rd, 2004 at 04:11 AM.

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    If I understand you correctly, you're already filling the dataset with the original strings, and then splitting each string from that dataset.
    Why not just read the split items into the second table w/o another dataset? If you need it in a dataset, create a new one from the new table.

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    How do you want to split the string (the final result of the string)?
    Like this ?
    Mr.
    j
    j
    ...etc

  4. #4

    Thread Starter
    Lively Member nokia8210's Avatar
    Join Date
    Dec 2002
    Location
    Coventry
    Posts
    92
    yes i need to split it up like that pirate i think i know where i'm going wrong now will post again if i have problems.

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by nokia8210
    yes i need to split it up like that pirate i think i know where i'm going wrong now will post again if i have problems.
    Little hint : You can use Split(" ".ToCharArray)

  6. #6

    Thread Starter
    Lively Member nokia8210's Avatar
    Join Date
    Dec 2002
    Location
    Coventry
    Posts
    92
    thanks everyone got it working now needed to do it in three steps rather than one.

Posting Permissions

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



Click Here to Expand Forum to Full Width