Advertisement
Guest User

Untitled

a guest
Apr 20th, 2017
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. libname public2;
  2.  
  3. libname public1 postgres server='172.29.66.250' port=5432
  4. user=dbmsowner password='#6F5ZZbrkYGj8CbxDsFjifNClKReVj7X' database=VisualInvestigator schema=insider;
  5. libname public2 postgres server='10.38.13.127' port=5432
  6. user=dbmsowner password='Go4thsas' database=cyberdyne schema=public;
  7.  
  8. data public2.address;
  9. set public1.address;
  10. run;
  11. proc sql;
  12. connect to postgres (server='10.38.13.127' port=5432
  13. user=dbmsowner password='Go4thsas' database=cyberdyne);
  14. execute (
  15. alter table address
  16. add constraint address_pkey PRIMARY KEY (address_id);
  17. )
  18. by postgres;
  19. disconnect from postgres;
  20. quit;
  21.  
  22. data public2.Email_contents2;
  23. set public1.Email_contents2;
  24. run;
  25. proc sql;
  26. connect to postgres (server='10.38.13.127' port=5432
  27. user=dbmsowner password='Go4thsas' database=cyberdyne);
  28. execute (
  29. alter table Email_contents2
  30. add constraint Email_contents2_pkey PRIMARY KEY (email_id);
  31. )
  32. by postgres;
  33. disconnect from postgres;
  34. quit;
  35.  
  36. data public2.Email_attachments;
  37. set public1.Email_attachments;
  38. run;
  39. proc sql;
  40. connect to postgres (server='10.38.13.127' port=5432
  41. user=dbmsowner password='Go4thsas' database=cyberdyne);
  42. execute (
  43. alter table Email_attachments
  44. add constraint Email_attachments_pkey PRIMARY KEY (ema_id);
  45. )
  46. by postgres;
  47. disconnect from postgres;
  48. quit;
  49.  
  50. data public2.Employee_profile;
  51. set public1.Employee_profile;
  52. run;
  53. proc sql;
  54. connect to postgres (server='10.38.13.127' port=5432
  55. user=dbmsowner password='Go4thsas' database=cyberdyne);
  56. execute (
  57. alter table Employee_profile
  58. add constraint Employee_profile_pkey PRIMARY KEY (rid);
  59. )
  60. by postgres;
  61. disconnect from postgres;
  62. quit;
  63.  
  64. data public2.phone;
  65. set public1.phone;
  66. run;
  67. proc sql;
  68. connect to postgres (server='10.38.13.127' port=5432
  69. user=dbmsowner password='Go4thsas' database=cyberdyne);
  70. execute (
  71. alter table phone
  72. add constraint phone_pkey PRIMARY KEY (phone_id);
  73. )
  74. by postgres;
  75. disconnect from postgres;
  76. quit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement