Preview

COMP230 W7 Database EReport1

Satisfactory Essays
Open Document
Open Document
503 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
COMP230 W7 Database EReport1
Student Name ____________________________ Date _____4/21/13________
VBScript Database Query Lab Report

Task 4: Write and Run Database Query Program 1
In this scenario, we need to query the Computer database to determine which computers need to be replaced. Our decision will be based on the CPU speed, Number of Processors and the size of the Hard Drive.

In the space provided in your Lab Report document, paste your modified VBScript program and the RUN.

In the table cell below, paste your ComputerReplace.vbs Program
'==========================================================================
' NAME: ComputerDatabase.vbs
'
' AUTHOR: jlmorgan ,
' DATE : 10/22/2011
'
' COMMENT: Use 32 bit ODBC Microsoft Access Driver
'
'========================================================================'

recordsStr = "" sqlStr = "SELECT Computer, Room_Num, Speed, Num_CPUs, OS_Type, HDD_Size FROM Computers WHERE Num_CPUs = 1 OR Speed < 2.1 OR HDD_Size < 300 ORDER BY Room_Num" dataSource = "provider=Microsoft.ACE.OLEDB.12.0;" _
& "data source=C:\Scripts\Computers.accdb"
Set objConnection = CreateObject("ADODB.Connection") objConnection.Open dataSource
Set objRecordSet = CreateObject("ADODB.Recordset") objRecordSet.Open sqlStr , objConnection objRecordSet.MoveFirst ' Display Headers recordsStr = "Computer Room_Num" & _ " Speed Num_CPUs OS_Type " & _ " HDD_Size" & vbCrLf & _ "============================================================" & _ "=============================" & vbCrLf
Do Until objRecordSet.EOF recordsStr = recordsStr & objRecordSet.Fields.Item("Computer") & _ vbTab & pad(objRecordSet.Fields.Item("Room_Num"),5) & _ vbTab & objRecordSet.Fields.Item("Speed") & _ vbTab & objRecordSet.Fields.Item("Num_CPUs") & _ vbTab & pad(objRecordSet.Fields.Item("OS_Type"),25) & _ vbTab & objRecordSet.Fields.Item("HDD_Size") & vbCrLf objRecordSet.MoveNext
Loop
objRecordSet.Close
objConnection.Close

You May Also Find These Documents Helpful

  • Satisfactory Essays

    In the space provided below to copy and paste the remainder of your IP_FileWrite.vbs sourcecode if it did not fit in the first textbox.…

    • 1328 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Week 4 iLab

    • 423 Words
    • 2 Pages

    Use to capture a copy of the Simulation Execution dialog shown below and paste it into your lab document.…

    • 423 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This paper will compare and contrast three computers to pitch an idea to upgrade the computers in this organization so that the consumer can help with growth, decrease cost and keep up with the technique. This will go over cost, reliability, and power. In the conclusion you will find the computer that fits the organization.…

    • 474 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    line of work. Base your judgments on hard disk capacity, RAM size, and processor speed (or…

    • 402 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Comp230 W2 Ilab

    • 1120 Words
    • 5 Pages

    Student Name | | Class | Comp230 | Date | 5/16/2013 | VBScript IPO VBox Lab Report ' VBScript: NameAge.vbs ' Written by: ' Date: 5/16/2013 ' Class: Comp230 ' Professor: Giao Dau ' = == == == ==…

    • 1120 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Week 3 Ilab

    • 367 Words
    • 2 Pages

    End of Program <<< Process finished. In the space provided below, copy and paste the RUN of your NetShareServer.vbs program: ' VBScript: NetShareClient.vbs ' Written by: Student Name ' Date: Today's Date ' Class: COMP230 ' Professor: Professor Name ' = ==…

    • 367 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Week 4

    • 2217 Words
    • 9 Pages

    In the space provided below, copy and paste your VBScript Program Code. If it doesn’t fit, use the next page for the continuation of your sourcecode program…

    • 2217 Words
    • 9 Pages
    Satisfactory Essays
  • Good Essays

    ict revision part 3

    • 755 Words
    • 3 Pages

    Use evaluation criteria to decide what software and hardware to buy and how it will be used.…

    • 755 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Student Name

    • 624 Words
    • 4 Pages

    In the space provided in your Lab Report document, paste your modified VBScript program and the RUN.…

    • 624 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Personal Computers Dq

    • 270 Words
    • 2 Pages

    As you have discovered, there are a variety of computers available, from the smallest computer in a domestic device to the supercomputers used in industry. Despite the different uses of computers, they all have basics elements in common- each computer system involves hardware, software, data, & users. Think about the role of each component of your home or work computer. How do the components of your computer system interact within the system? What improvements or additions to your system do you think would benefit you or make the system more user-friendly? Why?…

    • 270 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Each year the number of employees increases and as a result the number of PC’s the firm uses are expanding. With this increase comes an increase in the demand for support. At the same time, the databases sizes are also increasing, as are the storage needs. These increases are putting a strain on the IT department.…

    • 2100 Words
    • 9 Pages
    Powerful Essays
  • Better Essays

    Before, any of the following steps can take place the expectations and the requirements of IT equipment should be clearly discussed and defined with an appointed committee and organizational leaders. First, the objective should be defined. The next step for selecting and acquiring an information system begins with the acquisition process. An organization must decide whether it would prefer to buy new or refurbished equipment. Also, how will it fund the purchase, whether or not it will pay in full, rent, or lease the equipment, this includes screening the market place. The next step to consider is the structural size of the system. This includes the flow of information, who will have access to the data , how will the system function, and the possibilities of technical difficulties.…

    • 921 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    This paper will explore many types of computers that are out there. What computer would be best for the company also what software the company would need and how to teach each employee how to work the new device. As the company grows, we like to replace all computers and have are top people with tables. Looking into what is best for the company and how will each employee grain the most out of it.…

    • 647 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Spare parts availability is also a selection criterion that can be used to assess a given computer repair services. For machines, which are past their warranty period, the user could sometimes need part replacement. If these are not readily available with the service providers, it will entail unnecessary waste of time. If they are not able to provide the spare part immediately, the computer repair services should at least be able to provide the user with a stand-in computer till such time that the original one is replaced.…

    • 1046 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    Left Wing Extrimism

    • 7254 Words
    • 30 Pages

    The steady development of computer hardware technology in the last few years has led to large supplies of powerful and affordable computers, data collection equipments, and storage media. These technologies provide good support to the database and information industry and make a huge number of databases and information repositories…

    • 7254 Words
    • 30 Pages
    Powerful Essays