Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForum4.3.2 comments4.3.2 comments
Previous
 
Next
New Post
7/30/2006 10:01 AM
 
I managed to get it working by changing the "order by" clause in the select statement.  This all relates to the following 2 excerpts of code in the stored procedure  dnn_Forum_SearchGetResults

Excerpt 1:
@sql = 'INSERT INTO #PageIndex(ThreaID) SELECT DISTINCT(P.ThreadID) CreatedDate ' +

I have not used an insert with a distinct before but my guess is that only 1 column is being selected here.  It is P.ThreadID whose alias is CreatedDate

Excerpt 2:
@Filter + ' GROUP BY P.ThreadID , P.CreatedDate ORDER BY P.CreatedDate '

This order by clause references neither the column P.ThreadID nor its alias CreatedDate.  The order by clause needs to be changed to one of the following or totally removed. 

Order By:
@Filter + ' GROUP BY P.ThreadID , P.CreatedDate ORDER BY CreatedDate'
Order By (Alternative):
@Filter + ' GROUP BY P.ThreadID , P.CreatedDate ORDER BY P.ThreadID '

Either of the above worked for me in SQL 2005/XP2/Dnn4.3.3
Cheers
John
 
New Post
7/30/2006 3:50 PM
 

jliptak wrote
Order By (Alternative):
@Filter + ' GROUP BY P.ThreadID , P.CreatedDate ORDER BY P.ThreadID '

I chose the above method, and for my DotNetNuke 4.3.3 installation, it fixed the "My Posts" error.  Thank you, John.

For those like me who are new to DNN/SQL Server and such, the stored procedure that this fix has you modify resides inside the DotNetNuke Database.MDF database (assuming your database is named the typical/default: Database.mdf).  And if like me you do not know much about coding stored procedures let alone modifying them, you might use SQL Server Management Studio Express to Attach to the Database.mdf, then make your way down into Programmability > Stored Procedures > Forum_SearchGetResults - and make the change below to that stored procedure.

Before: @Filter + ' GROUP BY P.ThreadID , P.CreatedDate ORDER BY P.CreatedDate DESC '
+After: @Filter + ' GROUP BY P.ThreadID , P.CreatedDate ORDER BY P.ThreadID '

After you've modified the stored procedure, right-click and Execute to run/save the change.


If a problem can be solved, there's no use worrying about it.
If it can't be solved, worrying will do no good.
 
New Post
7/30/2006 3:52 PM
 

Excellent stuff John, works for me.
I've updated Gemini with your solution here: DNNP-3690

Cheers

Alex



Alex Shirley


 
New Post
8/4/2006 12:24 PM
 

Hi just got back from being away, that worked a treat for me also thanx all.

MK

 
New Post
8/31/2006 5:36 PM
 

Ok, I am new at this too and am unable to find ANY of the DNN tables or stored procedures when using SQL Server Management Studio Express.  Is there something I need to enable to view these objects?

Thanks,

Gary

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForum4.3.2 comments4.3.2 comments


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out