-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Praba
Message 4 in Discussion






Hey,


 


 


Here is the way to do it � I tried
this couple of months back it is really cool stuff.


 


http://www.sqlteam.com/item.asp?ItemID=2652


 


 


Thanks,


-Praba


 


-----Original Message-----

From: DIGITAL PIRATE
[mailto:[EMAIL PROTECTED] 

Sent: Tuesday, October 28, 2003
11:36 AM

To: BDOTNET

Subject: SQL - Transferring data
from one table to another !!!


 





 
  
  

  
  
  
New
  Message on BDOTNET
  
 
 
  
  

  
 





 


SQL - Transferring
data from one table to another !!!


 
  
  
Reply

  
  
  
  
   
    
    
 
    
    
    
Reply to Sender   Recommend
    
    
    
    
Message 1 in
    Discussion 
    
   
  
  

  
 
 
  
  
   
    
    
From: DIGITAL
    PIRATE 
    
   
   
    
    
 
    
    
Hi Sql gurus,
    
    
    
 
    
    
    
Situation:-
    
    
    
I have a table(eventtable) with fields,
    
    
    
      eventid
    int,
    
    
    
      speakerid
    varchar(500)
    
    
    
      etc.,
    
    
    
 
    
    
    
data sample:
    
    
    
eventid       
    speakerid        etc.,
    
    
    
1             
    2,30,67
    
    
    
2              5,8,19
    
    
    
 
    
    
    
Note: speakerid fields contains id's from another
    table(speakers) seperated by comma. Speaker table structure is,
    
    
    
      id int,
    
    
    
     
    speakername varchar(100)
    
    
    
 
    
    
    
Problem:-
    
    
    
I created a new table to hold speakerids associated
    with each eventid
    
    
    
         
    id int,
    
    
    
         
    eventid int,
    
    
    
         
    speakerid int
    
    
    
 
    
    
    
Now i wanted to transfer data from eventable(first
    one) to the new table i created. In the first table speakerids are comma
    separated and i need to split it and insert it into the new table with its 
associated
    eventid.
    
    
    
 
    
    
    
I am wondering if i must use cursors... to fetch each
    row and then split speaker fields. Correct me if i am wrong and let me know
    your suggestions
    
    
    
 
    
    
    
Shamir
    
    
   
  
  

  
 





View other groups in this
category. 







-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to