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

Explain the differences between server-side code and client-side code.

569


Explain Different kinds of methods?

1633


How do I spawn a thread?

564


What is common language specification (cls)?

642


Is there built-in support for logging?

618






What is .net assembly?

584


Explain the difference between asp.net & vb.net and explain architecture?

542


What are the new thee features of com+ services, which are not there in com (mts)?

517


What does msil do?

550


What is connected and diconnected database ?

591


Is there any inbuilt tool or command provided by .NET to view the code inside the assembly?

599


How will you load dynamic assembly? How will create assemblies at run time?

1617


Will it go to finally block if there is no exception happened?

522


Explain can the validation be done in the server side? Or this can be done only in the client side?

506


Explain webfarm vs webgardens in .net?

587