hieurl's world

Back to the Winform things

Posted in CS422, Projects by Hieu T. Luong on June 3, 2010

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!)
My program

http://www.mediafire.com/?ygwjfyzakij

Advertisement

5 Responses

Subscribe to comments with RSS.

  1. KleL said, on June 3, 2010 at 1:48 am

    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.

    • Hieu T. Luong said, on June 3, 2010 at 1:59 pm

      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 :(

      • KleL said, on June 8, 2010 at 4:35 pm

        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 :@)

  2. Tran Diep Hue Man said, on June 12, 2010 at 9:02 am

    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.

    • Hieu T. Luong said, on June 12, 2010 at 11:18 pm

      Can you please post the instruction link, Mẫn :)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.