Create an application that can connect to exampledatabase

Assignment Help PL-SQL Programming
Reference no: EM131534301

Assignment

Topics: Database Connectivity, Reading Data

You will create an application that can connect to the exampleDatabase on a MySql server. The connection string should be dynamic using the IP address in the connect.txt file you created on your C:\ drive. It will use dbsAdmin as the user ID and password as the password for that user account. Make sure this user account exists on your MySQL server and has appropriate access to the database. You will be required to have a try...catch to ensure that the application does not crash if it cannot connect to the MySql server. The connection string should work when the application is run on the instructor's computer without having to change any code.

For this application, you will connect to the database, pull data from the database, and populate a ListView with objects created from the data. The ListView must have ImageLists attached for small and large icons. You will be required to find the images you wish to use, though it does not have to be more than one image for the large icon and one image for the small icon. You can select the table and columns you wish to draw from in your application, but the SQL statement should return a recordset with at least 10 but not more than 25 records of at least 4 columns. You must select the columns within the SELECT statement and not use the * wildcard to return them all.

Once you have loaded the data, you will move through each record and create an object that will then be added to the ListView. This will require you to know what data is being cached because you will select your controls based on that data. So, if the data is a number, you should convert it to a number and populate a number control with that data. Do not use only textboxes to show the data. Therefore, your recordset must include more than just string data.

Once the data is added to the ListView, if a user double-clicks an item in the ListView, it should populate the user input controls with the data from that object. The user should then be able to change that data and click a Save button, which will save the data to both the item on the ListView and to the database.

Your form should have the following additional functionality:

• The user must be able to select an item in the ListView to populate user input controls.
• The user must be able to change the data within an item and save those changes to the ListView item and the database.
• The File menu should contain an Exit command with keyboard shortcut.
• The View menu should include a command to view large icons and a command to view small icons. When each is selected, a checkmark should appear to indicate the current view.

These are the guidelines used by the grading rubric:

Database Connectivity

• The application should connect to a MySql database with a programmatically created connection string
• The application verifies with a try...catch server connectivity.
• Only the data needed is pulled from the database.

ListView

• The ListView is populated by the records in the returned recordset.
• Selecting an item in the ListView populates user input controls on the form.
• Changes made to the data in a user input control can be saved to the selected item on the ListView.
• The ListView has ImageLists for large and small icons.

User Input Controls

• A user input control exists for each piece of data in a record/item.
• The user input controls are appropriate for the data type.
• A button exists that saves the data of the currently selected item both to the ListView item and the database.

Main Form

• MenuStrip is used for File menu with an Exit command.
• MenuStrip also includes a View menu with Large and Small commands.
• The Exit command on the File menu has a corresponding keyboard shortcut.

Reference no: EM131534301

Questions Cloud

Determine the balances of the partners capital accounts : On March 1, 2011, Abbey and Dames formed a partnership. Abbey contributed $88,000 cash and Dames contributed land valued at $70,000 and a building valued.
Weaknesses of any three change models : Compare and contrast the strengths and weaknesses of any three change models. Explain when each of the models should be used and why.
Ibm offers training : Some employees in IBM's Global Technology Services group received e-mails from the company informing them that a recent evaluation had identified.
Prepare journal entries to record krolls investment : Anita Kroll and Aaron Rogers organize a partnership on January 1. Kroll's initial net investment is $60,000, consisting of cash ($14,000), equipment ($66,000).
Create an application that can connect to exampledatabase : You will create an application that can connect to the exampleDatabase on a MySql server. Only the data needed is pulled from the database.
Identifying the major types of hr activities : Identifying the major types of HR activities the organization is engaging in, how much and how often, and their estimated costs and benefits.
Explain eight characteristics of business organizations : Next to the following list of eight characteristics of business organizations, enter a brief description of how each characteristic applies to general.
Established by the taft-hartley act : Summarize the six unfair labor practices by unions as established by the Taft-Hartley Act.
How do they add to or detract from the message : you should discuss specific language choices Lincoln makes to express his ideas. Be sure to use specific examples in your essay to illustrate your claims.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd