Click here to Skip to main content
15,908,111 members
Home / Discussions / Database
   

Database

 
GeneralRe: Memo field not returning more than 256 characters. Pin
Nemanja Trifunovic9-Oct-04 8:36
Nemanja Trifunovic9-Oct-04 8:36 
GeneralRe: Memo field not returning more than 256 characters. Pin
brdavid9-Oct-04 12:13
brdavid9-Oct-04 12:13 
GeneralRe: Memo field not returning more than 256 characters. Pin
EdbertP11-Oct-04 20:43
EdbertP11-Oct-04 20:43 
GeneralRe: Memo field not returning more than 256 characters. Pin
brdavid12-Oct-04 0:26
brdavid12-Oct-04 0:26 
GeneralRe: Memo field not returning more than 256 characters. Pin
EdbertP12-Oct-04 14:31
EdbertP12-Oct-04 14:31 
Generalmssql : INFORMATION_SHEMA.COLUMNS DATA_TYPE problem Pin
frakk9-Oct-04 3:38
frakk9-Oct-04 3:38 
GeneralORDER BY myColumn (myVariable) Pin
David Fawn9-Oct-04 1:38
David Fawn9-Oct-04 1:38 
GeneralRe: ORDER BY myColumn (myVariable) Pin
David Fawn9-Oct-04 2:57
David Fawn9-Oct-04 2:57 
Oh, it was quite easy answer (and stupid question Blush | :O )
I made a if clause here:

<code>CREATE PROCEDURE dbo.GetGuestbookData
	(	
		@SortOrder varchar(64)
	)
AS
	IF @SortOrder='ASC'
		BEGIN
			SELECT *
			FROM Guestbook INNER JOIN Users
			ON Guestbook.AuthorID = Users.RecordID
			ORDER BY Guestbook.RecordID ASC
		END
	ELSE
		BEGIN    
			SELECT *
			FROM Guestbook INNER JOIN Users
			ON Guestbook.AuthorID = Users.RecordID
			ORDER BY Guestbook.RecordID DESC
		END
RETURN </code>

GeneralHelp! ADO, OLE DB, and MS Access Pin
CherezZaboro8-Oct-04 9:57
CherezZaboro8-Oct-04 9:57 
GeneralRe: Help! ADO, OLE DB, and MS Access Pin
Vasudevan Deepak Kumar9-Oct-04 1:44
Vasudevan Deepak Kumar9-Oct-04 1:44 
QuestionHow to declare First Record of file? Pin
DotNet8-Oct-04 2:47
DotNet8-Oct-04 2:47 
AnswerRe: How to declare First Record of file? Pin
sreejith ss nair8-Oct-04 5:46
sreejith ss nair8-Oct-04 5:46 
GeneralRe: How to declare First Record of file? Pin
DotNet8-Oct-04 5:52
DotNet8-Oct-04 5:52 
GeneralRe: How to declare First Record of file? Pin
Colin Angus Mackay8-Oct-04 9:35
Colin Angus Mackay8-Oct-04 9:35 
AnswerRe: How to declare First Record of file? Pin
rajla10-Oct-04 21:02
sussrajla10-Oct-04 21:02 
GeneralRe: How to declare First Record of file? Pin
DotNet10-Oct-04 21:48
DotNet10-Oct-04 21:48 
Generalhandling errors from accessing SQL Database Pin
bekunkun7-Oct-04 23:14
bekunkun7-Oct-04 23:14 
GeneralRe: handling errors from accessing SQL Database Pin
Colin Angus Mackay8-Oct-04 1:17
Colin Angus Mackay8-Oct-04 1:17 
GeneralInvalidOperationException ADO . NET Pin
wilsonian7-Oct-04 14:06
wilsonian7-Oct-04 14:06 
GeneralTwo Tables and Datalist problem Pin
David Fawn7-Oct-04 8:18
David Fawn7-Oct-04 8:18 
GeneralRe: Two Tables and Datalist problem Pin
Colin Angus Mackay7-Oct-04 11:11
Colin Angus Mackay7-Oct-04 11:11 
GeneralRe: Two Tables and Datalist problem Pin
David Fawn8-Oct-04 4:15
David Fawn8-Oct-04 4:15 
GeneralOutput vs select Pin
Not Active7-Oct-04 7:37
mentorNot Active7-Oct-04 7:37 
GeneralRe: Output vs select Pin
Kurt _B7-Oct-04 13:00
Kurt _B7-Oct-04 13:00 
GeneralRe: Output vs select Pin
Steven Campbell8-Oct-04 7:11
Steven Campbell8-Oct-04 7:11 

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.