home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / sybase / 346 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.5 KB  |  56 lines

  1. Newsgroups: comp.databases.sybase
  2. Path: sparky!uunet!csfb1!lhall
  3. From: lhall@csfb1.fir.fbc.com (Lawrence Hall)
  4. Subject: RE: "Select" from one server to ther other server 
  5. Message-ID: <Bxx3zz.IEq@csfb1.fir.fbc.com>
  6. Sender: news@csfb1.fir.fbc.com (Usenet News Account)
  7. Reply-To: uunet!csfb1!lhall
  8. Organization: First Boston Corporation
  9. Date: Wed, 18 Nov 1992 15:21:34 GMT
  10. Lines: 44
  11.  
  12. Etsuko Shimabukuro writes :
  13.  
  14. [     I am looking for the the way to do 
  15. [    "select * from table where some condition" in a database in A-server,
  16. [      ^^^^^               ^^^^^
  17. [     then transfer the data into a different database in B-server.
  18. [
  19. [    Is there any way to do this kind of things without using 
  20. [
  21. [     Open-client Library???
  22.  
  23.  
  24.  
  25. The easiest way to accomplish this inter-server move of data is as follows :
  26.  
  27.  
  28. Server A
  29.  
  30.     Select * into table-x from table where some condition
  31.  
  32.  
  33. bcp database..table-x out x.data -S AServer (appropriate bcp args here)
  34.  
  35. bcp target_database..table-y in x.data -S BServer ( appropriate bcp args)
  36.  
  37.  
  38.  
  39.  
  40. As for selecting-into one server from another, Sybase does not support this 
  41. and will not support this except through the use of the Omni Server.
  42.  
  43.  
  44. " " " Lawrence
  45.  
  46.  
  47. ----------------------------------------------------------------------------
  48. Lawrence E. Hall
  49. First Boston Corp.
  50. 5 World Trade Center 9th Floor                    uunet!csfb1!phantom!lhall
  51. NYC, NY  10048                                    lhall@csfb1.fir.fbc.com
  52. ----------------------------------------------------------------------------
  53. The Secretary will disavow all knowledge. 
  54.  
  55.