URGENT!!! Need Help on VB.NET

Malaysia
October 11, 2007 11:11am CST
guys, i have a problem here and need to solve it asap. i using vb.net to program an application and i using dataset to deal with sql server 2005 database. can i know what is the possible way for me to add data connection at any pc and would able to connect with just attach the .mdf from other directory such as D:\....?
2 responses
@extrabux (14)
• India
22 Sep 08
You can create a connectionstring in app.config with your present folder settings. And Use the ConnectionString Property to bind the data. Later when you deploy the application to any PC, just change app.config file using notepad or any other edit program. No need to change the code or exe file.
@mnsrwt123 (2057)
• India
1 Apr 08
yeah, its easy to bind your database, just copy your desired database .mdf file to your output directory of VB project and then link in the project and you finished itt.