June 2025
Beginner to intermediate
473 pages
13h 30m
English
The starting point for this section is the JSON file, employees.json, which has the following structure:
[ { "FirstName": "Ruthanne", "LastName": "Ferguson", "DateOfBirth": "1977-06-04", "Street": "4 Dewy Turnpike", "Zip": "27698", "City": "Clifton Hill", "State": "NJ", "Gender": "F", "Email": "ruthanne_ferguson5693@fastmail.cn", "Job": "Junior Engineer", "Salary": "5201.45" }, ... A PowerShell script is supposed to process this file and enter the records into a table of a SQL Server database. I am assuming that the JSON keys match the column names of the table. You can create a suitable table using the following command:
CREATE TABLE employees( id INT IDENTITY(1, 1) PRIMARY KEY, FirstName TEXT NOT NULL, ...
Read now
Unlock full access