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
Describe ado.net object model in detail.
What provider ado.net use by default? Explain the role of data provider in ado.net?
How to create dynamic gridview?
Why is stored procedure used in ado.net?
What are the usages of the command object in ado.net?
Explain why edit is not possible in repeater?
What are the uses of Stored Procedure?
What is the usage of the dataset object in ado.net?
What DataReader class do in ADO.NET ?
What are the main differences between classic ado and ado.net?
What is a non query?
What is the difference between Dataset. clone and Dataset.copy?
Which is better entity framework or ado.net?
What is the difference between data reader and data adapter?
What is ole in excel?