With your RDS instance running and its endpoint available from the CloudFormation stack output, the next step is to create the application database and populate it with the schema and seed data the Cycle Store app expects. All of this is handled by a single SQL script included in the project.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/aws-samples/legacy-cycle-store-mvc-app/llms.txt
Use this file to discover all available pages before exploring further.
The SQL Script
TheCYCLE_STORE_Schema_data.sql script performs every database-level setup step in one execution:
- Creates the
CYCLE_STOREdatabase — issues aCREATE DATABASEstatement against themasterdatabase, then switches context to the new database. - Creates the
Productionschema — all application tables live under this schema, keeping them logically separated from any future schemas you might add. - Creates three tables — the core entities for the product catalog:
Production.ProductCategory— top-level categories (e.g., Bikes, Components, Clothing)Production.ProductSubcategory— subcategories linked to a parentProductCategoryProduction.Product— individual products linked to aProductSubcategory
- Inserts seed data —
INSERTstatements populate all three tables with realistic product records so the application has content to display immediately after setup.
CYCLE_STORE database context.
Connect with SSMS
Open SQL Server Management Studio
Launch SSMS on your local machine. When the Connect to Server dialog appears, you are ready to fill in the connection details.
Enter the Server Name
In the Server name field, paste the SQLDatabaseEndpoint value from the CloudFormation stack outputs. It takes the form:Note that SSMS uses a comma (
,) before the port number rather than a colon.Select SQL Server Authentication
Set Authentication to SQL Server Authentication. This is required because the RDS instance does not use Windows Authentication.
Enter Credentials
- Login:
DBUser - Password: the value retrieved from the
CycleStoreCredentialsSecrets Manager secret
Run the Script
Open the SQL Script
In SSMS, go to File → Open → File and navigate to
CYCLE_STORE_Schema_data.sql in the project repository. The script opens in a new query editor window. Confirm that the connection in the toolbar shows your RDS server name.Execute the Script
Click Execute (or press F5). The script runs all statements in sequence: it creates the database, switches context, creates the schema, creates the tables, and inserts the seed records. Execution typically completes in a few seconds. Check the Messages pane at the bottom of the window — it should show a series of
Command(s) completed successfully. lines with no errors.Verify the Tables Exist
In the Object Explorer, expand Databases → CYCLE_STORE → Tables. You should see the three tables listed under the
Production schema:Production.ProductProduction.ProductCategoryProduction.ProductSubcategory
Verify the Data
Run the following queries in a new query window to confirm that seed data was loaded correctly into each table:INSERT portion of the script did not execute successfully — re-open the script, scroll to the relevant INSERT block, and run it again manually.