I have my sql data source but i want my program to dynamically bind it to the data source.
I want my dataAdapter to bind to the data file by looking it through the project folder(source folder of the project/app). How can i dynamically produce a ConnectionString that will locate and bind itself to the MyData.mdf file ?
I have my sql data source but i want my program to dynamically bind
Share
you can use your C# file to implement the code their to establish a connection string.
In the above mentioned statement you can dynamically call in the Database variable and run the GetConnection() method to create a connection to that particular database
In your web.config add your file location