how to retrive database records without using DataTable,DataReader or DataSet
-
Is it possible without using Datatable, dataset or datareader , retrive records from database. We can use SqlConnection. Can we retrive using System.Object array. Try read whole databas ,from table retrive one record and display or modify
-
Is it possible without using Datatable, dataset or datareader , retrive records from database. We can use SqlConnection. Can we retrive using System.Object array. Try read whole databas ,from table retrive one record and display or modify
Dharti Gajjar wrote:
from table retrive one record and display or modify
ExecuteScalar()
?All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Dharti Gajjar wrote:
from table retrive one record and display or modify
ExecuteScalar()
?All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
but to retrive all records , not one row from databse,but retive table it's row from database and store into system object array
-
but to retrive all records , not one row from databse,but retive table it's row from database and store into system object array
Why do you want to do this ? You can feth data into any of these (Reader/Datatable), and loop through each rows and put it in an array.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions