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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:03:27+00:00 2026-06-15T12:03:27+00:00

I have a user object that was working fine until I added a new

  • 0

I have a user object that was working fine until I added a new field to it for a description. The new field is of type ‘NTEXT’ and is defined as:

<cfproperty name="description" type="string" ormtype="text">

I have a HQL query that then does a search for distinct users who have a certain permission level in certain places. This query worked fine until the description field was added at which point it decided that it couldn’t return a distinct user as you can’t use distinct on NTEXT fields.

To get around this I nested the query so that it is looking for users where users id are in the nested query that now only selects distinct user id’s instead of the whole user object.

This no longer throws an error but instead returns the string ‘dbo’ instead of the user object.

I have had a look at the HQL logs, copied the function out, replaced the objects with their db tables and inserted the parameter and the function behaves as it should in mssql manager.

Why would orm return dbo instead of the object and not give any further error? Does anyone know how to handle NTEXT fields so they don’t cause these issues?

  • 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-06-15T12:03:29+00:00Added an answer on June 15, 2026 at 12:03 pm

    I was using

    SELECT USER
    

    in the hql query as it was originally

    SELECT DISTINCT USER
    

    This was sending the select straight to the DB which was returning the current user of the database instead of the user object.

    Removing the select line fixed the issue

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

Sidebar

Related Questions

Hello i have a simple expandable list activity that was working fine until i
I have a User object mapped with hibernate annotations working just fine. Eg @Entity
I have an object that I save like this in my controller: @user =
I have an object called users that I use to store user objects that
I have the following code that loads a user's Active Directory DirectoryEntry object from
I have a form that is bind to an object, and when the user
I'm writing an app that monitors the user's location. I have a CLLocationManager object
I have async methods that returns an objects public static IEnumerable<Users.User> GetUsers(IEnumerable<string> uids, Field
I have one Servlet that does insertion into my database. This is working fine.
I have a custom Action Helper that is working fine. It's generating a dynamic

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.