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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:08:36+00:00 2026-05-15T22:08:36+00:00

Could anyone please describe how to use NHibernate Query Analyzer? I downloaded it and

  • 0

Could anyone please describe how to use NHibernate Query Analyzer? I downloaded it and trying to build it but it fails, I am not quite sure how to use it.

I am using nHibernate with Sybase and WCF.

Any help is greatly appreciated.

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-15T22:08:37+00:00Added an answer on May 15, 2026 at 10:08 pm

    Setup NHibernate Query Analyzer (NHQA) Project

    After downloading the tool, run Ayende.NHibernateQueryAnalyzer.exe and then:

    File -> New -> Project

    Click ‘Add File(s)…‘ button and add the following files:

    1. your NHibernate configuration file (i.e. *.cfg.xml, *.exe.config, or *.web.config file)
    2. your assembly DLL (or DLLs) that contain the NHibernate mapped classes and also have the mapping file(s) as an embedded resource
    3. your mapping files only if they have not been added as embedded resources to the DLLs in # 2

    (note: in older versions of NHQA, it was necessary to copy the DLLs including its dependencies to the same directory as the NHibernateQueryAnalyzer.exe but that is no longer the case)

    Click ‘Build Project‘ button

    If receive errors, then something needs to be fixed in either the configuration file, the mapping file(s), the classes in the DLL(s), or all of them. It is important to note the exception messages to help troubleshoot and identify which of the above is source of the problem.

    Run Queries

    After successfully building the NHQA project, you can create queries:

    File -> New -> Query

    Now, type in HQL statements. Entities’ names and properties can be dragged and dropped from the tree view on the left to your HQL statements on the right. As you type, it provides on-the-fly checking and validation of your HQL statements in the ‘Exceptions‘ tab and displays the auto generated SQL statements in the ‘SQL‘ tab. A sidebar GUI is also available for dynamically defining named parameters.

    Hit F5 to execute the query. If it executes successfully, you can view the results in tabular form in the ‘DataBase Results‘ tab or as objects in the ‘Object Graph‘ tab.

    Configure Files

    New Mapping files can be created by:

    New -> Mapping (hbm.xml)

    or existing ones can be edited directly:

    Open -> Open Mapping…

    Same for Configuration files:

    New -> Configuration (cfg.xml)

    Open -> Open Configuration…

    References

    Documentation on setup and usage tutorial for NHibernate Query Analyzer is quite sparse but hopefully the above helps.

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

Sidebar

Related Questions

could anyone please answer my 3 DataTables-related questions? I'm trying to use DataTables in
Could anyone please suggest a proper format of comments I should use in a
Could anyone please explain what context should i use the AlertDialog.Builder class? I am
Could anyone please help me writing a regex that I will use to validate
could anyone please ease my misery and inform me whether its possible to use
Could anyone please give me an example in this? I have found many but
Could anyone please give a sample or any link that describes how to spawn
could anyone please clarify the meaning of line generalizes the tag object's storage of
Could anyone please tell me why the following line about filter init method invocation
could anyone please tell me, where in Javascript the difference between MyClass.prototype = new

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.