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

  • Home
  • SEARCH
  • 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 237157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:24:11+00:00 2026-05-11T20:24:11+00:00

Where stockView is an indexed view with a full-text index, I receive the error

  • 0

Where stockView is an indexed view with a full-text index, I receive the error message below. The database is running on a 2008 Express engine in 2005 compatibility mode.

Code:

with stockCte (title, grade, price, weighted)
as
(
    select sv.[title]                   ,
            sv.[grade]                  ,
            sv.[price]                  ,
            (case when sv.[issue] = @issue and svs.[rank] > 30
                then svs.[rank] + 100
                else svs.[rank]
                end)                    weighted
    from stockView sv
    inner join freetexttable(stockView, (name), @term) svs
        on sv.[id] = svs.[key]
)
select * from stockCte;

Error:

Msg 0, Level 11, State 0, Line 0
A severe error occurred on the current command.  The results, if any, should be discarded.
Msg 0, Level 20, State 0, Line 0
A severe error occurred on the current command.  The results, if any, should be discarded.

The query works when I remove the inner join and the weighted column. Any ideas, I’m at a loss.

  • 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-11T20:24:11+00:00Added an answer on May 11, 2026 at 8:24 pm

    Reluctantly I have resorted to using a table variable instead of a CTE.

    declare @stockTemp table(
        title               nvarchar(100),
        grade               nvarchar(50),
        price               money,
        row                 bigint
    );
    
    insert into @stockTemp
    select sv.[title]                   ,
            sv.[grade]                  ,
            sv.[price]                  ,
            row_number() over (order by (case when sv.[issue] = @issue and svs.[rank] > 30
                                                then svs.[rank] + 100
                                                else svs.[rank]
                                                end) desc,
                                            sv.title,
                                            sv.grade desc,
                                            sv.price asc)
    from stockView sv
    inner join freetexttable(stockView, (*), @term) svs
        on sv.[id] = svs.[key]
    
    select * from @stockTemp;
    

    If anyone has any better suggestions, please let me know.

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

Sidebar

Related Questions

I am develop a stock view app on iPad. I figure out that qtstalker
I'm developing an app for iOS and I'm running into issues with low memory
Situation right now: I've got a live-system and its running very well. I DO
I have 1 table in my database ( instance_main ) that I need to
I want to send my View Object to my ViewModel, How can i do
I have the an existing WPF xaml layout to which I added a stackview
I have 2 questions to ask here. I am refering http://www.broculos.net/en/article/android-101-how-create-stackview-widget to create a
I'm sharing some variables accross activities by using a class like this : public
I am getting access denied when asking Magento with following request: <?xml version=1.0 encoding=UTF-8?>
In Stackview, it seems that OnItemSelectedListener (from superclass AdapterView) is never called... How can

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.