This document provides a script to generate 5,000 sample project records for testing and development purposes.
Before running this script, you need to have the Projects table created. Follow the setup instructions in the Azure SQL Connection Guide to create the required database schema.
The sample data generator creates realistic project data with:
- ✅ 5,000 unique project records
- ✅ Randomized project names with sequential numbering
- ✅ Realistic date ranges (past and future dates)
- ✅ Varied statuses (Planning, Active, On Hold, Completed, Cancelled)
- ✅ Different priorities (Low, Medium, High, Critical)
- ✅ Random budgets between $10,000 and $500,000
- ✅ Rotating project managers from a pool of sample emails
- Open your SQL Server Management Studio or Azure Data Studio
- Connect to your Azure SQL Database
- Copy and execute the contents of
generate-sample-data.sql
The script provides progress indicators every 1,000 records:
Generated 1000 records...
Generated 2000 records...
Generated 3000 records...
Generated 4000 records...
Generated 5000 records...
Successfully generated 5000 sample project records!
The script automatically verifies the data generation:
-- Results will show:
TotalRecords: 5003 (3 original + 5000 new)
SampleRecords: 5000- Base names from a realistic pool (Website Redesign, Mobile App Development, etc.)
- Sequential numbering for uniqueness (e.g., "Website Redesign 1", "API Integration 2500")
- Start dates: Random dates within the last year
- End dates: Random dates within the next year
- Ensures realistic project timelines
- Range: $10,000 to $500,000
- Increment: Rounded to nearest $100
- Distribution: Evenly distributed across the range
- Pool of 10 sample email addresses
- Randomly assigned to ensure variety
- Format:
firstname.lastname@company.com
To remove only the generated sample data while keeping original records:
DELETE FROM [dbo].[Projects]
WHERE [CreatedBy] = 'sample-data-generator';- ⚡ Execution time: Approximately 30-60 seconds for 5,000 records
- 💾 Memory usage: Minimal - uses efficient batch processing
- 📊 Database size: ~2-3 MB additional storage
-
Table doesn't exist
- Ensure you've run the schema creation script from the Azure SQL guide
-
Permission errors
- Verify your user has INSERT permissions on the Projects table
-
Constraint violations
- The script uses only valid Status and Priority values as defined in the table constraints
This sample data works perfectly with the FluentSample Power Apps Code App:
- ✅ SQL Database page will display all 5,000+ records
- ✅ Search and filtering functionality will be more realistic
- ✅ Performance testing with substantial data
- ✅ Pagination behavior can be properly evaluated
Ready to test your app with realistic data volume! 🚀