Hi every one .
Recently i complete my project on libraray managment system which work perpectly on my system. Now the problem is that when i Execute my project on other system it show error at con.open i.e it mean that connection string not set in this system . Now i need code for how i set the connection i.e when i execute the project .exe it show me a form in which there is Database name , Server name , User name and Password . And after clicking the OK button it pass these value to connection string and save there.
I need simply the code for passing these value to connection string and how save these value there.
Thank in advance
khair.ullah -2 Junior Poster in Training
Recommended Answers
Jump to PostOne relatively simple way is put, Database name , Server name , User name and Password, variables in a module, and have your new form have a series of textboxes that the user can enter the information. A command button can contain code to validate the information and then pass …
Jump to PostHere's some source code at MSDN for the Data Connection Dialog that was
?packaged/affiliated/an add-in? for Visual Studio 2005. Alternatively, there's this project …
Jump to PostThere were at least 3 different methods suggested in this thread, which one are you having a problem with?
Jump to PostGo the the machine on which the code works. On the line of code just prior to opening the connection, add the following line (I'm going to assume your connection object is called conn. If not then replace it with the actual object name)
Debug.WriteLine(conn.ConnectionString)
Post …
All 14 Replies
tinstaafl 1,176 Posting Maven
john.knapp 25 Posting Whiz in Training
khair.ullah -2 Junior Poster in Training
john.knapp 25 Posting Whiz in Training
khair.ullah -2 Junior Poster in Training
john.knapp 25 Posting Whiz in Training
khair.ullah -2 Junior Poster in Training
john.knapp 25 Posting Whiz in Training
khair.ullah -2 Junior Poster in Training
john.knapp 25 Posting Whiz in Training
androidz -2 Junior Poster in Training
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
khair.ullah -2 Junior Poster in Training
Muhammad_113 -2 Newbie Poster
rproffitt commented: Avoid old posts like this. Also it appears solved. -2
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.