programming with visual c 2008

Practical Database Programming With Visual C#.NET- P6

Practical Database Programming With Visual C#.NET- P6

Ngày tải lên : 17/10/2013, 19:15
... accDataTable = new DataTable(); OleDbCommand accCommand = new OleDbCommand(); SelectionForm selForm = new SelectionForm(); C accCommand.Connection = accConnection; accCommand.CommandType = CommandType.Text; ... AccessSelectRTObject.LogInForm 313 cmdCancel_Click() private void cmdCancel_Click(object sender, EventArgs e) { accConnection.Close(); accConnection.Dispose(); Application.Exit(); } Figure 5.75 Coding ... OleDbCommand accCommand = new OleDbCommand(); SelectionForm selForm = new SelectionForm(); OleDbDataReader accDataReader; accCommand.Connection = accConnection; accCommand.CommandType = CommandType.Text;...
  • 50
  • 638
  • 0
Practical Database Programming With Visual C#.NET- P7

Practical Database Programming With Visual C#.NET- P7

Ngày tải lên : 20/10/2013, 11:15
... strFacultyID = string.Empty; DataRow rowFaculty; accCmdFaculty.Connection = logForm.accConnection; accCmdFaculty.CommandType = CommandType.Text; accCmdFaculty.CommandText = strFaculty; accCmdFaculty.Parameters.Add("@Param1", ... connection sqlConnection object to access the database SQLSelectRTObject.LogInForm cmdCancel_Click() private void cmdCancel_Click(object sender, EventArgs e) { if (sqlConnection.State == ConnectionState.Open) ... = accCmdCourse; CourseDataAdapter.Fill(accCourseTable); if (accCourseTable.Rows.Count > 0) { FillCourseTable(accCourseTable); } else { MessageBox.Show("No matched course found!"); } accFacultyTable.Dispose();...
  • 50
  • 646
  • 1
Practical Database Programming With Visual C#.NET- P8

Practical Database Programming With Visual C#.NET- P8

Ngày tải lên : 20/10/2013, 11:15
... C D } Figure 5.164 Coding for the ReadLogIn button Click method OracleSelectRTObjectLINQ.LogInForm cmdCancel_Click() private void cmdCancel_Click(object sender, EventArgs e) { oraConnection.Close(); ... IQueryable cinfo = from ci in logForm.cse_dept.Courses where ci.course_id == (string)CourseList.SelectedItem select ci; foreach (Course c in cinfo) { txtName.Text = c. course1; txtSchedule.Text ... 5.167 Coding for the constructor of the FacultyForm 5.20 Query Data Using Runtime Objects to Oracle Database OracleSelectRTObject.FacultyForm A B cmdSelect_Click() private void cmdSelect_Click(object...
  • 50
  • 507
  • 0
Practical Database Programming With Visual C#.NET- P9

Practical Database Programming With Visual C#.NET- P9

Ngày tải lên : 24/10/2013, 09:15
... InsertWizard_Project.InsertFacultyForm A 449 cmdInsert_Click private void cmdInsert_Click(object sender, EventArgs e) { int check = 0; B C D CreateFacultyCollection(); check = CheckFacultyCollection(); if (check == ... FacultyCollection.Add("Faculty FacultyCollection.Add("Faculty FacultyCollection.Add("Faculty FacultyCollection.Add("Faculty FacultyCollection.Add("Faculty FacultyCollection.Add("Faculty FacultyCollection.Add("Faculty } ... D CreateFacultyCollection() CheckFacultyCollection() private int CheckFacultyCollection() { int check = 0; foreach (KeyValuePair strCheck in FacultyCollection) { if (strCheck.Value...
  • 50
  • 537
  • 0
Practical Database Programming With Visual C#.NET- P10

Practical Database Programming With Visual C#.NET- P10

Ngày tải lên : 24/10/2013, 09:15
... new OleDbCommand(); SelectionForm selForm = new SelectionForm(); C accCommand.Connection = accConnection; accCommand.CommandType = CommandType.Text; accCommand.CommandText = cmdString; accCommand.Parameters.Add("@name", ... logForm.getLogInForm(); accCommand.Connection = logForm.accConnection; accCommand.CommandType = CommandType.Text; accCommand.CommandText = cmdString; accCommand.Parameters.Add("@name", OleDbType.Char).Value = ComboName.Text; ... Source =C: \\database\\Access\\CSE_DEPT.accdb;"; accConnection = new OleDbConnection(strConnectionString); try { accConnection.Open(); } catch (OleDbException e) { MessageBox.Show("Access Error"); MessageBox.Show("Error Code...
  • 50
  • 565
  • 0
Practical Database Programming With Visual C#.NET- P11

Practical Database Programming With Visual C#.NET- P11

Ngày tải lên : 28/10/2013, 16:15
... 524 Chapter Data Inserting with Visual C# .NET OracleInsertRTObject.FacultyForm A B cmdSelect_Click() private void cmdSelect_Click(object sender, EventArgs e) { string cmdString = "SELECT faculty_id, ... = 0; OracleCommand oraCommand = new OracleCommand(); oraCommand.Connection = oraConnection; oraCommand.CommandType = CommandType.StoredProcedure; oraCommand.CommandText = cmdString; oraCommand.Parameters.Add("Name", ... SQLInsertRTObjectSP.InsertCourseForm A B C 535 cmdInsert_Click() private void cmdInsert_Click(object sender, EventArgs e) { int check = 0, intInsert = 0; string cmdString = "dbo.InsertFacultyCourse"; SqlCommand...
  • 50
  • 808
  • 0
Practical Database Programming With Visual C#.NET- P12

Practical Database Programming With Visual C#.NET- P12

Ngày tải lên : 28/10/2013, 16:15
... OleDbCommand accCommand = new OleDbCommand(); int intUpdate = 0; accCommand.Connection = logForm.accConnection; accCommand.CommandType = CommandType.StoredProcedure; accCommand.CommandText = cmdString; ... { accCommand.Connection = logForm.accConnection; accCommand.CommandType = CommandType.StoredProcedure; accCommand.CommandText = cmdString; accCommand.Parameters.Add("FacultyName", OleDbType.Char).Value ... course_id course_id=CSC-132B course_id=CSC-234A course_id=CSE-434 course_id=CSE-438 pass_word reback 583 course_id=CSC-132B course_id=CSC-234A course_id=CSE-434 course_id=CSE-438 Relationships...
  • 50
  • 632
  • 0
Practical Database Programming With Visual C#.NET- P13

Practical Database Programming With Visual C#.NET- P13

Ngày tải lên : 07/11/2013, 11:15
... piece of code to see how it works Course A B cmdSelect_Click() protected void cmdSelect_Click(object sender, EventArgs e) { string strCourse = "SELECT Course.course_id, Course.course FROM Course ... found!')"); D E F G sqlCommand.Dispose(); sqlReader.Close(); } Figure 8.8 Coding for the LogIn button’s Click method _Default A B cmdCancel_Click() protected void cmdCancel_Click(object sender, ... cmdSelect_Click() protected void cmdSelect_Click(object sender, EventArgs e) { string cmdString = "SELECT faculty_id, faculty_name, office, phone, college, title, email FROM Faculty "; cmdString...
  • 50
  • 617
  • 0
Practical Database Programming With Visual C#.NET- P14

Practical Database Programming With Visual C#.NET- P14

Ngày tải lên : 07/11/2013, 11:15
... the Course page Course A B cmdSelect _Click() protected void cmdSelect_Click(object sender, EventArgs e) { string strCourse = "SELECT Course.course_id, Course.course FROM Course, Faculty "; strCourse ... Select Data from Oracle Databases Faculty A B 697 cmdSelect_Click() protected void cmdSelect_Click(object sender, EventArgs e) { string cmdString = "SELECT faculty_id, faculty_name, office, phone, ... Application["oraConnection"] = oraConnection; E F //define a global connection object if (oraConnection.State == ConnectionState.Open) oraConnection.Close(); oraConnection.Open(); if (oraConnection.State != ConnectionState.Open)...
  • 50
  • 561
  • 0
Practical Database Programming With Visual C#.NET- P15

Practical Database Programming With Visual C#.NET- P15

Ngày tải lên : 07/11/2013, 11:15
... SqlConnection SQLConn() { string cmdString = ConfigurationManager.ConnectionStrings["sql_conn"].ConnectionString; SqlConnection conn = new SqlConnection(); conn.ConnectionString = cmdString; conn.Open(); ... Faculty cmdSelect_Click() protected void cmdSelect_Click(object sender, EventArgs e) { WS_SQLSelect.WebServiceSQLSelect wsSQLSelect = new WS_SQLSelect.WebServiceSQLSelect(); WS_SQLSelect.SQLSelectResult ... public string HelloWorld() { string cmdString = ConfigurationManager.ConnectionStrings["sql_conn"].ConnectionString; SqlConnection sqlConnection = new SqlConnection(); sqlConnection.ConnectionString...
  • 50
  • 544
  • 0
Tài liệu Practical Database Programming With Visual C#.NET- P16 pptx

Tài liệu Practical Database Programming With Visual C#.NET- P16 pptx

Ngày tải lên : 14/12/2013, 15:15
... is created with a constructor that includes two arguments: Command string and Connection object Then the Command object is initialized with associated data objects and properties such as Command ... error source is reported and displayed with a Java alert() script method Course A cmdSelect_Click() protected void cmdSelect_Click(object sender, EventArgs e) { WS_SQLInsert.WebServiceSQLInsert ... Windows-based client project WinClientSQLInsert Therefore we can copy those codes, and paste them into our current Select button’s Click method with a few modifications Open the Select button’s Click method...
  • 50
  • 583
  • 1
Tài liệu Practical Database Programming With Visual C#.NET- P17 docx

Tài liệu Practical Database Programming With Visual C#.NET- P17 docx

Ngày tải lên : 14/12/2013, 15:15
... OracleConnection OracleConn() { string cmdString = ConfigurationManager.ConnectionStrings["ora_conn"].ConnectionString; OracleConnection conn = new OracleConnection(); conn.ConnectionString = cmdString; ... WebServiceOracleSelect A B C 849 GetOracleSelectSP() [WebMethod] public OracleSelectResult GetOracleSelectSP(string FacultyName) { OracleConnection oraConnection = new OracleConnection(); OracleSelectResult ... GetOracleSelect(string FacultyName) { OracleConnection oraConnection = new OracleConnection(); OracleSelectResult OracleResult = new OracleSelectResult(); OracleCommand oraCommand = new OracleCommand();...
  • 50
  • 590
  • 0
Tài liệu Practical Database Programming With Visual C#.NET- P18 pptx

Tài liệu Practical Database Programming With Visual C#.NET- P18 pptx

Ngày tải lên : 14/12/2013, 15:15
... ConfigurationManager.ConnectionStrings["ora_conn"].ConnectionString; OracleConnection conn = new OracleConnection(); conn.ConnectionString = cmdString; conn.Open(); if (conn.State != System.Data.ConnectionState.Open) ... OracleConnection oraConnection = new OracleConnection(); OracleBase OracleResult = new OracleBase(); OracleCommand oraCommand = new OracleCommand(); OracleDataReader oraReader; OracleResult.OracleOK ... GetOracleCourseDetail(string CourseID) { string cmdString = "WebSelectCourseSP.SelectCourse"; OracleConnection oraConnection = new OracleConnection(); OracleBase OracleResult = new OracleBase();...
  • 31
  • 590
  • 0
Tài liệu Practical Database Programming With Visual C#.NET- P1 doc

Tài liệu Practical Database Programming With Visual C#.NET- P1 doc

Ngày tải lên : 26/01/2014, 08:20
... B92996 course_id CSC-131D CSC-132A CSC-335 CSC-331 CSC-234B CSC-234A CSC-233A CSC-132A CSE-432 CSE-434 CSC-439 CSC-132A CSC-331 CSC-335 CSE-438 CSC-432 CSC-132B CSC-234A CSC-331 CSC-335 CSE-439 CSC-230 ... CSC-232A CSC-232B CSC-233A CSC-233B CSC-234A CSC-234B CSC-242 CSC-320 CSC-331 CSC-333A CSC-333B CSC-335 CSC-432 CSC-439 CSE-138A CSE-138B CSE-330 CSE-332 CSE-334 CSE-430 CSE-432 CSE-433 CSE-434 CSE-436 ... CSC-230 CSE-332 CSE-430 CSC-333A CSE-433 CSE-334 CSC-13 1C CSC-439 credit 3 3 3 3 3 3 3 3 3 3 3 3 3 3 major CE CS/IS CS/IS CE CE CS/IS CS/IS CE CE CE CS/IS CE CE CE CE CS/IS ISE ISE ISE ISE CS/IS CS/IS...
  • 50
  • 520
  • 2
Tài liệu Practical Database Programming With Visual C#.NET- P2 pdf

Tài liệu Practical Database Programming With Visual C#.NET- P2 pdf

Ngày tải lên : 26/01/2014, 08:20
... B92996 course_id CSC-131D CSC-132A CSC-335 CSC-331 CSC-234B CSC-234A CSC-233A CSC-132A CSE-432 CSE-434 CSC-439 CSC-132A CSC-331 CSC-335 CSE-438 CSC-432 CSC-132B CSC-234A CSC-331 CSC-335 CSE-439 CSC-230 ... CSC-232A CSC-232B CSC-233A CSC-233B CSC-234A CSC-234B CSC-242 CSC-320 CSC-331 CSC-333A CSC-333B CSC-335 CSC-432 CSC-439 CSE-138A CSE-138B CSE-330 CSE-332 CSE-334 CSE-430 CSE-432 CSE-433 CSE-434 CSE-436 ... CSC-230 CSE-332 CSE-430 CSC-333A CSE-433 CSE-334 CSC-13 1C CSC-439 credit 3 3 3 3 3 3 3 3 3 3 3 3 3 3 major CE CS/IS CS/IS CE CE CS/IS CS/IS CE CE CE CS/IS CE CE CE CE CS/IS ISE ISE ISE ISE CS/IS CS/IS...
  • 50
  • 961
  • 1
Tài liệu Practical Database Programming With Visual C#.NET- P3 pptx

Tài liệu Practical Database Programming With Visual C#.NET- P3 pptx

Ngày tải lên : 26/01/2014, 08:20
... of the DataColumn 3.4 Components of ADO.NET 2.0 127 Table 3.22 Completed FacultyTable FacultyId 10 FacultyOffice TC-1 TC-2 TC-3 TC-4 TC-5 TC-6 TC-7 TC-8 TC-9 TC-10 is added into the FacultyTable ... of the Columns property is DataColumnCollection, which means that it contains a collection of DataColumn objects Each column in the DataTable can be considered as a DataColumn object By calling ... EntityConnection Conn = new EntityConnection("name=EDModelEntitiesConnString"); Conn.Open(); EntityCommand cmd = Conn.CreateCommand(); cmd.CommandText = cmdString; EntityDataReader rd = cmd.ExecuteReader(CommandBehavior.SequentialAccess);...
  • 50
  • 635
  • 0
Tài liệu Practical Database Programming With Visual C#.NET- P4 pdf

Tài liệu Practical Database Programming With Visual C#.NET- P4 pdf

Ngày tải lên : 26/01/2014, 08:20
... Source =C: \\database\\Access\\CSE_DEPT.accdb;"; accConnection = new OleDbConnection(connString); accConnection.Open(); accCommand.Connection = accConnection; accCommand.CommandType = CommandType.Text; accCommand.CommandText ... Source =C: \\database\\Access\\CSE_DEPT.accdb;"; accConnection = new OleDbConnection(connString); accConnection.Open(); accCommand.Connection = accConnection; accCommand.CommandType = CommandType.Text; accCommand.CommandText ... "Data Source =C: \\database\\Access\\CSE_DEPT.accdb;"; accConnection = new OleDbConnection(connString); accConnection.Open(); accCommand.Connection = accConnection; accCommand.CommandType = CommandType.Text;...
  • 50
  • 1.2K
  • 0
Tài liệu Practical Database Programming With Visual C#.NET- P5 pptx

Tài liệu Practical Database Programming With Visual C#.NET- P5 pptx

Ngày tải lên : 26/01/2014, 08:20
... database file CSE_DEPT.accdb You can click on the Test Connection button to test your connection A Test connection succeeded message will be displayed if your connection is correct, which is shown ... you select the specified course ID by clicking on it from the Course list, all information related to that selected course—such as the course title, course schedule, classroom, credits, and course ... BindingSource control works as a bridge to connect the data bound controls on your Visual C# forms with your data source (DataSet) The BindingSource control can also be considered as a container object...
  • 50
  • 703
  • 0
Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 1 potx

Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 1 potx

Ngày tải lên : 13/08/2014, 08:20
... a Glance Chapter 15 The ODBC API and the MFC ODBC Classes Chapter 16 The Ultimate Database API: OLE DB Chapter 17 Accessing a Data Source with OLE DB Chapter 18 Querying a Data Source Chapter ... in the Access ODBC driver When you write a C+ + application that stores data in an Access MDB file, your application makes calls to the Access ODBC driver, which calls the Jet engine, which talks ... this technology with a commercial application http://www.pbs.mcp.com/ebooks/0672313502/ch01/ch01.htm (14 of 16) [9/22/1999 1:43:03 AM] Teach Yourself Database Programming with Visual C+ + in 21...
  • 39
  • 435
  • 0
Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 2 docx

Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 2 docx

Ngày tải lên : 13/08/2014, 08:20
... CADOMFC1Doc::OnCloseDocument() { if (m_IsConnectionOpen) { m_IsConnectionOpen = FALSE; m_pConnection->Close(); } CDocument::OnCloseDocument(); } Add the code so that your OnCloseDocument function ... void CADOMFC1View::OnCommandOrderedsincedate() { _CommandPtr pCommand; pCommand.CreateInstance( uuidof( Command )); CADOMFC1Doc * pDoc; pDoc = GetDocument(); try { pCommand->ActiveConnection ... Split Connection object's Close function to close the connection to the data source In an MFC application, the Document object is easy to access from the other objects (particularly the MFC View...
  • 39
  • 400
  • 0