I need to give business analysts a web tool to query row data in a SQL Server production DB (I know it’s not a good idea, but big boss said so …). How do I make sure they can only run SQL SELECTs or LINQ Selects, but not modify anything? My plan initially was to create a user with read-only permission, but it turns out the DBA is on vacation for a month …
So to make it more clear – I’m looking for a way to create ASP.NET page(s) that would expose all tables in a given DB for reading, but not writing.
there are probably a lot more options, a new sql instance with a copy of the live data is going to be your best bet.
If it was me though I’d just tell “Big Boss” the dba is on holiday and you don’t have the necessary permissions on the database to make the changes.