Hi,
Did you hardcode database name into connection string of you application? If
yes, then it is not a good idea. What you need to do is to create some sort
of login, which will prompt user for the database and/or user name with the
password or you could keep database name somewhere in a registry or
configuration file. Then you need to build your connection string
dynamically based on these settings. This is the only way to make your
application flexible to connect to different databases

Signature
Val Mazur
Microsoft MVP
> No, I wont to switch my application to another version of ADO, but I need
> to
[quoted text clipped - 35 lines]
>> >
>> > How can I do this ?
nicolau - 25 Nov 2004 14:25 GMT
Hi,
I have created an application where the user register some records for the
year 2004, but for the year 2005 he must register other records but not same
database.
Therefore for the year 2004 I use a database called Archive_2004 e for the
year 2005 I use a database called Archive_2005.
Now the user could need to read some records from database Archive_2004 or
Archive_2005 or Archive_2006 etc, etc.
Is now more specific ?
If I use the WillConnect method how can I use the Disconnect method so I
close the database Archive_2004 and open Archive_2005 for example ?
Thank so much for any help me !!!
"Val Mazur" ha scritto:
> Hi,
>
[quoted text clipped - 45 lines]
> >> >
> >> > How can I do this ?
nicolau - 30 Nov 2004 08:53 GMT
Hi there,
is possible to have another help ?
Thanks a lot.
> Hi,
> I have created an application where the user register some records for the
[quoted text clipped - 62 lines]
> > >> >
> > >> > How can I do this ?