Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7073961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:59:34+00:00 2026-05-28T05:59:34+00:00

I need to show the database tables to a tester. For now, I have

  • 0

I need to show the database tables to a tester. For now, I have hard coded the queries that show the data of each table: the user clicks on a list of tablenames and the server returns a gridview with all the data for that table. The queries are pretty simple:

var AllTheTable = (from t in MyDataContactTableName
                   select t).ToList();

I want to add a textbox where the tester can enter a custom linq-to-sql query at runtime.

How can I do this?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:59:35+00:00Added an answer on May 28, 2026 at 5:59 am

    Linq doesn’t work like SQL- you need to run linq-to-sql queries through the compiler, because they are ultimately compiled C# code. Why not just give your users the ability to run a SQL query? There are a lot of security pitfalls around what you are asking either way, but with just SQL they can only mess up your database. With linq-to-sql they could potentially compromise your web server.

    If this is an internal project where security isn’t a concern and you just want to give the tester arbitrary access to your SQL data, have them write SQL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have three tables in an SQL 2005 database, that I need to query
I have a table that exists in an Oracle database, but doesn't show on
i have a sqlite3 database that has multiple (six) tables and i need it
I have a few tables in my database: user table: user_id (primary key) ,
I've a table in a database where I need to show all the rows's
This is my table for a mysql database. http://the44.simorasic.com/cages.html I need to show the
Hi i have Tab activity(Chapter,subject) and database. i need to show the chapter_table content
I have SQL Server 2008 database with two tables. The first table is called
I have three tables in my database. First table is Employee : Second table
I have a database that has two tables, one of which contains a foreign

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.