Topic: Change Database after login

I want to create a SAAS like app. I want the user to login and then depending on a value in their user record, I want to close and open a different database with that users info in it.

Can this be done?

Alan

Re: Change Database after login

asawyer13 wrote:

I want to create a SAAS like app. I want the user to login and then depending on a value in their user record, I want to close and open a different database with that users info in it.

Can this be done?

Alan

отключить / disable

  Form1.SQLConnection.Connected := False;

 
подключиться / connect

 Form1.SQLConnection.Params.Add('Database='+sDir+'\sqlite.db');

Re: Change Database after login

Would that affect all forms, etc in the application?

Thanks

Re: Change Database after login

can you have an example?

Domebil