I am using gwt 2.2, smartgwt 2.4 eval, chrome 11.
The scenario:
The website will cater to different companies.
Each company will have its own database.
But each database's structure is identical, only the actual contained data will differ.
i.e. Database A will have tables X, Y and Z and database B will also have tables X, Y and Z. Only the data in the tables will differ from each database.
What I would like to know:
Is possible to set a SqlDataSource's Database dynamically?
eg. A user will login user his/her username + password. The credentials will be validated and the company the user is linked to will determine which database should be used throughout the users session.
Hope I have made everything clear, if not please don't hesitate to ask for more information.
Any help on the matter would be greatly appreciated.
The scenario:
The website will cater to different companies.
Each company will have its own database.
But each database's structure is identical, only the actual contained data will differ.
i.e. Database A will have tables X, Y and Z and database B will also have tables X, Y and Z. Only the data in the tables will differ from each database.
What I would like to know:
Is possible to set a SqlDataSource's Database dynamically?
eg. A user will login user his/her username + password. The credentials will be validated and the company the user is linked to will determine which database should be used throughout the users session.
Hope I have made everything clear, if not please don't hesitate to ask for more information.
Any help on the matter would be greatly appreciated.
Comment