|
| If an SqlDataReader is populated with two result sets, how can we navigate the two result sets? |
Answer Description: SqlDataReader reader = myCommand.ExecuteReader() if (reader.Read()) { siteName = (string)reader["SiteName"]; productName = (string)reader["ProductName"]; } if(reader.NextResult()) { if (reader.Read()) { CName = (string)reader["CustomerName"]; } }
|
Posted By:Kandula_sn@...
View Count:
|
|