This application is a Employee Data Application built using ASP.NET and SQL Server. Here's a guide to configure and run the application.
- Open SQL Server Management Studio (SSMS)
- Create a new database named
DataPribadi - Execute the following SQL script to create the table:
CREATE TABLE Biodata (
NIK NUMERIC NOT NULL PRIMARY KEY,
NamaLengkap TEXT NOT NULL,
JenisKelamin VARCHAR(1) NOT NULL,
TanggalLahir DATE,
Alamat TEXT,
Negara VARCHAR(50)
);Column descriptions:
NIK: National Identity NumberNamaLengkap: Full NameJenisKelamin: GenderTanggalLahir: Date of BirthAlamat: AddressNegara: Country
- Open
appsettings.json - Adjust the connection string according to your SQL Server configuration:
{
"ConnectionStrings": {
"DefaultConnection": "Server=YOUR_SERVER;Database=DataPribadi;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=True;Connect Timeout=60;Pooling=false;"
}
}Replace YOUR_SERVER with your SQL Server name. In this example, it uses DESKTOP-C5VJL4V\\SQLEXPRESS.
Server: SQL Server instance nameDatabase: Target database nameTrusted_Connection: Uses Windows AuthenticationMultipleActiveResultSets: Enables multiple active result setsTrustServerCertificate: Bypasses certificate validationConnect Timeout: Connection timeout in secondsPooling: Connection pooling settings
- Open the solution in Visual Studio
- Ensure all NuGet packages are installed
- Build the solution
- Run the application by pressing F5 or clicking the Start button
If you encounter database connection issues:
- Verify SQL Server is running
- Check server name and database name in the connection string
- Ensure your Windows user has database access
- Check firewall settings if using a remote server
| Column | Data Type | Description |
|---|---|---|
| NIK | NUMERIC | Primary Key |
| NamaLengkap | TEXT | Full name (Required) |
| JenisKelamin | VARCHAR(1) | Gender (Required) |
| TanggalLahir | DATE | Date of birth (Optional) |
| Alamat | TEXT | Address (Optional) |
| Negara | VARCHAR(50) | Country (Optional) |
- The application uses Windows Authentication for database connection
- Make sure to have appropriate permissions in SQL Server
- Table names and columns are in Indonesian language as per original requirements
- Gender (JenisKelamin) is stored as a single character
If you encounter any issues or need assistance:
- Check the troubleshooting section
- Verify your development environment meets the system requirements
- Ensure all configuration settings are correct