T
Tim Nelson
I am building a data bound application for SQL server which all the
forms I use sqlconnections generated by VS. I want to have a login form
that changes the connection depending upon login parameters. The only
way I can think to do this is to:
1. Connect in the login form.
2. Get the connection string.
3. Close the connection.
4. Pass the connection string in the new forms constructor and assign
the connection string after the component is initialized.
Is there a cleaner way to just pass the sqlconnection or something?
Thanks.
forms I use sqlconnections generated by VS. I want to have a login form
that changes the connection depending upon login parameters. The only
way I can think to do this is to:
1. Connect in the login form.
2. Get the connection string.
3. Close the connection.
4. Pass the connection string in the new forms constructor and assign
the connection string after the component is initialized.
Is there a cleaner way to just pass the sqlconnection or something?
Thanks.