![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions No, we cann't since once connection to database is opened must be closed before you reopen again . Latest Answer : yes,we can connect two dataadaters to same datasource using single connection at same time.There is a technology in ado.net 2.0 called MARS usinng Mars in connection string we can do it.for eg: cn.ConnectionString = "server=(local); database=employee; ... Read Answers (8) | Asked by : Niranjan Latest Answer : you can connect sql using oledbname space . ... Read Answers (5) | Asked by : Padmaja Latest Answer : We will update the dataset by calling Update Method.We will update the database by calling AcceptChanges Method. ... Latest Answer : TO Connect to a DatabaseFirst we need to have a namespace like System.Data.Sqlclientthen connect to database as follows1.Create connection using SqlConnection Sqlconnection con=new sqlconnection("Connectionstring")2.Open connection con.Open()3.Pass ... Read Answers (10) | Asked by : lakshminarayanan Can we do database operations without using any of the ADO.net objects?This was an interview question Latest Answer : no it is impossible ... If we are not returning any records from the database, which method is to be used? Latest Answer : We can use both DataSet as well as SqlCommand object, but as the data is meant only for viewing, we are supposed to use SqlCommandObject.ExecuteNonQuery() for faster performance. ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||