Last post Sep 18, 2013 03:50 AM by MetalAsp.Net
Sep 17, 2013 02:13 PM|Javed Khan|LINK
I want to create dynamically Connection String .
In the base of Login of User.
Sep 17, 2013 02:24 PM|MetalAsp.Net|LINK
So what problem are you facing? You can set the connection string in code when bulding the SqlConnection object.
Sep 17, 2013 11:31 PM|Javed Khan|LINK
I have more than one database and more than one client in single application.so I want In the basis of login user I want Create Dynamically Connection String.
Sep 18, 2013 02:47 AM|necro_mancer|LINK
Do you mean that you want to just pass in the user credentials dynamically to your connection string? I apologize as I still do not get your intention for "dynamic connection string"
Sep 18, 2013 03:07 AM|Javed Khan|LINK
No I want pass datasource,database,username,pwd from .cs page
Sep 18, 2013 03:50 AM|MetalAsp.Net|LINK
Did you read through the first link I provided in my previous reply? You can set the conneciton string in code including setting data source, database, username and pwd. Again, what's your problem; just do it.