How to retrieve just one row for a dataset in c#.NET. Database access examples and tutorials. |
|||
ONE ROW FROM DATASETC# Tutorials |
|||
|
|
|||
|
|
|||
ONE ROW FROM DATASETLearn Tutorials |
|
How to retrieve just one row for a dataset in c#.NET. Database access examples and tutorials.
Example code for One row from dataset: DataSet ds2=dbm.getDataSet("SELECT MAX(transID) AS newestIdentity FROM CreditCardTransactions", "Identity"); DataRow dr=ds2.Tables["Identity"].Rows[0]; identity=Convert.ToInt16(dr["newestIdentity"].ToString()); //no need for foreach iteration |
Home
CSHARP Arrays in c sharp C sharp array objects C sharp separators context menu Compare dates csharp datetime Context menu c sharp Context menus csharp example Controls c sharp dynamically Database access c sharp Database access with ADO NET DataGrid c sharp Datagrid dataset csharp NET Datagrid Styles data grid Datasets listview dropdown selectbox Dialogbox csharp dialog box Drag and drop csharp Listview combo box csharp Looping through hashtable NET NET collections tutorial NET crawler safe url One row from dataset Output datetime csharp Popup form csharp Try catch c sharp |
||||||
![]() | |||||||