Thursday, January 08, 2009
To start or answer a thread you will need to login...


Forum Guidelines

Please ensure you follow the bug-raising guidelines (e.g. post the full error from your Event Viewer) if you are raising a support call. To request a feature in a module, please use Feature Requests (unless you want to discuss it here in more detail first). If you have an urgent feature that you would like to see in the product then you should consider a Sponsored Enhancement.

 

First Time User? Make sure you have read the Module Config Guide in the documents folder of each module. Also check out this handy Module Deployment Guide (written by a Smart-Thinker customer!)

Configuration issues and no time to read the Forums/Documentation? See our DotNetNuke Premium Support Service.

 

We need your opinion! Please read our proposed new CrowdSourcing development method and let us know if you would be interested and if it might work.

 
 
  Forums  DotNetNuke  General  A liitle help with a sql select please
Previous Previous
 
Next Next
New Post 11/18/2006 7:57 PM
  Buck Anderson
45 posts
www.justnorth.com
4th Level Poster


A liitle help with a sql select please  (N/A)
Modified By Buck Anderson  on 11/20/2006 8:21:47 AM)

The following worked on DNN 3.2.2 until converting to DNN 4x.

Any body know the changes to the statement to be compatible with 4x?

The following select does not break but it also does not return the latest registered users any longer:

select Top 11 Users_1.UserName AS [Name], dbo.GetProfileElement('Region', PropertyNames, PropertyValuesString) AS Region
FROM
dbo.Users Users_1 INNER JOIN
dbo.aspnet_Users aspnet_Users_1 ON Users_1.username = aspnet_Users_1.username
INNER JOIN
dbo.aspnet_Membership aspnet_Membership_1 ON aspnet_Users_1.userid = aspnet_Membership_1.userid
INNER JOIN
dbo.aspnet_Profile aspnet_Profile_1 ON aspnet_Profile_1.userid = aspnet_Membership_1.userid
left join UserPortals UP on Users_1.UserId = UP.UserId
where (UP.PortalId = 1) and (aspnet_Membership_1.IsApproved = 1)
order by UP.CreatedDate DESC


Buck Anderson JustNorth Outdoors www.justnorth.com
 
Previous Previous
 
Next Next
  Forums  DotNetNuke  General  A liitle help with a sql select please
Top Threads Minimize
In the past 1 week, we have 22 new thread(s) and 50 new post(s)
The most popular thread has been Re: Sponsored Enhancement Proposal Estimate - StoryFeed Commenting
The most active thread has been accept Friend Request?
Print  

Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!

Smart-Thinker DNN Forums

© 2008 Smart-Thinker