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
What are advantages of microsoft-provided data provider classes in ado.net?
What is microsoft ado.net?
What are two important objects of ADO.Net?
What is ado data control?
Which property is used to check whether a DataReader is closed or opened?
What is bubbled event can you please explain?
How do you connect to sql server database without using sqlclient?
What is the DataTableCollection?
What are the types of databinding?
Name which operations can you not perform on an ado.net dataset?
How do you merge 2 datasets into the third dataset in a simple manner?
What is execute scalar in ado.net?
Does sqlclient and oledb class share the same functionality?
Why do we need ado.net?
What is an ado connection?