how to connect database connectivity in dotNET? if suppose
SQL server?and also MS access?

Answer Posted / aravind

in code behind give namespace
using System.data.sqlclient;
and write connections string in web.config to which
database to connect

Is This Answer Correct ?    40 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does cas works?

752


How to create a key pair in .net?

805


If you are executing these statements in commandobject. Select * from table1; select * from table2? How you will deal result set? 42. How do you sort a dataset.

750


What are the two main parts of the .net framework?

800


Different between .net & j2ee ?

793


How is meant by dll in .net?

768


Explain what are possible implementations of distributed applications in .net?

731


What does .net stand for?

763


Explain the main components in .net?

780


What do you mean by Code Access Security in .NET?

846


Difference between class and interface in .net?

771


What is the difference between user control an custom control? Advantages/disadvantages?

770


Explain the use of activex control in .net?

758


What does cli do?

708


What does stateless mean?

811