Click here to Skip to main content
15,886,689 members
Home / Discussions / Database
   

Database

 
AnswerRe: error message 2754 Pin
reza assar11-Apr-10 9:29
reza assar11-Apr-10 9:29 
QuestionT-SQL Table Variable - Create a column for each row in a table Pin
kilkfoe126-Feb-10 8:00
kilkfoe126-Feb-10 8:00 
AnswerRe: T-SQL Table Variable - Create a column for each row in a table Pin
SilimSayo26-Feb-10 9:20
SilimSayo26-Feb-10 9:20 
AnswerRe: T-SQL Table Variable - Create a column for each row in a table Pin
Tim Carmichael26-Feb-10 9:22
Tim Carmichael26-Feb-10 9:22 
GeneralRe: T-SQL Table Variable - Create a column for each row in a table Pin
Mycroft Holmes26-Feb-10 10:59
professionalMycroft Holmes26-Feb-10 10:59 
AnswerRe: T-SQL Table Variable - Create a column for each row in a table Pin
Mycroft Holmes26-Feb-10 11:03
professionalMycroft Holmes26-Feb-10 11:03 
GeneralRe: T-SQL Table Variable - Create a column for each row in a table Pin
kilkfoe12-Mar-10 11:10
kilkfoe12-Mar-10 11:10 
Questionthe order by clause is invalid in views inline functions ... Pin
Majid Shahabfar26-Feb-10 3:37
Majid Shahabfar26-Feb-10 3:37 
SELECT	PD_Users.FirstName as FirstName, PD_Users.LastName as LastName, PD_Users.UserName as UserName, PD_Users.CityID as CityID, 
	        PD_Cities.CityName as CityName, aspnet_Membership.CreateDate as CreateDate,
        (SELECT COUNT(*) FROM PD_Articles WHERE  (PD_Users.UserName = UserName)) AS ArticleCount,
        (SELECT COUNT(*) FROM PD_News WHERE  (PD_Users.UserName = SenderName AND IsDevNews = 1)) AS NewsCount,
        (SELECT COUNT(*) FROM PD_News WHERE  (PD_Users.UserName = SenderName AND IsDevNews = 0)) AS ITNewsCount,
        (SELECT COUNT(*) FROM  PD_ForumMessage WHERE (PD_Users.UserName = UserName)) AS MessageCount,
        CASE WHEN aspnet_Users.LastActivityDate > @DateActive THEN cast(1 as bit) ELSE cast(0 as bit) end AS IsOnline,
		ROW_NUMBER() OVER (ORDER BY aspnet_Membership.CreateDate ) AS RowNumber
			
	FROM	aspnet_Users INNER JOIN aspnet_Membership ON aspnet_Users.UserId = aspnet_Membership.UserId INNER JOIN
                      PD_Users INNER JOIN PD_Cities ON PD_Users.CityID = PD_Cities.CityId ON aspnet_Users.UserName = PD_Users.UserName
    WHERE (@LastName = PD_Users.LastName  OR (@LastName = '' AND 1=1))    
          AND (@UserName = PD_Users.UserName OR (@UserName = '' AND 1=1))
          AND (@CityID = PD_Users.CityID OR (@CityID = -1 AND 1=1))
          AND (@UserStatus = (CASE WHEN aspnet_Users.LastActivityDate > @DateActive THEN cast(1 as bit) ELSE cast(0 as bit) end) OR (@UserStatus = 0 AND 1=1))                
     ORDER BY PD_Users.FirstName DESC     



I got the error: the order by clause is invalid in views inline functions ...

do you have any idea?
QuestionRe: the order by clause is invalid in views inline functions ... Pin
i.j.russell26-Feb-10 4:35
i.j.russell26-Feb-10 4:35 
QuestionRe: the order by clause is invalid in views inline functions ... Pin
Chris Meech26-Feb-10 8:56
Chris Meech26-Feb-10 8:56 
AnswerRe: the order by clause is invalid in views inline functions ... Pin
Majid Shahabfar26-Feb-10 21:53
Majid Shahabfar26-Feb-10 21:53 
GeneralRe: the order by clause is invalid in views inline functions ... Pin
Chris Meech1-Mar-10 7:35
Chris Meech1-Mar-10 7:35 
AnswerRe: the order by clause is invalid in views inline functions ... Pin
SilimSayo26-Feb-10 9:40
SilimSayo26-Feb-10 9:40 
GeneralRe: the order by clause is invalid in views inline functions ... Pin
Majid Shahabfar26-Feb-10 21:55
Majid Shahabfar26-Feb-10 21:55 
GeneralRe: the order by clause is invalid in views inline functions ... Pin
SilimSayo27-Feb-10 17:58
SilimSayo27-Feb-10 17:58 
GeneralRe: the order by clause is invalid in views inline functions ... Pin
Majid Shahabfar3-Mar-10 20:22
Majid Shahabfar3-Mar-10 20:22 
Questionupdate item_guid based on item_code Pin
Jassim Rahma25-Feb-10 20:58
Jassim Rahma25-Feb-10 20:58 
AnswerRe: update item_guid based on item_code Pin
R. Giskard Reventlov25-Feb-10 22:26
R. Giskard Reventlov25-Feb-10 22:26 
Questionblood Pressure Pin
Jassim Rahma25-Feb-10 20:43
Jassim Rahma25-Feb-10 20:43 
AnswerRe: blood Pressure Pin
Not Active26-Feb-10 0:07
mentorNot Active26-Feb-10 0:07 
AnswerRe: blood Pressure Pin
i.j.russell26-Feb-10 2:12
i.j.russell26-Feb-10 2:12 
AnswerRe: blood Pressure Pin
T M Gray26-Feb-10 11:54
T M Gray26-Feb-10 11:54 
GeneralRe: blood Pressure Pin
Jassim Rahma26-Feb-10 18:13
Jassim Rahma26-Feb-10 18:13 
QuestionHow rollback tran in while loop Pin
amit sahu2025-Feb-10 20:34
amit sahu2025-Feb-10 20:34 
AnswerRe: How rollback tran in while loop Pin
Pranay Rana25-Feb-10 21:27
professionalPranay Rana25-Feb-10 21:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.