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 121189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:55:51+00:00 2026-05-11T03:55:51+00:00

My company needs to allow the internal users of our application to write queries

  • 0

My company needs to allow the internal users of our application to write queries directly against the database through our UI. But when we display the results, our code needs to know which column and table each return column is for so that the results can be displayed with some color coding and other logic for each column.

So I was hoping that there was a class or some simple code out there that would do SQL parsing and somehow give me the source table and column name that each return column in a SQL query represents.

An example

select b.FirstName As Name, c.Address From BusinessOwner b     left join ContactLocation c on b.ID = c.OwnerID 

So I would need some code to figure out that the ‘Name’ output column actually was from the BusinessOwner table and was the column titled FirstName and that Address came from the ContactLocation table.

  • 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. 2026-05-11T03:55:51+00:00Added an answer on May 11, 2026 at 3:55 am

    you might try something like this:

    Select b.FirstName As BusinessOwner.Name, c.Address as ContactLoaction.Address From BusinessOwner as b, ContactLocation as c 

    and with some parsing of first part of the columns name that return form the query you will determine the table that columns belong to. something like this:

    string tempName = tabel.Columns[0].ColumnName; string tableName = tempName.Substring(0, tempName.IndexOf('.')); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to write an SNMP agent on Windows for our company product. SnmpApi.lib
I have set up a company intranet website built with PHP/MySQL and allow users
Our company have a need to set up some solution, that would allow us
I'm currently working on an internal sales application for the company I work for,
I'm designing a database for internal use at my company that will store data
Scenario I am developing an internal CakePHP company application that has a despatch screen,
The company I work at has very specific and unique needs for a help
I am trying to write a WSH logon script. Administrators throughout the company need
Our .NET team works on projects for our company that fall into distinct categories.
I'm looking for an Application Programming Interface which will allow me to access quotes

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.