Article View: borland.public.delphi.database
Article #52creating alias at run time error 'unknown database alias: myRuntimeAlias'
From: jo
Date: Fri, 18 Jun 2004 16:16
Date: Fri, 18 Jun 2004 16:16
27 lines
2228 bytes
2228 bytes
Hi Thanks for all the previous help. I do seem to be getting somewhere........ I have managed to set up installshield to allow the user to save the database files seperatly from the exe, this path is then stored in an ini file. When the onCreate event of my app's datamodule is executed. It gets the data concerning the path to database files from the ini, then uses this to create a subdir for the netfiledir. It also sets the private dir to c:\win\temp. I then edit the registry and set the local share key for the borland bde to 'TRUE'. Then I use session.addstandardalias with the data from the ini concerning the path to databases. However, this seems to have caused a lot of different errors mostly 'unknown database alias: myRuntimeAlias' so seemingly my ttable and sql components are not seeing this new alias I am generating at runtime? Can anyone shed some light on this please? I am begining to wonder if it would be better to convert my app to using the Tdatabase component..... Many thanks Jo
Technical Details
Message-ID:
<cav4g0$et0$1@hercules.btinternet.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!easynet-monga!easynet.net!zen.net.uk!demorgan.zen.co.uk!194.72.9.35.MISMATCH!news-peer1!btnet-feed3!newreader.ukcore.bt.net!btnet-feed5!btnet!news.btopenworld.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 115d96,718eba987327b4e6,start X-Google-Thread: ffff5,718eba987327b4e6,start X-Google-Attributes: gid115d96,gidffff5,public Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!easynet-monga!easynet.net!zen.net.uk!demorgan.zen.co.uk!194.72.9.35.MISMATCH!news-peer1!btnet-feed3!newreader.ukcore.bt.net!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "jo" <fitgirl99@btinternet.com> Newsgroups: borland.public.delphi.database,comp.lang.pascal.delphi.databases Subject: creating alias at run time error 'unknown database alias: myRuntimeAlias' Date: Fri, 18 Jun 2004 16:16:00 +0000 (UTC) Organization: BT Openworld Lines: 30 Message-ID: <cav4g0$et0$1@hercules.btinternet.com> NNTP-Posting-Host: dial81-131-213-81.in-addr.btopenworld.com X-Trace: hercules.btinternet.com 1087575360 15264 81.131.213.81 (18 Jun 2004 16:16:00 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Fri, 18 Jun 2004 16:16:00 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MSMail-Priority: Normal X-Priority: 3 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000