Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DatabaseUsage
- {
- //TODO
- //Create stored procedure (watch video online)
- public DatabaseUsage ()
- {
- //Stored the connection string in the object myConnection (it is static so it can be used by the static methods here)
- private SqlConnection myConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["myDbConnection"].ToString());
- //This is used to store the sql among the different methods
- private static SqlCommand myCommand = new SqlCommand();
- //Used to read data from the sql statements
- private static SqlDataReader myReader;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement