database changes location crashes Delphi



Hello,

I am having a problem, if I refer to an Access database, using a
tadoconnector, and set the connection string refering to a location,
say c:\testdire\mydb.mdb but then move that database to a different
location. When I load the project the next time Delphi, finding the
database doesn't exist, crashes. This is new behaviour, it used to
simply complain and not open the database allowing me to change the
connection string. Now I have to load the dfm file in a text editor
and hack the connection string - a bit messy. Can anyone explain
what's causing this new behaviour, why Delphi is crashing?

thanks, Rob
.



Relevant Pages

  • Re: Cannot display ODBC login prompt - want to connect without DSN
    ... database without knowing anything beforehand except the driver name. ... need a connection string and different data sources use different connection ... ODBC, ADO, and VB Script. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cannot display ODBC login prompt - want to connect without DSN
    ... Depending on the database you are using, ... you need to know the basics of the connection string and can populate ... no. the login box which you are talking about was provided to ODBC ... When the user exits the dialog box, the driver connects ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Change Connection String at runtime.
    ... easily moved to another database, or have versions for each database. ... connection string to the connectionobject before the connection opens. ... *The Server IP number is different for every deployment. ... It appears that the generated code uses the application settings to ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cannot display ODBC login prompt - want to connect without DSN
    ... Depending on the database you are using, ... database without knowing anything beforehand except the driver name. ... you need to know the basics of the connection string and can populate ... no. the login box which you are talking about was provided to ODBC ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Object Design Best Practice
    ... not the existing database. ... Should I load ALL of the object's properties ...? ... They'd still get the connection string from their config ... connection string into the constructor to load the object using data ...
    (microsoft.public.dotnet.languages.csharp)