PasingGrades
  • Start Selling
  • Blog
  • Contact
  • 0

    Your cart is empty!

English

  • English
  • Spanish
  • Arabic
Create Account Sign In
  • Library
    • New Prep Guides
    • Featured Prep Guides
    • Free Exam Prep Guides
    • Best sellers
  • General
  • Nursing
    • Research Paper
    • Case Study
    • Discussion Post
    • Assignment
    • Exam
    • Practice Questions and Answers
    • Test Bank
    • solutions manual
    • study guide
  • Accounting
    • Case Study
    • Thesis
    • Study Guide
    • Summary
    • Research Paper
    • test bank
  • English
    • Creative Writing
    • Research Paper
    • Summary
    • Rhetorics
    • Literature
    • Journal
    • Exam
    • Grammar
    • Discussion Post
    • Essay
  • Psychology
    • Hesi
    • Presentation
    • Essay
    • Summary
    • Study Guide
    • Essay
    • Solution Manual
    • Final Exam Review
    • Class Notes
    • test bank
  • Business
    • Lecture Notes
    • Solution Manual
    • Presentation
    • Business Plan
    • Class Notes
    • Experiment
    • Summary
    • Practice Questions
    • Study Guide
    • Case Study
    • test bank
    • Exam
  • More
    • Computer Science
    • Economics
    • Statistics
    • Engineering
    • Biology
    • Religious Studies
    • Physics
    • Chemistry
    • Mathematics
    • History
    • Sociology
    • Science
    • Philosophy
    • Law
  • Pages
    • About Us
    • Selling Tips
    • Delivery Policy
    • Faq
    • Privacy Policy
  • Flash Sale
  • Home
  • COMP 230 - iLab Report - Week - 7;VBScript Database Query Lab Report

COMP 230 - iLab Report - Week - 7;VBScript Database Query Lab Report

Preview page 1 Preview page 2 Preview page 3
Add To Favorites

Share this item Share this item

  • Item Details
  • Comments (0)
  • Reviews (0)
  • Contact Seller

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: ComputerReplace.vbs

' ' AUTHOR:

' DATE :

'

' 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=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"),8) & _

vbTab & objRecordSet.Fields.Item("Speed") & _

vbTab & objRecordSet.Fields.Item("Num_CPUs") & _        vbTab

& pad(objRecordSet.Fields.Item("OS_Type"),12) & _

vbTab & objRecordSet.Fields.Item("HDD_Size") & vbCrLf

objRecordSet.MoveNext

Loop objRecordSet.Close

objConnection.Close

 

WScript.Echo recordsStr

 

function pad(ByVal strText, ByVal len) pad = Left(strText & Space(len), len) end Function

 

Contact the Seller

Please Sign In to contact this seller.


  • 👎  Report Copyright Violation

Frequently Asked Questions

What Do I Get When I Buy This Study Material?

+

When you buy a study material on PasingGrades, an instant download link will be sent directly to your email, giving you access to the file anytime after payment is completed.

Is PasingGrades a Trusted Platform?

+

Yes, PasingGrades is a reputable students’ marketplace with a secure payment system and reliable customer support. You can trust us to ensure a safe and seamless transaction experience.

Will I Be Stuck with a Subscription?

+

No, all purchases on PasingGrades are one-time transactions. You only pay for the notes you choose to buy, with no subscriptions or hidden fees attached.

Who Am I Buying These Study Materials From?

+

PasingGrades is a marketplace, which means you are purchasing the document from an individual vendor, not directly from us. We facilitate the payment and delivery process between you and the vendor.

Does PasingGrades Offer Free Study Materials?

+

Yes, sellers on PasingGrades have uploaded numerous free test banks, exams, practice questions, and class notes that can be downloaded at no cost.

Pasinggrades - Quality Study Materials

USD 7

    • Quality checked by PasingGrades
    • 100% satisfaction guarantee
    • Seller: Namwaki
Buy PDF $7

Seller Information

Namwaki

Member since April 2021

  • icon
View Profile
  • total sales

    0
  • Favourites

    0
  • Comments

    0
    ( 0 Ratings )

Item Information

  • Uploaded

    17 May 2024

  • Updated

    24 October 2025

  • Category

    Computer Science

  • Item Type

    exam

  • Tags

    COMP 230

Similar Exams

COMP 230 week 5 iLab report;VBScript Modular Lab Report
View Document

COMP 230 week 5 iLab report;VBScript Modular Lab Report

COMP 230 week 5 iLab report;VBScript Modular Lab Report

8 USD
COMP 230 WEEK 5 ILAB VBSCRIPTMODULAR LAB REPORT(1) NEW UPDATED2021
View Document

COMP 230 WEEK 5 ILAB VBSCRIPTMODULAR LAB REPORT(1) NEW UPDATED2021

COMP 230 WEEK 5 ILAB VBSCRIPTMODULAR LAB REPORT(1) NEW UPDATED2021

8 USD
COMP 230 Final Exam 2
View Document

COMP 230 Final Exam 2

COMP 230 - Final Exam - 2

5 USD

Related free study materials

Comprehensive Predictor Exam Study Material For Nursing Students
Read

Comprehensive Predictor Exam Study Material For Nu...

This are some of the questions that are tested in ATI PN Comprehensive

How to Pass Portage Learning BIOL 251: Complete Human Anatomy & Physiology I Study Guide
Read

How to Pass Portage Learning BIOL 251: Complete Hu...

A full BIOL 251 study guide covering every module, Respondus setup, the 48-hour exam rule, lab quiz...

HOSA Medical Math: The Complete Preparation Guide for the NLC Event
Read

HOSA Medical Math: The Complete Preparation Guide...

Master the HOSA Medical Math NLC event. Learn core dosage formulas, metric conversions, IV drip rate...

Related Exam Prep Guides by Namwaki

Sophia Finance Milestone Final_Complete Questions and Answers 2021.
View Document

Sophia Finance Miles...

  • Namwaki

    Namwaki

  • exam

Sophia Finance Milestone Final_Complete Questions and Answers 2021...

7 USD

0

0

Medical Parasitology 7th Edition Leventhal Test Bank
View Document

Medical Parasitology...

  • Namwaki

    Namwaki

  • exam

Medical Parasitology 7th Edition Leventhal Test Bank...

7 USD

0

0

TEST- BANK FOR WONGS NURSING CARE OF INFANTS AND CHILDREN 11TH EDITION HOCKENBERRY
View Document

TEST- BANK FOR WONGS...

  • Namwaki

    Namwaki

  • exam

TEST- BANK FOR WONGS NURSING CARE OF INFANTS AND CHILDREN 11TH EDITION HOCKENBERRY – Download PDF...

7 USD

0

0

Purchase

Download link will be sent to this email immediately after purchase.

IMPORTANT LINKS

  • How To Upload Class Notes
  • Selling Tips
  • Pasing Grades's Study Materials
  • Scholarships for International Students 2026

POPULAR CATEGORIES

  • Law
  • Accounting
  • English
  • Psychology
  • Business
  • Nursing
  • Computer Science
  • General

View Document

  • Blog
  • Contact
  • Delivery Policy
  • Latest Scholarships Around the World
  • How to Pass Bar Exams: Passing Grades’ Strategies
  • How to Study and Pass the CPA Exam
  • All Test Banks
  • All Exams Preparation Materials
  • Faq
  • Copyright Claims
  • Privacy Policy
  • Terms of Use

KNOWLEDGE BASE

  • How to Write A+ Grade Good Research Paper
  • How to Manage Stress During Exam Period
  • Best Time to Study
  • How to Pass NCLEX-RN Exam
  • How To Effectively Utilize Test Banks
  • Popular Shadow Health Exam Assessments
  • Popular HESI Case Studies
  • How to Prepare for a Nursing Career
  • The Importance Of Summaries in Exam Revisvion

© 2026 PasingGrades. All rights reserved.