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