c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
SQL

Access denied sql server attach database

| | SQL
I am using SQL Server 2019, when I tried to attach the database to the server I got this following error message "Access is denied". 
Then I right click on the file and select security and I grant the same file permissions as local admin group, then I can attach with no problems.