Click here to Skip to main content
15,892,809 members
Home / Discussions / Database
   

Database

 
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 
GeneralRe: ADO.NET - paging need to be implemented yourself still? Pin
devvvy22-Nov-08 21:53
devvvy22-Nov-08 21:53 
Also yes seems Sql specific - i.e. IDataAdapter of type "SqlDataAdapter"

Example pattern:

<br />
int currentIndex = 0;<br />
	int pageSize = 5;<br />
	<br />
	DataSet oDataSet = new DataSet("MyData");<br />
	DbProviderFactory oDbFactory = System.Data.Common.DbProviderFactories.GetFactory(strProvider);<br />
	IDbConnection oConn = oDbFactory.CreateConnection(); oConn.ConnectionString = strConn;<br />
	IDbCommand oSqlCmd = oDbProviderFactory.CreateCommand(); oSqlCmd.CommandText = strCmd; oSqlCmd.Connection = oConn; oSqlCmd.CommandTimeout = 10000;<br />
	IDataParameter param = cmd.CreateParameter(); param.ParameterName = "@employeeId"; param.Value = 1120; param.Direction = ParameterDirection.Input; cmd.Parameters.Add(param);<br />
	IDataAdapter oAdapter = oDbProviderFactory.CreateDataAdapter(); oAdapter.SelectCommand = oSqlCmd; oConn.Open(); oAdapter.Fill(oDataSet, currentIndex, pageSize, "MyData");  ATTN! paging is Sql specific, i.e. oAdapter of type "SqlDataAdapter"<br />
	DataView oView = oDataSet.Tables[0].DefaultView; oView.Sort = "Column1, Column2 DESC";	<br />


dev

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 
GeneralRe: UDF's in Stored Procedures (not using)... Pin
Wendelius21-Nov-08 23:58
mentorWendelius21-Nov-08 23:58 

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.