Click here to Skip to main content
15,906,567 members
Home / Discussions / Database
   

Database

 
QuestionHelp me Pin
Tsodgorhuu23-Nov-08 17:40
Tsodgorhuu23-Nov-08 17:40 
AnswerRe: Help me Pin
Mycroft Holmes23-Nov-08 21:40
professionalMycroft Holmes23-Nov-08 21:40 
QuestionPassword protected excel file reading from c#.net - need help? Pin
shw 23423-Nov-08 6:07
shw 23423-Nov-08 6:07 
AnswerRe: Password protected excel file reading from c#.net - need help? Pin
Wendelius23-Nov-08 6:41
mentorWendelius23-Nov-08 6:41 
AnswerRe: Password protected excel file reading from c#.net - need help? Pin
Jerry Hammond24-Nov-08 3:35
Jerry Hammond24-Nov-08 3:35 
QuestionADO.NET - paging need to be implemented yourself still? Pin
devvvy22-Nov-08 20:55
devvvy22-Nov-08 20:55 
AnswerRe: ADO.NET - paging need to be implemented yourself still? Pin
Wendelius22-Nov-08 21:42
mentorWendelius22-Nov-08 21:42 
GeneralRe: ADO.NET - paging need to be implemented yourself still? Pin
devvvy22-Nov-08 21:50
devvvy22-Nov-08 21:50 
Good stuff! - I think this is paging facilitated by ADO.NET (although DataAdapter only, won't help with say IDbCommand+ExecuteReader situation)

<br />
int currentIndex = 0;<br />
int pageSize = 5;<br />
<br />
string orderSQL = "SELECT * FROM Orders ORDER BY OrderID";<br />
// Assumes that connection is a valid SqlConnection object.<br />
SqlDataAdapter adapter = new SqlDataAdapter(orderSQL, connection);<br />
<br />
DataSet dataSet = new DataSet();<br />
adapter.Fill(dataSet, currentIndex, pageSize, "Orders");<br />


Have gone back in time and been doing MFC for two years - when was thsi available in dotnet I don't remember seeing it?

Thanks!

dev

GeneralRe: ADO.NET - paging need to be implemented yourself still? Pin
devvvy22-Nov-08 21:53
devvvy22-Nov-08 21:53 
GeneralRe: ADO.NET - paging need to be implemented yourself still? Pin
Wendelius22-Nov-08 22:02
mentorWendelius22-Nov-08 22:02 
GeneralRe: ADO.NET - paging need to be implemented yourself still? Pin
devvvy22-Nov-08 22:05
devvvy22-Nov-08 22:05 
GeneralRe: ADO.NET - paging need to be implemented yourself still? Pin
Wendelius22-Nov-08 22:24
mentorWendelius22-Nov-08 22:24 
Questionconcat multi rows field Pin
sepel22-Nov-08 3:12
sepel22-Nov-08 3:12 
AnswerRe: concat multi rows field Pin
Wendelius22-Nov-08 3:32
mentorWendelius22-Nov-08 3:32 
GeneralRe: concat multi rows field Pin
sepel22-Nov-08 4:38
sepel22-Nov-08 4:38 
GeneralRe: concat multi rows field Pin
Wendelius22-Nov-08 4:45
mentorWendelius22-Nov-08 4:45 
GeneralRe: concat multi rows field Pin
sepel22-Nov-08 5:21
sepel22-Nov-08 5:21 
QuestionSql bitwise in pervaisve DataBase Pin
Thaer Hamael22-Nov-08 2:19
Thaer Hamael22-Nov-08 2:19 
Questiondoubt in cross join Pin
deepthy.p.m21-Nov-08 22:01
deepthy.p.m21-Nov-08 22:01 
AnswerRe: doubt in cross join Pin
Mycroft Holmes21-Nov-08 23:26
professionalMycroft Holmes21-Nov-08 23:26 
GeneralRe: doubt in cross join Pin
deepthy.p.m23-Nov-08 17:48
deepthy.p.m23-Nov-08 17:48 
QuestionSql reporting Pin
member2721-Nov-08 20:25
member2721-Nov-08 20:25 
QuestionUDF's in Stored Procedures (not using)... Pin
Andy_L_J21-Nov-08 17:04
Andy_L_J21-Nov-08 17:04 
AnswerRe: UDF's in Stored Procedures (not using)... Pin
Wendelius21-Nov-08 23:15
mentorWendelius21-Nov-08 23:15 
AnswerRe: UDF's in Stored Procedures (not using)... Pin
Mycroft Holmes21-Nov-08 23:20
professionalMycroft Holmes21-Nov-08 23:20 

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.