Sorry for the newb questions, but i am just learing MSDE and SQL and i must says its pretty impressive. But i do have a few questions.
#1, should i use store procedures to do my inserts, updates and deletes as opposed to using hte command object and executing a nonquery?
#2, I am writing classes that represent the databases. Should open the connection object for each class for the entire duration of the classes life just once. Or should i open and close it for every function that requires having a connection, such as sending a insert command.
Thanks for your help in advanced!
#1, should i use store procedures to do my inserts, updates and deletes as opposed to using hte command object and executing a nonquery?
#2, I am writing classes that represent the databases. Should open the connection object for each class for the entire duration of the classes life just once. Or should i open and close it for every function that requires having a connection, such as sending a insert command.
Thanks for your help in advanced!