Click here to Skip to main content
15,924,317 members
Home / Discussions / Database
   

Database

 
AnswerRe: Comparing values in a table Pin
Ritwik Sanyal26-Nov-06 22:17
Ritwik Sanyal26-Nov-06 22:17 
GeneralRe: Comparing values in a table Pin
DAAKH1-Dec-06 1:30
DAAKH1-Dec-06 1:30 
Questionleft outer join - question Pin
ensger25-Nov-06 1:32
ensger25-Nov-06 1:32 
AnswerRe: left outer join - question Pin
Rob Graham25-Nov-06 3:50
Rob Graham25-Nov-06 3:50 
AnswerRe: left outer join - question Pin
Ritwik Sanyal26-Nov-06 22:27
Ritwik Sanyal26-Nov-06 22:27 
QuestionHow to Prevent Selects from being returned ... Pin
devboycpp25-Nov-06 1:06
devboycpp25-Nov-06 1:06 
AnswerRe: How to Prevent Selects from being returned ... Pin
Ritwik Sanyal26-Nov-06 22:29
Ritwik Sanyal26-Nov-06 22:29 
QuestionLimiting the Number of results retrived using ODBC on MS access DB by C# [modified] Pin
cbh_24-Nov-06 22:04
cbh_24-Nov-06 22:04 
Hi Wink | ;)

im trying to Limit the number of results retrived by a Query so for Example i want to retrive the first 30 and then navigate throw the results 30 by 30.

the problem in my Query that i cant used the TOP 30 command because im Ordering my results with date then status plus alot of ordering.

and this ordering will cause the retrived results to be retrived in a random ID_no order as one of my friends suggested that i use the TOP 30 along with
Where Id no > X Order BY Id_no as in the example below.

but i think if there is no Command in MS Access or that i dont know it because of my lack of knowledge i will have to order by my Where Criteria along with the TOP 30 command.

Another Sol. just popped to my head is to save the results to a Dataset and then using a Table in the Dataset i can just retrived Index based.

i guess i will try the Dataset sollution also if there is any better one plz Help.

By the way im using ODBC COnnection, OdbcCommand and ODBCDatareader.

Thanks in Advance.

Example for Retriving by the TOP and Where command:
1)
Select TOP 30 A.ID_no , .......etc<br />
From A , ......etc<br />
Where A.ID_no > <big>1</big><br />
Order by ID_no ;


2)
Select TOP 30 A.ID_no , .......etc<br />
From A , ......etc<br />
Where A.ID_no > <big>30</big><br />
Order by ID_no ;


and i continue like that.

----------------------------------
Have fun and Stay good



-- modified at 4:14 Saturday 25th November, 2006
AnswerRe: Limiting the Number of results retrived using ODBC on MS access DB by C# Pin
Ritwik Sanyal26-Nov-06 23:19
Ritwik Sanyal26-Nov-06 23:19 
QuestionPerformance Counters for the .NET Framework Data Provider for SQL Server Pin
FlorentBzh24-Nov-06 4:34
FlorentBzh24-Nov-06 4:34 
AnswerRe: Performance Counters for the .NET Framework Data Provider for SQL Server Pin
Rob Graham25-Nov-06 4:54
Rob Graham25-Nov-06 4:54 
QuestionSetting values in a view Pin
Dayekh24-Nov-06 2:37
Dayekh24-Nov-06 2:37 
AnswerRe: Setting values in a view Pin
Pete O'Hanlon24-Nov-06 3:06
mvePete O'Hanlon24-Nov-06 3:06 
GeneralRe: Setting values in a view Pin
Dayekh24-Nov-06 3:23
Dayekh24-Nov-06 3:23 
GeneralRe: Setting values in a view Pin
Pete O'Hanlon24-Nov-06 4:32
mvePete O'Hanlon24-Nov-06 4:32 
QuestionHow to manage roundtrips to SQL server ???? Pin
devboycpp23-Nov-06 23:28
devboycpp23-Nov-06 23:28 
AnswerRe: How to manage roundtrips to SQL server ???? Pin
Colin Angus Mackay24-Nov-06 0:08
Colin Angus Mackay24-Nov-06 0:08 
GeneralRe: How to manage roundtrips to SQL server ???? Pin
devboycpp24-Nov-06 8:46
devboycpp24-Nov-06 8:46 
GeneralRe: How to manage roundtrips to SQL server ???? Pin
Colin Angus Mackay24-Nov-06 9:08
Colin Angus Mackay24-Nov-06 9:08 
QuestionHow to make VS auto-generated Data Sets into internal classes Pin
Andrew_Thomas23-Nov-06 22:05
Andrew_Thomas23-Nov-06 22:05 
QuestionTransaction failures Pin
cathy_d'souza23-Nov-06 19:55
cathy_d'souza23-Nov-06 19:55 
AnswerRe: Transaction failures Pin
Colin Angus Mackay24-Nov-06 0:18
Colin Angus Mackay24-Nov-06 0:18 
GeneralRe: Transaction failures Pin
cathy_d'souza24-Nov-06 0:25
cathy_d'souza24-Nov-06 0:25 
GeneralRe: Transaction failures Pin
Colin Angus Mackay24-Nov-06 0:52
Colin Angus Mackay24-Nov-06 0:52 
QuestionProblem with distributed transaction Pin
MasudM23-Nov-06 6:29
MasudM23-Nov-06 6:29 

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.