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

hai, about trading domain and need simple project on trading system. please help me...

1827


What is a garbage collector?

849


What is garbage collection? Explain the difference between garbage collections in .net 4.0 and earlier versions?

905


How to produce an assembly?

825


How do you generate a strong name?

826


What is the difference between a namespace and assembly name in .net?

749


What class does icon derive from? Isn't it just a bitmap with a wrapper name around it?

823


How many types of transactions are there in com + .net ?

796


Explain about .net assemblies?

821


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

725


Compare & contrast rich client (smart clients or windows-based) & browser-based web application

752


What is static constructor, when it will be fired?

757


How will you register com+ services?

1799


Explain how does assembly versioning work?

806


What are code contracts?

819