Back to the Winform things
An assignment from cs422, I have to create a simple form to view/insert/edit/delete some information of few students. It’s quite boring, but it’s an assignment :-<
It took me about 2 hours to code, but the I had to spend the same amount of time to install SQL Server, and solve the problems relating to M$'s stuff ![]()
The only thing to worry is, if the TAs be able to run the program correctly with the database connection as it is different on each computer. I put the connection string into a text file, and created a "user guide" telling him that he has to edit the file with his connection string, but not sure if it would work ![]()
Here it is if you're interested (but I'm quite sure you don't). I used VS2010 and SQL Server 2005. (I hope no one will steal my code again like in cs162!)

http://www.mediafire.com/?ygwjfyzakij
dont wori much if they cant run your project, they already know there are many newbies in our class and the professor didnt even mention writing a user guide so that he could use the program, which means he knows how to work out the program or just to have a look at the techniques we used.
It’s not just the TAs or the grade, I just feel that the program is not portable, think about when you have to deploy your program to another computer, re-compile the code with new connection string? Or in my case, the program read the string incorrectly from the file, and it cannot run?
That’s what I’m worried about, not just this program but also in the future
It’s pretty simple i guess. Because you need to deploy the program on the system that you already know about, and that program needs to be adjusted again if it is deployed on another computer, it’s not plug and play paradigm, your program cant actually satisfy it at all because it’s accessing the database. Assuming it a webpage may make it clearer to see, the database is left somewhere and everything is configured so that everyone can use but have no knowledge about the database things :@), and surely it’s like moving house, you never want to move your database frequently :@)
The same problem I met in this assignment. After finished the code, I was really annoyed because my program was not portable. Therefore, I spent few more hours to find another way to make database link directly to program so that we don’t need to modify connection manually. But the cost is that I have to delete all the old code and start from scratch. But the new way is pretty simple, I even don’t need to write code manually. I think it takes about 15 minutes if I know how to do before.
Can you please post the instruction link, Mẫn