How would u connect to database using .NET?
Answer Posted / vivek
using Connection object
SqlConnectin cn=new SqlConnection();
from .net we can connect to any backend with middlleware
and direct connections.
middleware means ODBC,OleDb,ISAM etc.
we can directly connect to Sqlserver and Oracle
we can connect to sql server in 4 ways
1)direct connection
2)ODBC way
3)OleDb way
4)Express way
for oracle we can connect in 3 ways.
1)direct connection
2)ODBC way
3)OleDb way
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you find the count of records in a dataset?
Explain how to bind the controls(best practice) comboboxes to the data in the dataset?
Define atomicity?
What is difference between ado.net and asp net?
Can we connect two dataadapters to same data source using single connection at same time?
Which is the feature of ado.net?
What are the namespaces used in ADO.Net to connect to a database?
What is datatable in ado.net?
What does executereader return?
How to enable and disable connection pooling?
Define data adapter?
What are the connected and disconnected modes in ado.net?
What is untyped dataset?
Define data access layer?
What is the full form of ado.net?