0

I've got a database with a stack load of data in it. I'd like to make a web interface which will allow the user to put in an LINQ query, which will return results in a table.

How do I limit it to allow selection only? (I'm thinking the best way is to create another database user with select permissions only)

Anything else I should be aware of, or any other ideas?

1
  • Are you asking how to make it read only? Commented Jun 30, 2011 at 2:15

1 Answer 1

1

Are you just trying to expose your database as a webservice? I would strongly reccomend WCF Data Services.

This basically allows for people to query your data using a rest interface. There is also a client side linq api, that converts link statements to rest. There is plenty of build in security that can facilitate allowing people to only query your data, and not change it.

Sign up to request clarification or add additional context in comments.

2 Comments

I guess my question is more about dynamically compiling queries that a user types into a webpage. WCF Data services is cool, but I want the user to be able to custom query the database.
They can custom query the database? The client data service API can do about 75% of what LINQ to Entities can do.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.