Hi all,
ive got the payroll solution that i am busy with, now when it is first run the user creates a company which is a sql database that is saved in the application.sta rtupPath. every company will have its own db
Now i have created the New company form, and it creates the company/db. and the main form is shown.
what my problem is. say there are 2 companies created. i have displayed them in a listbox so u can choose which company you want to use.
i have used the stored proc sp_databases to display the databases/companies that are present in sqlExpress.
all the databases will have the same tables and names etc, just the database name will differ.
i want to be able to select a database in the listbox and when i click open thats the database that i will be using in the application, so if i closed the application and i selected another database from the listbox and clicked open then it would use the selected database.
is that possible ?
ive got the payroll solution that i am busy with, now when it is first run the user creates a company which is a sql database that is saved in the application.sta rtupPath. every company will have its own db
Now i have created the New company form, and it creates the company/db. and the main form is shown.
what my problem is. say there are 2 companies created. i have displayed them in a listbox so u can choose which company you want to use.
i have used the stored proc sp_databases to display the databases/companies that are present in sqlExpress.
all the databases will have the same tables and names etc, just the database name will differ.
i want to be able to select a database in the listbox and when i click open thats the database that i will be using in the application, so if i closed the application and i selected another database from the listbox and clicked open then it would use the selected database.
is that possible ?
Comment