home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / sybase / 291 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.5 KB  |  36 lines

  1. Newsgroups: comp.databases.sybase
  2. Path: sparky!uunet!mcsun!sunic!ericom!ericom!eedksc
  3. From: eedksc@teamos50.ericom (Klaus Schniedergers)
  4. Subject: How to connect APT-Form to different database?
  5. Message-ID: <EEDKSC.92Nov11123557@teamos50.ericom>
  6. Sender: news@ericsson.se
  7. Nntp-Posting-Host: teamos50.ericsson.se
  8. Organization: /home/teamos/1/eedksc/.organization
  9. Date: Wed, 11 Nov 1992 11:35:57 GMT
  10. Lines: 24
  11.  
  12. Hi!
  13. I have the following problem with the behated APT-Forms:
  14.  I want my form to be able to connect to different databases, i.e. defining
  15. a database name in an environment variable then starting the form
  16. without any recompiling or interactive input.
  17.  
  18. When creating the form, the database name is encoded in several places:
  19. - the form-preprocessing-procedure (as ' sqlbegin use <db-name> sqlend ')
  20. - the sql column connected to fields (<db-name>.dbo.table)
  21.  
  22. A dirty solution would be running the <name>.frm file through an sed-script,
  23. changing the database-name to the new one. But I would like a more
  24. elegant solution.........
  25.  
  26. There is a 'Migrate Application' entry in the 'DB Objects' menu in APT-Edit.
  27. You can specify a new database there, but doing 'Migrate' has no effect (or
  28. at least I couldnt notice one). I could not find anything in TFM about
  29. this menu entry. Help!
  30. Klaus
  31.  
  32. --
  33. ----------------------------------------------------------------------
  34. Klaus Schniedergers, Ericsson Eurolab, Dept. B, Herzogenrath, Germany,
  35. eedksc@aachen.ericsson.se  Ph:+49 2407 575 147  Fax:...575 150
  36.