0% found this document useful (0 votes)
11 views

Csc415 Practical Guidelines

Uploaded by

giftkunuba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Csc415 Practical Guidelines

Uploaded by

giftkunuba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

DELTA STATE UNIVERSITY, ABRAKA

COMPUTER SCIENCE DEPARTMENT


FACULTY OF SCIENCE

Second Semester for 2021/2022 Academic Session


Course Code/ Title: CSC 415 – Organization of Programming Languages
PRACTICAL GUIDELINES
Lecturer: Dr. G. C. Omede

TUTORIAL ONE (20 mins)


Given a CSC 415 students scores in two excel sheets, create a single table access
database.
Two methods can be applied: First we can merge/concatenate both sheets into one sheet
and create a single table access database; Secondly we can create the single table access
database with one of the two sheets and append the contents of the second sheet to the
table.
Method One:
i. Open the excel spreadsheet (type/open excel on search tab on your tasks bar and
press enter).
ii. Select one of the two sheets highlight all records without the headers, copy and
paste after the last record in the other sheet then save and exit.
iii. Open the Access database management system tool (type open access on search
tab on your tasks bar and press enter).
iv. Click file or office ribbon on menu and click on new from the pop-up Sub menu,
click blank database button.
v. The blank database creation window pops up, choose location to save your
database in and type your database name and click create button.
vi. If you receive a security warning, click the Enable Content button.
vii. Select the External Data tab, select new data source, from file and click Excel.
viii. The "Get External Data - Excel Spreadsheet" wizard appears. In the File name field,
browse to the Excel file. Select the "Import the source data into a new table in the
current database" option and click OK.
ix. Select the worksheet containing all CSC 415 students scores to import. Click Next.
x. If the first row contains headers, mark the "First Row Contains Column Headings"
checkbox. Click Next.
xi. Select the options for each column or just leave it at the default and click Next.
xii. Select "choose my own primary key." Click Next.
xiii. The Import to Table field defaults to the worksheet name. Update it if needed. Click
Finish and click close.
Method Two:
On the other hand, we import one sheet first then append the second sheet to
already created table.
i. Open the Access database management system tool (type open access on search
tab on your tasks bar and press enter).
ii. Click file or office ribbon on menu and click on new from the pop-up Sub menu,
click blank database button.
iii. The blank database creation window pops up, choose location to save your
database in and type your database name and click create button.
iv. If you receive a security warning, click the Enable Content button.
v. Select the External Data tab, select new data source, from file and click Excel.
vi. The "Get External Data - Excel Spreadsheet" wizard appears. In the File name field,
browse to the Excel file. Select the "Import the source data into a new table in the
current database" option and click OK.
vii. Select one worksheet of CSC 415 students scores to import first. Click Next.
viii. If the first row contains headers, mark the "First Row Contains Column Headings"
checkbox. Click Next.
ix. Select the options for each column or just leave it at the default and click Next.
x. Select "choose my own primary key." Click Next.
xi. The Import to Table field defaults to the worksheet name. Update it if needed. Click
Finish and click close.
xii. To import the second Excel worksheet into the table created in Access:
xiii. Ensure that the worksheet uses the exact headers as the table.
xiv. Open the Access database.
xv. If you receive a security warning, click the Enable Content button.
xvi. Select the External Data tab, select new data source, from file and click Excel.
xvii. The "Get External Data - Excel Spreadsheet" wizard appears. In the File name field,
browse to the Excel file. Select the "Append a copy of records to the table" option. In
the drop-down, select the appropriate table and click OK.
xviii. Select the second worksheet to import. Click Next.
xix. Click Finish
TUTORIALTWO (20 mins)
Given a CSC 415 students scores in two excel sheets, create and populate a single table
MySQL database system in phpMyAdmin.
Two methods can be applied, first we can merge/concatenate both sheets into one sheet
and create a single table MySQL database or create a single table MySQL database with
one of the two sheets and append the contents of the second sheet to the table.

Method One:
i. Open the excel spreadsheet (type open excel on search tab on your tasks bar and
press enter).
ii. Select one of the two sheets highlight all records without the headers, copy and
paste after the last record in the other sheet than save as .csv file type and exit.
iii. Open the MySQL database management system tool workbench (type open MySQL
workbench and press enter).
iv. Click file on the menu and click create new schema, enter a name for the schema
and apply.
v. Open the schema and right click on the table tag and click on table data import
wizard.
vi. Enter file name (that was earlier saved) of type .csv and location or click browse
button to navigate to file in its location and double-click.
vii. Click next, then check the create new table, select database name, and enter table
name. then click next.
viii. The configure import setting window pops up, see if the table fields and types as well
as records are displayed, click next.
ix. Click next again to start data import, then finish.

TUTORIALTHREE (30 mins)


This tutorial demonstrates how to import any given table(s) from an access database to
MSSQL Server DBMS.
Use the following steps to import statetb and lgatd tables from the access database file
C:\matno\delsu.mdb to MSSQL Server DBMS?
i. Open MSSQL Server DBMS
ii. Right click on the database folder/node to import
iii. Click on All tasks
iv. Click on Import Data
v. The Data Transfer Services Wizard screen will appear.
vi. Click on Next
vii. The Choose a Data Source screen will appear.
viii. In the Data Source field, choose Microsoft Access.
ix. In the file name field, enter C:\matno\delsu.mdb.
x. Click on Next.
xi. The Choose a destination screen will appear.
xii. The destination should be Microsoft OLE DB Provider for SQL Server.
xiii. Click on Use Windows Authentication if a password is not required.
xiv. At the database field, using the drop-down menu, choose New.
xv. A Create Database dialog box will appear then.
xvi. In the Name field, enter the name of the Access database that is being imported to
the SQL Server. Do not change the default data file or log file sizes.
xvii. NOTE: Be sure to spell the database name in the SQL Server with the exact same
name as the MS Access database name. This is necessary to create the new folder.
xviii. Click on OK.
xix. Click on Next.
xx. The Specify Table Copy / Query screen will appear.
xxi. Choose Copy table(s) and view(s) from the source database.
xxii. Click on Next.
xxiii. The Select Source Tables and Views screen will appear.
xxiv. Select the two tables: statetb and lgatb.
xxv. Click on Next.
xxvi. The Save, schedule, and replicate package screen will appear.
xxvii. In the When box, make sure the Run immediately choice is checked. Don’t click on
anything else on this screen at this time.
xxviii. Click on Next.
xxix. The Completing the DTS Import/Export Wizard will appear.
xxx. Click on Finish.
xxxi. You should see an Executing Package screen which shows progress of the
importing of data from Access to the SQL Server.
xxxii. You should see a screen with the Successfully copied 2 table(s) message.
xxxiii. Click on OK.
xxxiv. Click on Done.

You might also like