21 articles SQL Server 2008 Page 2 / 3

SQL Server Management Studio User to Access Certain Database

Berikut adalah cara supaya user hanya bisa melihat database tertentu, tidak semua database yang terdapat pada server 1. Create user account 2. Right Click on the upper section of the SQL (SQLSERVER Name)>Properties>Permissions>Click on the user account, and select Deny to view databases 3. Right Click on the newly created DB, Properties,Files, and change the…

Entity Framework Error: Incorrect syntax near ‘OFFSET’.Invalid usage of the option NEXT in the FETCH statement.

Incorrect syntax near ‘OFFSET’.Invalid usage of the option NEXT in the FETCH statement. Error tersebut biasanya terjadi jikalau terdapat perbedaan versi SQL Server Untuk mengatasi delete bagian connection string di App.config lalu lakukan update ulang edmx

Table Soft Delete

Rekadian, ada isu yang cukup menarik. Apakah sebaiknya setiap tabel di soft delete? Maksudnya daripada dihapus dari database, diberikan flag is_deleted. Mengapa soft delete? In case ada kesalahan user menghapus data, dan space penyimpanan harganya sekarang sudah murah. Terkait performansi, saya baca bisa dibuat partisi. Ada opsi lain juga untuk dibuat tabel archive. Misalnya data…